Rubywong123 / Math_LLM

Code for MIT 6.8610 project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Duet of Agents: Efficiently Boosting Mathematics Reasoning

This is the repository of Group 60 for MIT 6.8610 final project.

Configure the virtual environment

conda create -n Math_LLM python=3.11
conda activate Math_LLM
pip install -r requirements.txt

Prepare your TogetherAI API KEY

Fill your keys to the list object keys under the file API_call.py.

Run the experiment

Problem Decomposition

Run the following command:

python decomposition.py

The results will be shown under ./out/decomp_result, which will be needed to run the solver.

MathReg

Run the following command:

python MathReg.py 

IntelliCode

Run the following command:

python IntelliCode.py 

Evaluate the result

After running the experiments, you can find the resulting files under out directory. Fill the paths into scripts/evaluate.py (we have filled some examples) and run the following command:

python scripts/evaluate.py

About

Code for MIT 6.8610 project


Languages

Language:Python 99.8%Language:Jupyter Notebook 0.2%