From fca9fb097507457f8084566fcd3a76a2470e544c Mon Sep 17 00:00:00 2001 From: Mika Senghaas Date: Thu, 23 Jul 2026 16:50:46 -0700 Subject: [PATCH] fix(examples): set cp=4 for GLM-4.5-Air advanced examples (#3129) Co-authored-by: Claude Fable 5 --- examples/advanced/glm-4.5-air/search.toml | 2 +- examples/advanced/glm-4.5-air/swe.toml | 4 ++-- examples/advanced/glm-4.5-air/terminal.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/advanced/glm-4.5-air/search.toml b/examples/advanced/glm-4.5-air/search.toml index ee706e83..cc7c4290 100644 --- a/examples/advanced/glm-4.5-air/search.toml +++ b/examples/advanced/glm-4.5-air/search.toml @@ -46,7 +46,7 @@ enable_router_replay = true [trainer.model] impl = "custom" attn = "flash_attention_3" -cp = 8 +cp = 4 cp_style = "ulysses" fused_lm_head_token_chunk_size = 1024 optim_cpu_offload = true diff --git a/examples/advanced/glm-4.5-air/swe.toml b/examples/advanced/glm-4.5-air/swe.toml index 6bfcc0ad..c63d8eb4 100644 --- a/examples/advanced/glm-4.5-air/swe.toml +++ b/examples/advanced/glm-4.5-air/swe.toml @@ -7,7 +7,7 @@ # term is pass_rate-scaled and normalized by the group's own max before the GRPO baseline # 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 # chunking, activation checkpointing (freq=1) + activation offloading (max_inflight=1), optimizer # CPU offload, and skip-gather / skip-optimizer checkpointing. @@ -57,7 +57,7 @@ enable_router_replay = true [trainer.model] impl = "custom" attn = "flash_attention_3" -cp = 8 +cp = 4 cp_style = "ulysses" fused_lm_head_token_chunk_size = 1024 optim_cpu_offload = true diff --git a/examples/advanced/glm-4.5-air/terminal.toml b/examples/advanced/glm-4.5-air/terminal.toml index ba51a85d..36a88847 100644 --- a/examples/advanced/glm-4.5-air/terminal.toml +++ b/examples/advanced/glm-4.5-air/terminal.toml @@ -47,7 +47,7 @@ enable_router_replay = true [trainer.model] impl = "custom" attn = "flash_attention_3" -cp = 8 +cp = 4 cp_style = "ulysses" fused_lm_head_token_chunk_size = 1024 optim_cpu_offload = true