-
Notifications
You must be signed in to change notification settings - Fork 539
Expand file tree
/
Copy pathgrpo.sh
More file actions
executable file
·36 lines (34 loc) · 1.12 KB
/
grpo.sh
File metadata and controls
executable file
·36 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
set -euo pipefail
export TORCH_COMPILE_DISABLE=1
export VLLM_ALLOW_INSECURE_SERIALIZATION=1
export VLLM_DISABLE_COMPILE_CACHE=1
export VLLM_USE_V1=1
uv run --active open_instruct/grpo.py \
--dataset_mixer_list ai2-adapt-dev/rlvr_gsm8k_zs 64 \
--dataset_mixer_list_splits train \
--dataset_mixer_eval_list ai2-adapt-dev/rlvr_gsm8k_zs 16 \
--dataset_mixer_eval_list_splits train \
--max_prompt_token_length 512 \
--response_length 512 \
--pack_length 1024 \
--per_device_train_batch_size 1 \
--num_unique_prompts_rollout 8 \
--num_samples_per_prompt_rollout 4 \
--model_name_or_path Qwen/Qwen3-0.6B \
--system_prompt_override_file scripts/train/qwen/math_system_prompt.txt \
--apply_verifiable_reward true \
--learning_rate 1e-6 \
--total_episodes 128 \
--deepspeed_stage 2 \
--num_epochs 1 \
--num_learners_per_node 1 \
--vllm_tensor_parallel_size 1 \
--beta 0.01 \
--seed 3 \
--local_eval_every 4 \
--vllm_sync_backend gloo \
--vllm_gpu_memory_utilization 0.4 \
--vllm_enforce_eager \
--single_gpu_mode \
--push_to_hub false $@