mtt-s80-build #2

Merged
software merged 3 commits from mtt-s80-build into main 2026-11-19 19:11:23 -05:00
Owner
No description provided.
- Q8_0 decode kernel (N<=7, split-K) and large-batch decoder: 9B Q8_0 single-token
  decode 14.0 -> 17.1 t/s, 4-token pass 134 -> 61.5 ms; KLD vs stock 0.0004.
- tools/graft_mtp.py grafts an MTP-only block into a GGUF converted without one;
  Qwen3.5-9B Q8_0 + a4lg MTP head: 26.7 t/s with 3 drafts (>= 23.8 t/s per prompt,
  25.8 t/s at temperature 0.7). New run-server.sh preset qwen9b-mtp.
- Docker image adds numpy/pyyaml for gguf-py.
- mtp_bench.sh: PER_PROMPT and TEMP options.
- Docs: 27B 100k window tested (94.5k-token prompt fits, 25 t/s prompt processing).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fattn-musa.cu: a block handles 4 query tokens x 6 heads per 256-position KV chunk,
Q/P staged in quarters; for 16+ query tokens the q4_0 cache is unpacked to f16 once
per 16k-position segment and segment results are merged into running accumulators.
Per layer at 65k positions (q4_0, 512-token batch) 1155 -> 437 ms; MTP verify 9.2 ->
7.2 ms. FlashAttention tests pass in the dev tree; in-model KLD unchanged.
End to end: 11.4k-token prompt 74.7 -> 88.3 t/s. Adds FA perf cases for the 27B shape
and an IGNORE_EOS option to longctx_bench.sh.

Not yet re-verified with scripts/build.sh + scripts/test.sh in this repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Verify batches (2-15 query tokens) use the tiled kernel only from 8192 cached
  positions; below that the per-token kernel fills the GPU better (MTP step 258 ->
  253 ms at short context, same as before the rewrite).
- Rebuilt from the patch with scripts/build.sh; scripts/test.sh passes.
- Docs: long-context results (11.4k prompt 88 t/s / decode 10.9 t/s, 41.6k prompt
  68 t/s / decode 9.4 t/s), attention per-layer timings, GGML_MUSA_FA_TILED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
software/S80-Optimization!2
No description provided.