This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/libr4d/r4d_attn_paged_h256_gqa6_bs4.hip
T
Deadcode 1e968f6e1d radiance 1.7.0
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves
  every shipped container
- Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime
- /v1/messages works with Claude Code as it ships (gearwave00001)
- a long agent conversation keeps its cached history when the client rewrites its last turn
  (manueloverride)
- a stream's first event goes out with the first token, so llama-benchy measures prefill right
- opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42)
- four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b)
- NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA
  adapters (baKon)
- many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool
  arguments and the CPU's vision and audio encoders
- plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
2026-10-16 18:25:18 +02:00

24 lines
1.4 KiB
Plaintext

// R4D attention at six queries per KV head, head_dim 256: Qwen3.8-Flash-Next's QSA layers at four
// ranks (r4d_attn_paged_h256_gqa12.hip serves them at two). The two KV heads are replicated across
// rank pairs, so each rank serves 6 queries for its one KV head. Geometry only;
// r4d_attn_paged_gqa8.hip is the body. The ratio changes two bounds, both stated in the row table:
//
// decode verify width 64 / gqa = 10. MTP's K=3 verify (q_len 4) fits either ratio; a draft
// block of six or seven positions fits decode here but not at gqa 12.
// prefill block width 384 / gqa = 64 query positions.
//
// No head_dim 128 leg: nothing in scope is gqa 6 at 128, so those entry points are not built.
#define R4D_ATTN_GQA 6
#define R4D_ATTN_H128 0
// KV page of 4 tokens, as in the gqa12 unit (the model's page; TP4 changes only queries per head).
// The QSA indexer selects 4-token blocks, so a selected block is a page and sparse attention is
// this kernel with a different block table (docs/QSA.md). The only cost is reading NB = TILE / BS
// table entries per tile, within step noise; output is identical.
//
// Note: the rows must agree. C_EQ("block_size", 4) on all four gqa6-bs4 rows makes the core size
// the pages at 4 (RadKVGroupDecl takes the block size from the resolved kernel). A row saying 16
// here would refuse at issue rather than at declare.
#define G8_BLOCK_SIZE 4
#include "r4d_attn_paged_gqa8.hip"