Skip to content

Commit 48b2cd2

Browse files
authored
fix: Fix nanov2 nightlies for new vllm (#2636)
Signed-off-by: Yi-Fu Wu <yifu.wu@gmail.com>
1 parent c336076 commit 48b2cd2

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

examples/configs/recipes/llm/grpo-nano-v2-12b-1n8g-megatron.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ policy:
2121
max_model_len: 512
2222
vllm_kwargs:
2323
mamba_ssm_cache_dtype: float32 # needed to avoid SSM state overflows in vllm 5.2.0
24+
# vLLM 0.20 allocates one Mamba cache block per decode seq; the default
25+
# max_num_seqs=1024 exceeds available blocks. Cap to the rollout batch
26+
# (num_prompts_per_step * num_generations_per_prompt = 32 * 16 = 512).
27+
max_num_seqs: 512
2428
sequence_packing:
2529
enabled: false
2630
data:

examples/configs/recipes/llm/grpo-nano-v2-12b-2n8g-fsdp2tp1.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ policy:
2525
max_model_len: 512
2626
vllm_kwargs:
2727
mamba_ssm_cache_dtype: float32 # needed to avoid SSM state overflows in vllm 5.2.0
28+
# vLLM 0.20 allocates one Mamba cache block per decode seq; the default
29+
# max_num_seqs=1024 exceeds available blocks. Cap to the rollout batch
30+
# (num_prompts_per_step * num_generations_per_prompt = 32 * 16 = 512).
31+
max_num_seqs: 512
2832
scheduler:
2933
- name: "torch.optim.lr_scheduler.LinearLR"
3034
kwargs:

0 commit comments

Comments
 (0)