Skip to content
/ BiPro Public

code and data for Paper: BIPro: Zero-shot Chinese Poem Generation via Block Inverse Prompting Constrained Generation Framework (ARR August 2024 meta score 4/5 , commitment undecided)

Notifications You must be signed in to change notification settings

THUDM/BiPro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BiPro

Bipro directory contains code for bipro using GLM-10B-Chinese. GLM-10B-Chinese model download: https://github.com/THUDM/GLM

Packages required: SwissArmyTransformer

Please change the WEIGHT_PATH in config/glm_10b_chinese.sh to your own weight path.

Script for Bipro Generation: bash run_bipro_poem.sh config/glm_10b_chinese.sh $GPU
(will start generating poems according to titles in titles2.txt)

Script for Direct Generation: bash run_direct_poem.sh config/glm_10b_chinese.sh $GPU

data directory contains data and analysis code for 2 human experiments.

python record_analyse_challenge1.py analyses the result for challenge 1. python record_analyse_challenge2.py analyses the result for challenge 2.

poem_gpt4.ipynb is the code for getting few shot GPT-4 generations through GPT-4 API. Results of other baselines are achieved manually through webpage.

Online Inference: https://chatglm.cn/main/gdetail/672c837c8ba8cf3453de646c?lang=zh

This paper is submitted and reviewed by ACL Rolling Cycle August 2024. (Meta Review: 4/5) Arxiv is uploaded after the peer review: https://arxiv.org/abs/2411.13237

About

code and data for Paper: BIPro: Zero-shot Chinese Poem Generation via Block Inverse Prompting Constrained Generation Framework (ARR August 2024 meta score 4/5 , commitment undecided)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published