- Python: 3.12
git clone https://github.com/ShirleYoung/FourierSampler.git
cd FourierSamplerconda create -n fouriersampler python=3.12 -y
conda activate fouriersamplerpip install -r requirements.txtgit clone https://github.com/open-compass/opencompass
cd opencompass
pip install -e .Please copy this repo's OpenCompass model implementations in opencompass/models/ into the corresponding directory of the cloned OpenCompass repo.
Revise the following file in the OpenCompass repo you cloned:
opencompass/opencompass/models/__init__.py
Add the following two lines:
from .llada.llada_wrapper import LLaDACausalLM
from .llada_fouriersampler.llada_wrapper import LLaDACausalLM_FourierSamplergit clone https://github.com/dllm-reasoning/d1.gitCopy the files under d1-eval/ into the d1/eval/ directory of the repo you cloned.
This repo provides OpenCompass evaluation config files, e.g.:
eval/llada_1_5_8b/FourierSampler/eval_gsm8k.py
You can run a command like:
opencompass eval/llada_1_5_8b/FourierSampler/eval_gsm8k.py --dump-eval-detailsThis repo provides d1 evaluation scripts; you can run commands like:
cd d1/eval
bash run_eval_baseline.sh
bash run_eval_fft.sh