Archived
radiance 1.4.0
- Qwen3.8-Flash-Next on one card: the heat engine moves 64 experts a step (was 8), its copies and the prefill's expert staging run on the card's DMA engines instead of as copy kernels, and at decode the next layer's likeliest experts are copied onto the card ahead of its GEMMs. Against 1.3.0 at --tp 1: prefill +17-20% from 8K tokens up, throughput under load +16-20% - deploy/compose/flashnext-tp1.yaml: Qwen3.8-Flash-Next on one card and 64 GB of host RAM (4096-token prefill steps, 4 sequences, a 301K-token cache) - #61: --busy-prefill-chunk (default auto): a long prefill leaves the rest of the step to the requests decoding beside it and to new arrivals, instead of taking all of it (baKon) - LiquidAI's LFM2 and LFM2-VL, and d1's /v1/systemone (after zivius's PR #50) - a startup report: every option with its value and where it came from, the hardware, and what on it costs speed with the fix; /diagnostics serves it (behind the API key; without one, only to the same machine) - #69: a GPU memory fault names the buffer and kernel argument behind it and ends the server at once (exit status 70), instead of hanging or writing a core of tens of gigabytes - #64: a card without Resizable BAR is refused at startup, naming what to turn on, instead of crashing at the first launch - the image is built with ROCm 10.1 (the host's amdgpu driver must support it), with ROCm's libLLVM rebuilt so the same source compiles to the same kernels every time; a source build takes ROCm 10.1 or 7.2 - #71: the image ships curl, jq and a CA bundle, so --model <HF repo id> works in the container, and hfget.sh runs under its busybox (baKon) - --profile-ops shows how long each op's lane sat idle before it; cardclock.py skips an integrated GPU instead of stopping
This commit is contained in:
1 parent
d5b65cddc6
commit
dc339b4cd2
153 files changed
+12956
-1067
No files matched your search
+18
@@ -165,6 +165,7 @@ adding a kernel plugin; "refused at load" names one op and leaves you to find th
|
||||
| `hc_write` | `M`(range) `n` `hc` `dtype` | `y`, `inj`, `h`:inout |
|
||||
| `layernorm` | `M`(range) `n` `eps`:f64 `dtype` | `x`, `w`w, `b`w? → `y` |
|
||||
| `grid_embed` | `M`(range) `n` `side` `dtype` | `x`:inout, `table`w, `coord` |
|
||||
| `grid_embed_aa` | `M`(range) `n` `side` `dtype` | `x`:inout, `table`w, `coord` |
|
||||
| `add` | `M`(range) `n` `dtype` | `a`, `b` → `y` |
|
||||
| `mul` | `M`(range) `n` `dtype` | `a`, `b` → `y` |
|
||||
| `silu_mul` | `M`(range) `n` `dtype` | `gate_up` → `y` (splits `[M,2n]` into gate·up) |
|
||||
@@ -493,6 +494,12 @@ is `[4, M]` (row, column, grid height, grid width), sampled bilinearly with the
|
||||
table's (align_corners), edge taps clamped, the four taps summed in f32 and rounded to `x`'s dtype
|
||||
before the add.
|
||||
|
||||
**`grid_embed_aa`** is the same addition with SigLIP2's resample: torch's
|
||||
`F.interpolate(mode="bilinear", align_corners=False, antialias=True)`. Per axis a triangle filter on
|
||||
half-pixel centres, widened by the scale when the grid is smaller than the table, its taps inside the
|
||||
table normalised to sum to one; separable, f32, rounded once. A different function from
|
||||
`grid_embed`'s, and so a different op rather than a mode a library could ignore.
|
||||
|
||||
| op | params | operands |
|
||||
|---|---|---|
|
||||
| `attn_paged_gate_quant` | `q_len`(range) `head_dim` `gqa` `block_size` `causal` `window` `q_dtype` `kv_dtype` `scale`:f64/opt `max_ctx`/opt `n_head`/opt `max_seqs`/opt:capacity `group` `act` | `q`, `kv_cache`, `block_table`, `seqused`, `k_descale`?, `v_descale`?, `cu_seqlens`? → `out`; `gate` → `q8`, `q8_scale` |
|
||||
@@ -910,6 +917,7 @@ form exists, as for `ar_hc_write`.
|
||||
| `ngram_ids` | `M`(range) `heads` `ngram` `eos` | `tok`, `state`:inout, `cu`, `mult`w, `vocab_sizes`w, `offsets`w, `cache_idx`?, `has_init`?, `num_accepted`? → `ids`, `ahead_ids`? |
|
||||
| `ple_gate` | `M`(range) `n` `hc` `eps`:f64 `dtype` `wadd`:f64/opt `gate_eps`:f64/opt | `k`, `q`, `v`, `w_key`w, `w_query`w, `w_conv`w → `gv`, `gvn` |
|
||||
| `ple_conv` | `M`(range) `n` `width` `dilation` `dtype` | `x`, `w`w, `conv_state`:inout, `cu`, `resid`?, `cache_idx`?, `has_init`?, `num_accepted`? → `y` |
|
||||
| `causal_conv1d` | `M`(range) `n` `width` `dtype` | `x`, `w`w, `conv_state`:inout, `cu`, `cache_idx`?, `has_init`?, `num_accepted`? → `y` |
|
||||
|
||||
Separate from `gemm_nt` because `lm_head` is its own access class (`RAD_ACCESS_VOCAB`) and because
|
||||
the sampler wants to fuse against it: at a 151K vocab and batch 256 the logits are ~77 MiB a step,
|
||||
@@ -1172,6 +1180,16 @@ it takes the union of the two contracts instead: `has_init` is prefill's questio
|
||||
The residual add is folded in because the reference is `gv + silu(conv(gvn))` and the two tensors
|
||||
are both `[M, hc*n]` — 10240 wide here. `resid` absent leaves the plain convolution.
|
||||
|
||||
### `causal_conv1d`: `ple_conv` without the PLE
|
||||
|
||||
y[t] = sum_j w[c][j] * x[t - (width-1-j)]
|
||||
|
||||
LFM2's short convolution: depthwise, causal, undilated, with no activation and no residual — the
|
||||
gates around it are separate `mul`s in the architecture. The window and its three optional operands
|
||||
are `ple_conv`'s at dilation one, so an architecture issues it the same way, once over its decode
|
||||
rows with `num_accepted` and once over its prefill rows without. libr4d, libref and libavx each
|
||||
serve both ops from one implementation.
|
||||
|
||||
## Sampling
|
||||
|
||||
Every sampler is a kernel, not a host lift. `llama.cpp`'s chain is kept as a **host reference**
|
||||
|
||||
Reference in new issue
Block a user