Giter Club home page Giter Club logo

xot's Introduction

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 [email protected].

xot's People

Contributors

tengxiaoliu avatar

Stargazers

QianyuH avatar Dohaeng Lee avatar None avatar silksmooth avatar  avatar  avatar JiaoRui avatar ChenxinAn avatar Liam Gray avatar Lingling Wu avatar Naveen Karnam avatar Zheng Yuan avatar 爱可可-爱生活 avatar  avatar Jeff Carpenter avatar  avatar Yuxuan Liu avatar Yu Sun avatar Zheng Chu avatar Ziyang Huang avatar Qinyuan Cheng avatar Kai Lv avatar

Watchers

 avatar  avatar

xot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.