Skip to content

katiekang1998/reasoning_generalization

Repository files navigation

Reasoning Generalization

Code for reproducing the experiments in What Do Learning Dynamics Reveal About Generalization in LLM Reasoning?.

Figure 1 Figure 2

Setup

conda create -n reasoning_generalization python=3.9
conda activate reasoning_generalization
cd reasoning_generalization
pip install -r requirements.txt

Fill in huggingface token in huggingface_params.py.

Usage

See gsm8k_run.sh or math_run.sh for examples of training and evaluation scripts. See gsm8k_analyze.ipynb or gsm8k_analyze.ipynb for analysis code.

Acknowledgements

Our codebase borrows code from stanford_alpaca.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published