fix(examples): set cp=4 for GLM-4.5-Air advanced examples (#3129)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mika Senghaas
2026-07-23 16:50:46 -07:00
committed by GitHub
co-authored by Claude Fable 5
parent 1dcec737d9
commit fca9fb0975
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ enable_router_replay = true
[trainer.model] [trainer.model]
impl = "custom" impl = "custom"
attn = "flash_attention_3" attn = "flash_attention_3"
cp = 8 cp = 4
cp_style = "ulysses" cp_style = "ulysses"
fused_lm_head_token_chunk_size = 1024 fused_lm_head_token_chunk_size = 1024
optim_cpu_offload = true optim_cpu_offload = true
+2 -2
View File
@@ -7,7 +7,7 @@
# term is pass_rate-scaled and normalized by the group's own max before the GRPO baseline # term is pass_rate-scaled and normalized by the group's own max before the GRPO baseline
# subtraction. # subtraction.
# #
# 2 train + 4 infer nodes. Trainer uses cp=8 (ulysses) plus # 2 train + 4 infer nodes. Trainer uses cp=4 (ulysses) plus
# the memory improvements from the GLM-5.1 prod run (research-prod rlm5/prod.toml): LM-head token # the memory improvements from the GLM-5.1 prod run (research-prod rlm5/prod.toml): LM-head token
# chunking, activation checkpointing (freq=1) + activation offloading (max_inflight=1), optimizer # chunking, activation checkpointing (freq=1) + activation offloading (max_inflight=1), optimizer
# CPU offload, and skip-gather / skip-optimizer checkpointing. # CPU offload, and skip-gather / skip-optimizer checkpointing.
@@ -57,7 +57,7 @@ enable_router_replay = true
[trainer.model] [trainer.model]
impl = "custom" impl = "custom"
attn = "flash_attention_3" attn = "flash_attention_3"
cp = 8 cp = 4
cp_style = "ulysses" cp_style = "ulysses"
fused_lm_head_token_chunk_size = 1024 fused_lm_head_token_chunk_size = 1024
optim_cpu_offload = true optim_cpu_offload = true
+1 -1
View File
@@ -47,7 +47,7 @@ enable_router_replay = true
[trainer.model] [trainer.model]
impl = "custom" impl = "custom"
attn = "flash_attention_3" attn = "flash_attention_3"
cp = 8 cp = 4
cp_style = "ulysses" cp_style = "ulysses"
fused_lm_head_token_chunk_size = 1024 fused_lm_head_token_chunk_size = 1024
optim_cpu_offload = true optim_cpu_offload = true