Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Training

Prerequisites

Before training, ensure your data is prepared using the scripts in the data preparation directory.

Run the following scripts for installation:

pip install -r requirements.txt

Supervised Fine-tuning

To perform SFT on a single node with 8 GPUs, simply run:

bash examples/training/run_sft.sh

Reinforcement Learning from Verifiable Sandbox Rewards

We utilize SandboxFusion to set up a secure Python sandbox environment. This involves launching a multi-replica Docker service (using Docker Swarm) that exposes an entrypoint for verifying the correctness of generated code against unit tests.

For detailed SandboxFusion usage and setup, refer to their documentation.

To start the SandboxFusion service, run:

bash examples/training/launch_sandbox.sh

Then, launch your RL training on Dream-Coder-RL-17k with:

bash examples/training/run_rl.sh $CKPT_DIR $SANDBOX_FUSION_ENDPOINT