Repository navigation
kimi k3 for titanrl - #4680
kimi k3 for titanrl#4680
Conversation
a414842 to
51b6a07
Compare
05f609e to
9e08af8
Compare
|
|
||
| with spmd.no_typecheck(), torch.no_grad(): | ||
| if padding_mask_T is not None: | ||
| valid_mask_T = ~padding_mask_T |
There was a problem hiding this comment.
this was breaking cudagraphs for k3
ef0634e to
1ae229a
Compare
|
This is awesome! thank you! Can you please run it for DAPO math for at least 50 steps and show improvement in the rewards? i guess you cannot do it in single node, right? we have the mast launcher. I would recommend something around 2 or 3 generators for 1 trainer node ratio. If you can run for 150 steps, thats better. It should be straight forward for claude/codex to adapt the dapo math 8k config we have for qwen 3.5. I would prefer to have this as our default rather than alphabetsort, if you dont mind, and publish the reward curve in some .md. |
| disabled=not ( | ||
| torch.cuda.is_available() | ||
| and torch.version.hip is None | ||
| and torch.cuda.get_device_capability() in ((10, 0), (10, 3)) |
There was a problem hiding this comment.
this should run in B200 CI machine -- could you work with @wwwjn on that
There was a problem hiding this comment.
Also curious which part of this Kimi K3 RL requires Blackwell specifically?
| MambaStateDtypeCalculator, | ||
| MambaStateShapeCalculator, | ||
| ) | ||
| from vllm.v1.attention.backends.gdn_attn import GDNAttentionMetadata |
There was a problem hiding this comment.
@acisseJZhong we can call ours xxxAttentionMetadata as well
5dc37ef to
8db7f50
Compare
b8fc770 to
5849df5
Compare
5849df5 to
cff9750
Compare
| disabled=not ( | ||
| torch.cuda.is_available() | ||
| and torch.version.hip is None | ||
| and torch.cuda.get_device_capability() in ((10, 0), (10, 3)) |
0c7f4f6 to
68ba177
Compare
68ba177 to
1f260f8
Compare
| _batch_invariant_extra_lib = torch.library.Library("aten", "IMPL") | ||
| _batch_invariant_extra_lib.impl( | ||
| "aten::sum.dim_IntList", | ||
| _sum_dim_batch_invariant, |
There was a problem hiding this comment.
curious -- is this faster or slower than before, on the previously hit kernels
f398d80 to
a0cd77d
Compare
a0cd77d to
9666939
Compare
The Model support table in torchtitan/rl/README.md lags behind main and the
image RL stack:
- DeepSeek V3 ("Not supported") and Kimi K3 ("Support coming soon") have run
RL end to end in CI since #5556 and #4680: `rl_grpo_deepseek_v3_debug` and
`rl_grpo_kimi_k3_debug_batch_invariant` in the RL H100 Integration Tests
(3 steps, debug model, trainer FSDP=2, two generators at TP=1, no EP). Their
MLA decode and KDA kernels need SM90+, so both rows say "SM90+", and the
intro says how they were tested.
- Muse Spark and Qwen 3.5/3.6/3.8 ("text only") run image prompts end to end:
`rl_grpo_qwen3_5_0_8b_geometry3k` (Qwen3.5-0.8B, Geometry3K, #5825) and
`rl_muse_spark_816b_a42b_slake_lora_gb300` (Muse Spark 816B-A42B, SLAKE).
Qwen 3.6 and 3.8 build `Qwen35Model` and share Qwen3.5's vision processor
config, so they take the same image path.
- The CI table gets the RL H100 Integration Tests badge, the workflow that
runs the DeepSeek V3 and Kimi K3 tests.
Unchanged: GPT-OSS (supported), DeepSeek V4 (no RL code yet), FLUX (diffusion,
no generator path), Kimi K2.7 (no RL recipe or test).
The Model support table in torchtitan/rl/README.md lags behind main and the
image RL stack:
- DeepSeek V3 ("Not supported") and Kimi K3 ("Support coming soon") have run
RL end to end in CI since #5556 and #4680: `rl_grpo_deepseek_v3_debug` and
`rl_grpo_kimi_k3_debug_batch_invariant` in the RL H100 Integration Tests
(3 steps, debug model, trainer FSDP=2, two generators at TP=1, no EP). Their
MLA decode and KDA kernels need SM90+, so both rows say "SM90+", and the
intro says how they were tested.
- Muse Spark and Qwen 3.5/3.6/3.8 ("text only") run image prompts end to end:
`rl_grpo_qwen3_5_0_8b_geometry3k` (Qwen3.5-0.8B, Geometry3K, #5825) and
`rl_muse_spark_816b_a42b_slake_lora_gb300` (Muse Spark 816B-A42B, SLAKE).
Qwen 3.6 and 3.8 build `Qwen35Model` and share Qwen3.5's vision processor
config, so they take the same image path.
- The CI table gets the RL H100 Integration Tests badge, the workflow that
runs the DeepSeek V3 and Kimi K3 tests.
Unchanged: GPT-OSS (supported), DeepSeek V4 (no RL code yet), FLUX (diffusion,
no generator path), Kimi K2.7 (no RL recipe or test).
as title, add titanrl support for k3. for batch invariant mode, use chunked replay kernel (cudagraph friendly and paging aware) we match decode to prefill instead of prefill to decode since its faster
batch invariant bitwise parity passes

verified 0 logprob diffs