Expand description
2026-09-25: Per-family model architectures, their weight loaders (weight_loader, mistral_loader) and the DFlash and MTP draft heads.
Owner: model-arch. Invariants: none beyond the types.
Modules§
- attn_
v41 - 2026-09-25: DeepSeek-V4.1 Flash attention on the GPU: one forward for every layer.
- deepseek_
v4_ mtp - 2026-09-25: DeepSeek-V4-Flash multi-token-prediction (MTP) draft proposer.
- deepseek_
v41_ layer - 2026-09-25: DeepSeek-V4.1 Flash: one transformer block on the generic model.
- deepseek_
v41_ ref - 2026-09-25: DeepSeek-V4.1 Flash tiny-graph reference: the V4.1 graph on the
CPU, checked against
ds41_tiny_golden.json. - dflash_
head - 2026-09-25: DFlash block-diffusion draft head (arXiv 2602.06036),
implementing
DraftProposer. - engram_
v41 - 2026-09-25: DeepSeek-V4.1 Flash engram on the GPU: n-gram hash, row gather,
wkvprojection and gate. - glm5next_
dsa - 2026-09-25: GLM-5.3-Flash DSA (DeepSeek Sparse Attention): the kernel handles, the per-layer geometry and its validation.
- glm5next_
dsa_ ref - 2026-09-25: CPU reference for the GLM-5.3-Flash DSA kpool indexer and NoPE MLA.
- glm5next_
kda - 2026-09-25: The GLM-5.3-Flash KDA attention block: one bound
self_attnblock per KDA layer. - glm5next_
kda_ ref - 2026-09-25: CPU reference for GLM-5.3-Flash KDA (Kimi Delta Attention).
- glm5next_
layer - 2026-09-25:
Glm5NextLayer, the GLM-5.3 decoder layer behindTransformerLayer: a KDA or DSA mixer, a dense or routed-MoE MLP, and the mHC hyper-connection. - glm5next_
mhc - 2026-09-25: Host launchers for the GLM-5.3 mHC kernels: expand, pre (the
hc_mix+hc_finishpair), post, and the head mean. - glm5next_
mlp - 2026-09-25: GLM-5.3-Flash MLP: the dense SwiGLU FFN and the routed NVFP4 MoE, their kernels and per-rank geometry.
- glm5next_
mtp_ head - 2026-09-25:
Glm5NextMtpHead: GLM-5.3’s MTP block as aDraftProposer, one draft token perforward_one. - glm5next_
skeleton - 2026-09-25: GLM-5.3-Flash text-model skeleton: topology, residual/norm/mHC wiring, structural weight contract and state plan, as data.
- kimi_k3
- 2026-09-25: Kimi K3 in the engine: the bound decoder layer, its per-sequence state, and the CUDA launches for the KDA and MLA mixers, the packed LatentMoE experts and the dense MLP.
- mistral_
loader - 2026-09-25: Weight loader for Mistral Small 4 (
model_type = "mistral"): MLA attention with MoE FFNs. - moe_v41
- 2026-09-25: DeepSeek-V4.1 Flash MoE on streamed, still-quantized experts.
- nemotron_
mamba2 - 2026-09-25: Nemotron-H Mamba-2 SSM layer (no FFN), implementing
TransformerLayer. - nemotron_
moe - 2026-09-25: Nemotron-H standalone MoE FFN layer, in two shapes:
- precision_
schedule - 2026-09-25: A per-(layer, role) weight precision schedule:
Roletags a tensor,Dtypeis a requested precision, andPrecisionScheduleresolves a (layer, role) pair to a dtype. - seq_
state_ reserve - 2026-09-25: Per-sequence device state the serve must reserve, computed from the config before the model exists.
- tp_
shard - 2026-09-25: Tensor-parallel weight sharding helpers.
- weight_
loader - 2026-09-25: The
ModelWeightLoadertrait, and one loader per architecture that turns a flatWeightStoreinto typedTransformerLayers.