Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
verl
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhangXiaoyun
verl
Commits
9fca71d2
Unverified
Commit
9fca71d2
authored
Jan 28, 2025
by
Guangming Sheng
Committed by
GitHub
Jan 28, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[misc] feat: enable grad ckpt as default and enable chunk prefill as default (#147)
parent
54603cbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
examples/ppo_trainer/run_qwen2-7b_rm.sh
+3
-2
verl/trainer/config/ppo_trainer.yaml
+3
-3
No files found.
examples/ppo_trainer/run_qwen2-7b_rm.sh
View file @
9fca71d2
...
@@ -24,6 +24,7 @@ python3 -m verl.trainer.main_ppo \
...
@@ -24,6 +24,7 @@ python3 -m verl.trainer.main_ppo \
actor_rollout_ref.actor.optim.lr_warmup_steps_ratio
=
0.1
\
actor_rollout_ref.actor.optim.lr_warmup_steps_ratio
=
0.1
\
actor_rollout_ref.actor.ppo_mini_batch_size
=
256
\
actor_rollout_ref.actor.ppo_mini_batch_size
=
256
\
actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu
=
16
\
actor_rollout_ref.actor.ppo_micro_batch_size_per_gpu
=
16
\
actor_rollout_ref.model.enable_gradient_checkpointing
=
True
\
actor_rollout_ref.actor.fsdp_config.param_offload
=
False
\
actor_rollout_ref.actor.fsdp_config.param_offload
=
False
\
actor_rollout_ref.actor.fsdp_config.grad_offload
=
False
\
actor_rollout_ref.actor.fsdp_config.grad_offload
=
False
\
actor_rollout_ref.actor.fsdp_config.optimizer_offload
=
False
\
actor_rollout_ref.actor.fsdp_config.optimizer_offload
=
False
\
...
@@ -37,8 +38,8 @@ python3 -m verl.trainer.main_ppo \
...
@@ -37,8 +38,8 @@ python3 -m verl.trainer.main_ppo \
critic.model.use_remove_padding
=
True
\
critic.model.use_remove_padding
=
True
\
critic.optim.lr_warmup_steps_ratio
=
0.05
\
critic.optim.lr_warmup_steps_ratio
=
0.05
\
critic.model.path
=
Qwen/Qwen2-7B-Instruct
\
critic.model.path
=
Qwen/Qwen2-7B-Instruct
\
critic.model.enable_gradient_checkpointing
=
Fals
e
\
critic.model.enable_gradient_checkpointing
=
Tru
e
\
critic.ppo_micro_batch_size_per_gpu
=
16
\
critic.ppo_micro_batch_size_per_gpu
=
32
\
critic.model.fsdp_config.param_offload
=
False
\
critic.model.fsdp_config.param_offload
=
False
\
critic.model.fsdp_config.grad_offload
=
False
\
critic.model.fsdp_config.grad_offload
=
False
\
critic.model.fsdp_config.optimizer_offload
=
False
\
critic.model.fsdp_config.optimizer_offload
=
False
\
...
...
verl/trainer/config/ppo_trainer.yaml
View file @
9fca71d2
...
@@ -16,7 +16,7 @@ actor_rollout_ref:
...
@@ -16,7 +16,7 @@ actor_rollout_ref:
path
:
~/models/deepseek-llm-7b-chat
path
:
~/models/deepseek-llm-7b-chat
external_lib
:
null
external_lib
:
null
override_config
:
{
}
override_config
:
{
}
enable_gradient_checkpointing
:
Fals
e
enable_gradient_checkpointing
:
Tru
e
use_remove_padding
:
False
use_remove_padding
:
False
actor
:
actor
:
strategy
:
fsdp
# This is for backward-compatibility
strategy
:
fsdp
# This is for backward-compatibility
...
@@ -81,7 +81,7 @@ actor_rollout_ref:
...
@@ -81,7 +81,7 @@ actor_rollout_ref:
log_prob_use_dynamic_bsz
:
${actor_rollout_ref.actor.use_dynamic_bsz}
log_prob_use_dynamic_bsz
:
${actor_rollout_ref.actor.use_dynamic_bsz}
log_prob_max_token_len_per_gpu
:
${actor_rollout_ref.actor.ppo_max_token_len_per_gpu}
log_prob_max_token_len_per_gpu
:
${actor_rollout_ref.actor.ppo_max_token_len_per_gpu}
disable_log_stats
:
True
disable_log_stats
:
True
enable_chunked_prefill
:
Fals
e
# could get higher throughput
enable_chunked_prefill
:
Tru
e
# could get higher throughput
# for hf rollout
# for hf rollout
do_sample
:
True
do_sample
:
True
# number of responses (i.e. num sample times)
# number of responses (i.e. num sample times)
...
@@ -100,7 +100,7 @@ critic:
...
@@ -100,7 +100,7 @@ critic:
tokenizer_path
:
${actor_rollout_ref.model.path}
tokenizer_path
:
${actor_rollout_ref.model.path}
override_config
:
{
}
override_config
:
{
}
external_lib
:
${actor_rollout_ref.model.external_lib}
external_lib
:
${actor_rollout_ref.model.external_lib}
enable_gradient_checkpointing
:
Fals
e
enable_gradient_checkpointing
:
Tru
e
use_remove_padding
:
False
use_remove_padding
:
False
fsdp_config
:
fsdp_config
:
param_offload
:
False
param_offload
:
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment