Skip to content

ShirleYoung/FourierSampler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FourierSampler

Requirements

  • Python: 3.12

Installation

1) Clone this repository

git clone https://github.com/ShirleYoung/FourierSampler.git
cd FourierSampler

2) Create and activate a conda environment

conda create -n fouriersampler python=3.12 -y
conda activate fouriersampler

3) Install dependencies (requirements.txt)

pip install -r requirements.txt

4) Install OpenCompass

git clone https://github.com/open-compass/opencompass
cd opencompass
pip install -e .

5) Copy FourierSampler model wrappers into OpenCompass

Please copy this repo's OpenCompass model implementations in opencompass/models/ into the corresponding directory of the cloned OpenCompass repo.

6) Register models in OpenCompass

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_FourierSampler

7) Install the d1 evaluation framework

git clone https://github.com/dllm-reasoning/d1.git

Copy the files under d1-eval/ into the d1/eval/ directory of the repo you cloned.

Run Evaluation

1) Run OpenCompass evaluation (supports gsm8k, math, humaneval, mbpp)

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-details

2) Run d1 evaluation (supports countdown)

This repo provides d1 evaluation scripts; you can run commands like:

cd d1/eval
bash run_eval_baseline.sh
bash run_eval_fft.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors