You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(kimi-k3): Kimi K3 support: MXFP4 to BF16 conversion and inference graph
New arch kimi-k3 (KimiK3ForConditionalGeneration, text_config kimi_linear):
- compressed-tensors mxfp4-pack-quantized dequant (E2M1 nibbles low=even,
E8M0 uint8 scale, group 32), verified against real Kimi-K3 shard tensors
- KDA safe gate: g = lower_bound * sigmoid(exp(A_log) * (f_b(f_a(x)) + dt_bias)),
full-rank output gate g_proj, A_log sliced to [:n_head] at conversion
- gated MLA (NoPE): attn * sigmoid(g_proj(x)) before o_proj, q_lora_rank 1536
- Stable LatentMoE: router on full hidden, experts in 3584 latent space,
RMSNorm after the weighted expert sum, then up-projection
- AttnRes: residual-stream snapshot bank every attn_res_block_size layers,
softmax mixtures before attention, before FFN and at model output
- SiTU-GLU activation (LLM_FFN_SITU):
beta*tanh(g/beta)*sigmoid(g) * lbeta*tanh(up/lbeta)
Tested on a synthetic mini K3: convert -> BF16 GGUF -> Q8_0 -> generation.
0 commit comments