Archived
radiance 1.15.0
New models and formats: - IQR for Qwen3.8-27B: weights on the int8 grid under GPTQ, a trellis down each GPTQ column (IQR-V2), and IQR-V3, a computed trellis code under one scale a row, kept at its codes' width in VRAM and decoded in the GEMM; 15 IQR-V3 recipes from ~2 to ~7 bits a weight (data/recipes/q38-27b-*-v3.recipe, docs/IQR.md) - libhalo: a kernel library for Strix Halo (gfx1151), preferred there over libr3d - Nemotron 3.5 Embed 1B and 8B (nemotron35_embed): text and image embeddings through a Pixtral tower, on the card and on the CPU - Nemotron 3.5 Rerank 8B - /v1/systemone: Cloudflare's clef and clef-flash, Convai Innovations' Laya and Mica beside LiquidAI d1; scored steps read the candidates' logits from the head table with no lm_head pass - LFM2's 8-bit trunk: block-fp8 or int8 linears with the fused producers, and the d1-3B recipe - DeepSeek-V4.1's reply format with DSML tool calls and typed argument tags Weights on the drive: - The file tier reads only the experts the pass routes rows to; the draft head's weights stay in the host pool - A hot VRAM cache for routed experts read off the drive, reads deposited straight into free host pool slots, and copyless evictions; the file tier's counters are now ssd_* - GLM-5 Next shards its routed experts by expert, not by width, so they can live on the drive - The stall watch counts drive reads as progress, and the DMA lane's room check reads the lane's own completion fence Quantisation tooling: - --calib-corpus, --calib-dir and --calib-layers record each linear's input Hessian; beside --kld-record the reference's own run records them - --kld-top N records a sparse KL reference (the N most likely tokens and the tail's mass) - GPTQ in a third of the time with the same codes, trellis GPTQ on the card, vector codebooks with coordinate descent, and rad-convert --reuse repeated, each container supplying what the earlier ones lack Speculation: - Prompt lookup alone (--spec-ngram K, --spec-ngram-min/-max): each sequence keeps an index of its n-grams, and a proposal is verified only when its measured step cost says it pays; --draft-window adaptive follows it Speed: - IQR decode: the narrow tile splits K for four times the int8 tile's waves and folds each 128-K block once; at 8 tokens down and the output projections run in 0.61-0.82x and 0.70-0.92x FP8's time (2-6 bits); IQ6R-S-V3 with its DFlash2 drafter steps in 26.3 ms at TP2, against 29.4 ms before and FP8's 27.3 - Qwen MXFP4 feed-forward: the gated fold up to 16 rows, not 8 - libr4d: the gated prefill fold, the short-prompt split row, and the rows forms of rmsnorm and rope; KLATE again for the head-256 gqa6 paged prefill; gram_accum on the matrix cores Features: - /health, /v1/health and /ping answer 503 with "status": "stuck" once the device has advanced nothing for a minute or a queue has faulted, so a supervisor can restart a wedged server (#356) - --image-gen-max-pixels and --image-gen-max-refs size an image generator's buffers (#344) - The startup report lists only the options not at their default, with a count; -v lists all (#250) - --preempt-wait-ms bounds how long a preempted prefill waits for its whole-recompute room - --placement layer_offload spills dense layers so one --max-model-len sequence fits - Startup refuses amdgpu with CWSR off and says how to fix it; --proceed-with-incompatible-configuration starts anyway under an UNSUPPORTED banner Fixes: - The n-gram read-ahead hands each row to the reader once and reads only as far ahead as the row cache holds, and pauses while decode reads: about one drive read a row instead of two (#355) - A file-tier window reads each of its runs once, not once a run per run - The decode split law's verify floor is bounded by the batch's workgroups: max_seqs 256 no longer declares 64x the scratch (#342) - A prefetch DMA list's mark stays out of the signal pool until the engine has read it, and a prefill stage copies only the blocks its own tables name (#343) - The split-KV row sum is read with fetch-inactive (#328) - LFM2 on the host backend: libref and libavx serve the row-form ops it declares (#348) - The preempted-prefill gate skips a KV group that holds no blocks (#352) - Every request entry point bounded, gated and sanitised (JSON depth, invalid UTF-8, control bytes in the log, the dashboard's CSP, cross-origin browsers on the loopback-only routes); a prompt id outside the vocabulary refused at admission; --api-key "" refused at startup - The telemetry the HTTP thread reads is atomic - An RMS norm row no longer depends on how many rows its launch carries; prefill attention's rescale is decided by live rows only - A --kld-record prefill chunk that finishes no sequence gets its logits on a tied-head model - A kernel's lazily made counter block is zeroed outside the lock other ranks take (a TP2 first-step hang) Changes: Plugin ABI 32. Every plugin exports a layout fingerprint of the ABI structs and the loader refuses a plugin without it or with another (#302), so out-of-tree plugins must be rebuilt. Appended: RadBuildCtx calib_* and gen_max_*, RadArchProbe gen_max_*, RadBatch score_only and plugin_words, RadDeviceProps::unified, RadChatFormat arg_json_value_prefix.
This commit is contained in:
commit
9ed3ef7a7b
452 files changed
+167762
-1346
No files matched your search
+17
-10
@@ -185,13 +185,18 @@ A staged pass reads the pool by block id, while `kv_store_streamed` writes the r
|
||||
map names a slot (none before the group's first decode), so a staged pass also stores at identity
|
||||
(`AttnGatedFP8::store_stage_identity`, GLM's plain store), after the mirror writer.
|
||||
|
||||
**Volume.** A layer's copy moves the mirror row up to the highest block id the pass can read, not the
|
||||
whole context allocation. The bound is `KVManager::held_top_blocks`, one past the highest held block,
|
||||
read every step after the step's blocks are ensured (`kvstream_bound_live`). It must never be low:
|
||||
the attention would read whatever the previous layer left, which is wrong text, not a fault. It is
|
||||
an upper bound because every id a table holds is held, the stage is identity-addressed from block 0,
|
||||
and allocation is not assumed ascending. It counts every held block, including the prefix cache's;
|
||||
0 (nothing held) stages the whole row.
|
||||
**Volume.** A layer's copy moves only the blocks the step's own block tables name, not the whole
|
||||
context allocation: its list carries one range per run of those ids (`kvstream_runs`), read every
|
||||
step after the step's blocks are ensured (`kvstream_step_runs`). The ranges must never miss a block
|
||||
the pass reads: the attention would read whatever the previous layer left, which is wrong text, not
|
||||
a fault. They cover every read because the pass reaches the stage only through the step's tables,
|
||||
the stage is identity-addressed as the mirror row is, and a prefix hit's cached blocks are in the
|
||||
hit's table. Gaps of up to 16 blocks are copied through, and past 256 ranges the smallest gaps are,
|
||||
so a fragmented table stays one short list. Blocks the prefix cache retains for other
|
||||
conversations are not copied: they often hold the low ids, and a new sequence takes ids above them,
|
||||
so a bound on the highest id a step names (or on the highest held one, as before) would still copy
|
||||
every retained conversation, and each later prefill paid for all of them. A step whose sequences
|
||||
are not known, or whose trunk pass takes the ring, copies up to `KVManager::held_top_blocks`.
|
||||
|
||||
### 3.6 The ABI surface
|
||||
|
||||
@@ -263,8 +268,8 @@ Capacity is bought in host RAM. Flash-Next fp8, two ranks, `--kv-resident 24576`
|
||||
Per retained token: 6.00 KiB of mirror (host), 0.83 KiB of indexer and 0.50 KiB of stage (VRAM);
|
||||
only the ring does not scale. Prefill comes out 3-5 % above the resident arm, because the VRAM the
|
||||
cache no longer holds goes to experts that would otherwise be read over the link. The stage copy's
|
||||
cost is its volume (the held bound moves 0.6 GiB a pass at 16k and 45 GiB at 160k, within 0.3 % of
|
||||
the live KV), not its overlap, since it shares the link as an equal (§6.1). Capacity is bought with
|
||||
cost is its volume (0.6 GiB a pass at 16k and 45 GiB at 160k, within 0.3 % of the live KV, a
|
||||
figure the step's own ranges keep however much the prefix cache retains), not its overlap, since it shares the link as an equal (§6.1). Capacity is bought with
|
||||
`--max-num-seqs`, inside the trained window, so no rope change is needed. Perplexity: 3.994 resident,
|
||||
4.015 with a covering window, 4.014 with a fraction of it.
|
||||
|
||||
@@ -395,7 +400,9 @@ whole context resident during prefill (the group would still carve `n_layers x c
|
||||
| a mirror nothing writes | the store must resolve to a kernel for the group's geometry | `a_declared_streamed_store_with_no_kernel_is_not_a_streamed_path`; `a_packed_cache_warns_that_the_layout_has_no_writer_and_serves_non_streamed`; `a_resolve_declared_for_another_group_does_not_enable_streaming` |
|
||||
| the flag honoured with no streamed path | the capability gate | `a_model_whose_architecture_declares_no_streamed_ops_ignores_the_flag`; `a_streamed_op_exists_only_for_a_capable_architecture_and_a_ring` |
|
||||
| a stage reading the previous layer's bytes | the ordering rule (§3.5.1) | `a_streamed_groups_layers_may_all_alias_one_pool_slot`; `scripts/kv-stage-parity-64k.sh` |
|
||||
| a stage copying less than the pass reads | the `held_top_blocks` bound | `scripts/kv-stage-parity-64k.sh` |
|
||||
| a stage copying less than the pass reads | the ranges of the step's own tables | `the_stage_ranges_cover_every_block_a_table_names`; `scripts/kv-stage-parity-64k.sh` |
|
||||
| a stage copying what other conversations hold | the ranges of the step's own tables | `the_stage_ranges_leave_out_blocks_no_table_of_the_step_names` |
|
||||
| a stage list's mark reused while the list still polls it, both cards stopped | the signal pool holds a mark until its list's engine is past the poll | `device_test` `a_dma_lists_mark_stays_out_of_the_pool_until_the_engine_has_read_it` |
|
||||
| maps leaving the pool short of the probe | `kvstream_maps_charged` in both paths | `a_streamed_groups_maps_are_charged_before_the_pool_is_sized` |
|
||||
| a dense-read sibling funded for one sequence | the `kvstream_dense` floor | `a_dense_read_groups_floor_holds_every_sequence_while_a_sibling_streams` |
|
||||
| a recorded pass replayed against another view | `kvstream_view_key`; fixed addresses | `Ctx::pass_key`'s static assertion on `RadKVGroupBatch` |
|
||||
|
||||
Reference in new issue
Block a user