mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-05-02 17:45:58 +00:00
update config to latest veRL version
This commit is contained in:
parent
79c5e53ef0
commit
2ae21c6548
2 changed files with 23 additions and 6 deletions
|
|
@ -1,19 +1,32 @@
|
||||||
### env setup
|
### env setup
|
||||||
|
|
||||||
```
|
```
|
||||||
conda create --name verl python=3.12 -y
|
conda create --name verl python=3.11 -y
|
||||||
conda activate verl
|
conda activate verl
|
||||||
|
|
||||||
pip install flash-attn --no-build-isolation
|
pip install flash-attn --no-build-isolation
|
||||||
pip install vllm==0.7.0 ray wandb
|
pip install ray wandb
|
||||||
|
# pip3 install vllm==0.7.0
|
||||||
|
pip3 install vllm --pre --extra-index-url https://wheels.vllm.ai/nightly
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Regarding vllm>0.7 see: [docs](https://verl.readthedocs.io/en/latest/README_vllm0.7.html)
|
||||||
|
|
||||||
|
|
||||||
### clone and install veRL
|
### clone and install veRL
|
||||||
|
|
||||||
tested with verl HEAD a65c9157bc0b85b64cd753de19f94e80a11bd871
|
tested with verl HEAD 0dfcb7f99e299940e1792a386df13c7591df351a
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/volcengine/verl.git
|
git clone https://github.com/volcengine/verl.git
|
||||||
cd verl
|
cd verl
|
||||||
pip install -e .
|
pip install -e .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Optionally log in to huggingface hub and wandb with your keys:
|
||||||
|
|
||||||
|
```
|
||||||
|
huggingface-cli login
|
||||||
|
wandb login
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,6 @@ actor_rollout_ref:
|
||||||
# transformer_layer_cls_to_wrap: None
|
# transformer_layer_cls_to_wrap: None
|
||||||
min_num_params: 0
|
min_num_params: 0
|
||||||
param_offload: False
|
param_offload: False
|
||||||
grad_offload: False
|
|
||||||
optimizer_offload: False
|
optimizer_offload: False
|
||||||
fsdp_size: -1
|
fsdp_size: -1
|
||||||
ref:
|
ref:
|
||||||
|
|
@ -104,7 +103,6 @@ critic:
|
||||||
use_remove_padding: False
|
use_remove_padding: False
|
||||||
fsdp_config:
|
fsdp_config:
|
||||||
param_offload: False
|
param_offload: False
|
||||||
grad_offload: False
|
|
||||||
optimizer_offload: False
|
optimizer_offload: False
|
||||||
wrap_policy:
|
wrap_policy:
|
||||||
# transformer_layer_cls_to_wrap: None
|
# transformer_layer_cls_to_wrap: None
|
||||||
|
|
@ -158,10 +156,16 @@ trainer:
|
||||||
project_name: verl_examples
|
project_name: verl_examples
|
||||||
experiment_name: gsm8k
|
experiment_name: gsm8k
|
||||||
logger: [ 'console', 'wandb' ]
|
logger: [ 'console', 'wandb' ]
|
||||||
|
val_generations_to_log_to_wandb: 0
|
||||||
nnodes: 1
|
nnodes: 1
|
||||||
n_gpus_per_node: 8
|
n_gpus_per_node: 8
|
||||||
save_freq: -1
|
save_freq: -1
|
||||||
|
# auto: find the last ckpt to resume. If can't find, start from scratch
|
||||||
|
resume_mode: auto # or auto or resume_path if
|
||||||
|
resume_from_path: False
|
||||||
test_freq: -1
|
test_freq: -1
|
||||||
critic_warmup: 0
|
critic_warmup: 0
|
||||||
default_hdfs_dir: ~/experiments/gsm8k/ppo/${trainer.experiment_name}
|
default_hdfs_dir: null
|
||||||
|
remove_previous_ckpt_in_save: False
|
||||||
|
del_local_ckpt_after_load: False
|
||||||
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
default_local_dir: checkpoints/${trainer.project_name}/${trainer.experiment_name}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue