Shard Kimi projections without padding checkpoint weights - #385
Merged
lukealonso merged 6 commits intoAug 17, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
voipmonitor
force-pushed
the
agent/ii-b12x-dcp-collectives
branch
from
August 16, 2026 04:32
9ba0e56 to
5376dd6
Compare
voipmonitor
force-pushed
the
agent/ii-kimi-projection-sharding
branch
from
August 16, 2026 04:32
b4f0414 to
b1f33f3
Compare
voipmonitor
force-pushed
the
agent/ii-kimi-projection-sharding
branch
from
August 16, 2026 05:04
b1f33f3 to
ebd7bbb
Compare
voipmonitor
force-pushed
the
agent/ii-b12x-dcp-collectives
branch
from
August 16, 2026 05:38
545690b to
eb4d734
Compare
voipmonitor
force-pushed
the
agent/ii-kimi-projection-sharding
branch
from
August 16, 2026 05:39
ebd7bbb to
17b9f73
Compare
This was referenced Aug 16, 2026
lukealonso
force-pushed
the
agent/ii-b12x-dcp-collectives
branch
from
August 17, 2026 04:26
eb4d734 to
cca7670
Compare
voipmonitor
changed the base branch from
agent/ii-b12x-dcp-collectives
to
dev/infernal-invocation
August 17, 2026 04:55
voipmonitor
changed the base branch from
dev/infernal-invocation
to
agent/ii-b12x-dcp-collectives
August 17, 2026 04:56
Skip generic minimum-width padding when Kimi-K3 MXFP4 routed experts use the B12X W4A16 backend. TP16 retains the checkpoint 192-channel local intermediate shard instead of expanding it to 256 channels; other quantization and MoE backends preserve the established padding policy.
Add an opt-in tensor-parallel layout for Kimi-K3 fused q_a and kv_a weights. Gather rank-local outputs once per layer and restore logical q_a/kv_a ordering before normalization, preserving the replicated projection result while reducing per-rank weight storage.
voipmonitor
force-pushed
the
agent/ii-kimi-projection-sharding
branch
from
August 17, 2026 05:00
17b9f73 to
49186ad
Compare
voipmonitor
changed the base branch from
agent/ii-b12x-dcp-collectives
to
dev/infernal-invocation
August 17, 2026 05:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
Implemented. This pull request is stacked on #384 and requires local-inference-lab/b12x#215 for unaligned multi-row FP8 output storage.
Behavior
f_asharding when the output width is divisible by the tensor-parallel size.Technical reason
Checkpoint padding increases routed-expert storage and can prevent the official MXFP4 checkpoint from fitting with the required KV cache. Projection sharding reduces replicated dense weight memory without changing logical tensor shapes or executed values.
Compatibility
KDA
f_asharding remains disabled unless requested. TP12 rejects that option because width 128 is not divisible by 12. The replicated path remains the default because TP16 decode measurements favor replication despite its 113.20 MiB per-GPU memory cost.Validation