Files
prime-rl/configs/gsm8k/README.md
T
Florian BrandandGitHub 5f7e3ffcaa
Docker Push / Push CUDA image to Docker (push) Canceled after 0s
chore: migrate environment configs to V1 (#3058)
2026-07-17 15:34:42 +02:00

1.4 KiB

GSM8K

In this example, we demonstrate how to train Qwen3-0.6B to answer math problems from the GSM8K dataset.

This example runs on 2 GPUs (1 for inference, 1 for training).

Setup

The gsm8k-v1 taskset is included through the Verifiers workspace. After syncing the repository, verify it with:

uv run python -c "import gsm8k_v1"

Start the tmux session:

bash scripts/tmux.sh

Baseline Evaluation

Start the inference server:

# In the `Inference` pane
uv run inference --model.name PrimeIntellect/Qwen3-0.6B

Evaluate the base model:

# In the `Trainer` pane
uv run vf-eval gsm8k-v1 \
  -a '{"split": "test"}' \
  -m PrimeIntellect/Qwen3-0.6B \
  -b http://localhost:8000/v1 \
  -n 20 \
  -t 2048

RL Training

Train with the config file:

# In the `Trainer` pane
uv run rl @ configs/gsm8k/rl.toml \
  --wandb.project your-project-name \
  --wandb.name your-run-name \
  --ckpt

This will write weight checkpoints in outputs/weights/step_*. Upload the final checkpoint to HuggingFace:

uv run hf upload <user>/Qwen3-0.6B-GSM8K-RL outputs/weights/step_100

Evaluation

Evaluate your trained model:

# In the `Inference` pane
uv run inference --model.name <user>/Qwen3-0.6B-GSM8K-RL
# In the `Trainer` pane
uv run vf-eval gsm8k-v1 \
  -a '{"split": "test"}' \
  -m <user>/Qwen3-0.6B-GSM8K-RL \
  -b http://localhost:8000/v1 \
  -n 20 \
  -t 2048