Skip to content

tengxiaoliu/XoT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XoT

Implementation for EMNLP 2023 paper:

Plan, Verify and Switch: Integrated Reasoning with Diverse X-of-Thoughts

Alt text

Install dependencies

Install all the dependencies in the requirements.txt file:

pip -r requirements.txt

Run the code

Generate XoT results

Please put your api key in the Line 24 of brain.py file.

We here provide the command to generate XoT results on GSM8K. To run the code on other datasets, please change the --dataset argument accordingly.

bash scripts/run_gsm.sh

This will produce 6 files in the outputs/gsm folder.

Evaluate and Analyze

We use the analyze.py script to evaluate and analyze the generated XoT results, which provides a thorough analysis as reported in the paper. To run the script, please use the following command:

bash scripts/eval_gsm.sh

You can also directly run the analysis with the above command using the output files we produced in the outputs/gsm folder.

Questions

This repo is still under construction. If you have any questions, please feel free to open an issue or contact me at txliu21@m.fudan.edu.cn.

About

EMNLP 2023 Plan, Verify and Switch: Integrated Reasoning with Diverse X-of-Thoughts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published