Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@
populated large vision graphs. Canonical vision comparisons cover at most
256 live patches.

[ ] Compare Inkling 2 output across four DGX Sparks, where cross-host hidden
reductions round partial sums to BF16, with the single-host FP32
reductions, and run the effort-zero cases of tests/server/test_inkling2.py
there. Planning at 32 requests and 8192-token chunks predicts 22.9 GiB of
KV pages per rank where native loading allocates 12.4 GiB; correct the
declared rank costs from a measured GB10 memory report.

[ ] Measure the smallest prefill capacity at which Inkling 2 row sharding
shortens a chunk on four DGX Sparks. SHARDED_PREFILL_ROWS (2048) in
ignition/recipes/inkling2/decoder.py is an estimate; only 8192-row chunks
are measured in serving. A sharded chunk runs 361 collectives against 97.

[ ] Fix native TP4 shutdown reporting "free(): double free detected in tcache 2"
after server drain with Inkling 2 cores. Reproduces with compiled and
uncompiled graphs; preserve the successful request drain and GPU release.
Expand Down
8 changes: 4 additions & 4 deletions docs/cli-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,8 @@ explicit flags take precedence.
| `--no-mtp` | Disable multi-token speculation: load no draft model, keep no verification rows, and decode one token per step. | Speculation on |
| `--mtp-only` | Omit MTP-disabled prefill, decode, maintenance, and mixed graphs during preparation. Retain width-one speculative rounds and vision graphs. Requires positive draft depth; rejects `--no-mtp`. The core cannot load with native `--mtp-draft-tokens 0`. | Capture both execution modes |
| `--draft-body-quantization {mxfp8}` | Prepare eligible DFlash2 body context, attention latent/query/output, and MLP projections as MXFP8, independently of target conversion and proposal-head precision. Kimi K3.1 Pro requires `--speculative-method dflash2` and positive learned draft depth; DSpark and other recipes reject it. Normalization, convolution, candidate-selector, and absorbed key/value weights retain their precision. Omission preserves checkpoint precision or the existing `online_mxfp8_scope all` behavior. | No additional override |
| `--draft-head-quantization {nvfp4,mxfp8}` | Prepare a separate proposal vocabulary head while retaining target-head precision. NVFP4 supports DeepSeek V4/V4.1; MXFP8 supports DeepSeek V4.1. Qwen3.8 dense supports both when the source checkpoint head is BF16, including `qwen3.8-27b-qad`; the packed NVIDIA head cannot be converted through this option. Flash Next supports both with `--speculative-method dflash2` and a BF16 target vocabulary head. Kimi K3.1 Pro supports both with `--speculative-method dflash2` only. This does not quantize the draft body. | Checkpoint precision |
| `--markov-head-quantization {nvfp4,fp8}` | Prepare the draft Markov transition projection as NVFP4 or row-scaled E4M3 FP8. DeepSeek V4 supports NVFP4; DeepSeek V4.1 supports both. Requires positive draft depth. | Checkpoint precision |
| `--draft-head-quantization {nvfp4,mxfp8}` | Prepare a separate proposal vocabulary head while retaining target-head precision. NVFP4 supports DeepSeek V4/V4.1; MXFP8 supports DeepSeek V4.1. Qwen3.8 dense supports both when the source checkpoint head is BF16, including `qwen3.8-27b-qad`; the packed NVIDIA head cannot be converted through this option. Flash Next supports both with `--speculative-method dflash2` and a BF16 target vocabulary head. Kimi K3.1 Pro supports both with `--speculative-method dflash2` only. Inkling 2 Small NVFP4 supports both. This does not quantize the draft body. | Checkpoint precision |
| `--markov-head-quantization {nvfp4,fp8}` | Prepare the draft Markov transition projection as NVFP4 or row-scaled E4M3 FP8. DeepSeek V4 supports NVFP4; DeepSeek V4.1 supports both. Inkling 2 Small NVFP4 supports FP8 for its recurrent correction head. Requires positive draft depth. | Checkpoint precision |
| `--vocabulary-parallel-sampling` | Prepare vocabulary-sharded DSpark proposals and block rejection sampling. DeepSeek V4.1 on four GPUs only; three-GPU preparation rejects it. Requires positive draft depth and recipe sampling defaults without top-k, top-p, or min-p filtering, and rejects `--markov-head-quantization nvfp4`. | Full-vocabulary sampling |
| `--mtp-draft-tokens N` | Most draft tokens verified in one round; see `MODEL --help` for its limit. Verification capacities cover counts from 0 through `N` within the speculative token capacity. Each complete speculative program records its actual proposal depth independently of target width and aggregate rows. Prefix selection uses measured complete-program cost and completed acceptance or confidence. Zero retains draft state with width-one execution; `--no-mtp` excludes draft weights and state. | Recipe declaration |
| `--speculative-token-capacity N` | Maximum physical target-token rows in wider speculative graphs; width one covers every request bucket. Applies to every speculative recipe. | Recipe declaration: 32 for Muse Spark and 128 for the other recipes that declare one. Gemma 4 declares none and derives it from concurrency and draft depth (6 at its defaults) |
Expand All @@ -469,8 +469,8 @@ explicit flags take precedence.
| `--no-compile` | Development only: capture graphs without compiling forwards. A recipe never sets it. | off |
| `--force-moe-decode-a16` / `--no-force-moe-decode-a16` | Prepare Qwen3.8 Flash NVFP4 target routed experts as one packed weight owner: decode and speculative verification use W4A16 at every token-row count, and separate prefill graphs use calibrated A4. Requires SM120/121, checkpoint activation scales, and rank-local expert intermediate width divisible by 64 (TP1/2). Mixed prefill and other recipes/precisions reject the flag. Shared experts and stored A16 MTP experts retain their precision. Overrides `[preparation] force_moe_decode_a16`; the resolved value is recorded in the plan and core rebuild metadata. | off |
| `--native-dense-activations` | Replace dense projection `auto` precision with b12x `quantized`: A8 for FP8 weights and A4 for FP4 weights. Explicit recipe precision and routed MoE precision are retained. NVFP4 requires a checkpoint activation global scale; unsupported native paths fail preparation. | Recipe precision |
| `--online-mxfp8` | Store eligible BF16 projections as MXFP8 while loading. Kimi K3.1 converts fused target KDA inputs by default; `--online-mxfp8-scope all` also converts eligible attention output/latent projections, shared experts, MoE latent projections, and DFlash2 draft projections. Kimi K3 converts KDA projections, MLA latent/gate, query and output projections, shared experts, MoE latent down/up projections, and DSpark context, outputs and MLPs; batched MLA key/value projections retain BF16. Qwen3.8 dense converts target attention/MLP projections and DFlash2 context, attention and MLP projections. Flash Next with `--speculative-method dflash2` converts only DFlash2 projections; target precision is retained. Existing packed weights, normalization, convolutions, selectors and target vocabulary weights retain their precision. Recipes that name no such projections reject it. | Checkpoint precision |
| `--online-mxfp8-scope SCOPE` | Select a conversion group declared by the recipe. Kimi K3.1 supports `kda-input` and `all`; the broader group changes target as well as DFlash2 draft projection storage. Other recipes retain their declared conversion set. Command line only; requires `--online-mxfp8` for a non-default group. | Recipe scope |
| `--online-mxfp8` | Store eligible BF16 projections as MXFP8 while loading. Kimi K3.1 converts fused target KDA inputs by default; `--online-mxfp8-scope all` also converts eligible attention output/latent projections, shared experts, MoE latent projections, and DFlash2 draft projections. Kimi K3 converts KDA projections, MLA latent/gate, query and output projections, shared experts, MoE latent down/up projections, and DSpark context, outputs and MLPs; batched MLA key/value projections retain BF16. Qwen3.8 dense converts target attention/MLP projections and DFlash2 context, attention and MLP projections. Flash Next with `--speculative-method dflash2` converts only DFlash2 projections; target precision is retained. Inkling 2 converts every decoder layer's fused attention input projections and its attention output projection, with BF16 activations in prefill, decoding and verification, and DSpark's query/key/value and attention output projections and its recurrent head's context projection; routers, experts, DSpark's key/value projections of accepted target taps, its feed-forward weights and proposal heads, and the vision encoder retain their precision. Existing packed weights, normalization, convolutions, selectors and target vocabulary weights retain their precision; Inkling 2's `with-vocabulary-head` group is the exception for vocabulary weights. Recipes that name no such projections reject it. | Checkpoint precision |
| `--online-mxfp8-scope SCOPE` | Select a conversion group declared by the recipe. Kimi K3.1 supports `kda-input` and `all`; the broader group changes target as well as DFlash2 draft projection storage. Inkling 2 supports `all`, its default, and `with-vocabulary-head`, which adds each rank's target vocabulary shard and so changes the logits that sampling and DSpark verification read. Other recipes retain their declared conversion set. Command line only; requires `--online-mxfp8` for a non-default group. | Recipe scope |
| `--language-model-only` | Prepare no vision encoder and serve text only, as vLLM's flag of the same name; requests with images are rejected and the encoder's weights, scratch, and graphs become KV pages. Recipes without a separable encoder reject it. | The recipe's image support |

Speculative method, token capacity, and packed graph budget also accept
Expand Down
Loading