Archived
radiance 1.2.2
- Static YaRN for the Qwen rotary paths (#37): a container whose config names YaRN gets it in attention, the QSA index keys and a DFlash2 drafter; one reader for every rotary type, and a LLaMA container whose type is not served (llama3, longrope, dynamic) is refused by name. - --rope-scaling yarn:FACTOR[:ORIG] (#38) writes YaRN over a container's own rotary keys at load, no reconvert; the persisted prefix cache's fingerprint carries the resolved rotary. - An uneven world's cheaper rank (#36) pages the common token count and gives the rest of its VRAM to its experts; a plan and pool that disagree refuse to start. - MoE prefill (#35): wide gather, parallel scan and run-map prefix, 256-column down tile, early weight loads -- by rule, bit-identical. - MoE decode (#34): the sorted operand's own down kernel, its column tiles by routed rows. - --draft-window fixed|adaptive (#24): a per-sequence draft window priced by measured step time, one head depth per step over the batch; fixed stays the default. New metric radiance:draft_position_accepted_total and Grafana panels. - Out-of-tree plugin builds compile to the tree's device code from any build directory.
This commit is contained in:
1 parent
6fa7707dff
commit
ac79f4dc8a
63 files changed
+2744
-8759
No files matched your search
+8
-2
@@ -1161,7 +1161,7 @@ stages of its sorting network when the runs are a power of two long and fill the
|
||||
over two runs of 1024 where a full sort is 66 -- and the whole network otherwise. A producer that
|
||||
hands it unsorted runs gets a wrong order, not a slow one.
|
||||
|
||||
## Sparse attention (QSA) — device-only
|
||||
## Sparse attention (QSA)
|
||||
|
||||
| op | params | operands |
|
||||
|---|---|---|
|
||||
@@ -1173,7 +1173,8 @@ hands it unsorted runs gets a wrong order, not a slow one.
|
||||
|
||||
Five ops decompose one thing: an indexer that scores blocks of key history against the query and
|
||||
hands `attn_paged` a shorter block table. `docs/QSA.md` is that decomposition; these are the
|
||||
schemas, and `arch/common/rad_qsa.h` issues all five.
|
||||
schemas, and `arch/common/rad_qsa.h` issues all five. **`qsa_block_key` has a host kernel in libref
|
||||
and libavx** -- the oracle for libr4d's, YaRN included -- and the other four are **device-only**.
|
||||
|
||||
`qsa_block_key` builds the **compressed key**: one vector per `ratio` tokens of key history, which
|
||||
is what the indexer's block scores are taken against.
|
||||
@@ -1182,6 +1183,11 @@ is what the indexer's block scores are taken against.
|
||||
out[b] = rope( rmsnorm( mean over j<ratio of k[b*ratio + j] ), at position pos0 + b*ratio )
|
||||
```
|
||||
|
||||
The rotation is `rope`'s NeoX ladder over the first `rotary_dim` lanes, with `rope`'s YaRN
|
||||
coefficients (`yarn_factor`, `yarn_low`, `yarn_high`, `yarn_magnitude`) when given -- the
|
||||
attention's own rotary, so a compressed key and the keys it summarises are rotated alike. With
|
||||
YaRN, `scale` must be 1.
|
||||
|
||||
**`M` is BLOCKS and `k` is `ratio` times taller.** Every other op in this document has one output
|
||||
row per input row. A caller that sized `k` at the block count would have every block pool three
|
||||
rows of the next one — plausible numbers and a different model — so libr4d's entry point checks it.
|
||||
|
||||
Reference in new issue
Block a user