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.txtTo perform SFT on a single node with 8 GPUs, simply run:
bash examples/training/run_sft.shWe 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.shThen, launch your RL training on Dream-Coder-RL-17k with:
bash examples/training/run_rl.sh $CKPT_DIR $SANDBOX_FUSION_ENDPOINT