Skip to content

dayuwang401/MSARL-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MSARL

Directory Structure

framework/
  ├── train.py   # Training script
  ├── eval.py    # Evaluation script

Requirements

  • Python >= 3.8
  • CUDA-enabled GPU
  • Other dependencies listed in requirements.txt

Example installation:

pip install -r requirements.txt

Training

Run the following command to start model training:

python framework/train.py \
  --reasoning_model_path Qwen2.5-Math-1.5B-Instruct/ \
  --code_model_path Qwen2.5-1.5B-Instruct/ \
  --dataset_path math_train.jsonl \
  --checkpoint_dir checkpoints/ \
  --save_steps 25 \
  --n_sample_r 4 \
  --n_sample_c 4 \
  --max_tokens 4096 \
  --reasoning_device cuda:0 \
  --code_device cuda:1 \
  > train_1.5B_base.log 2>&1

Logs will be saved to train_1.5B_base.log.

Evaluation

Run the following command to evaluate a trained model:

python framework/eval.py \
  --reasoning_model_path Qwen2.5-Math-1.5B-Instruct/ \
  --code_model_path Qwen2.5-1.5B-Instruct/ \
  --dataset_path math_test.jsonl \
  --output_path eval/ \
  --batch_size 64 \
  --num_reasonings 1 \
  --max_tokens 4096 \
  --device cuda:0

Evaluation results will be stored under the eval/ directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages