pretty_name: Maple Preview TQ2_0 CUDA Benchmarks
license: mit
size_categories:
- n<1K
tags:
- benchmark
- cuda
- gguf
- llama.cpp
- maple-preview
- tabular
- ternary
- tq2_0
configs:
- config_name: summary
data_files:
- split: validation
path: data/benchmarks.jsonl
Maple Preview TQ2_0 CUDA Benchmarks
Reproducibility data for the TQ2_0 CUDA patches in
PascalAI2024/maple-preview-windows-cuda.
This repository contains benchmark data, patch files, hashes, and raw validation
evidence. It does not duplicate the Maple model weights.
Result
The fresh local A/B/B/A validation on an RTX 4080 SUPER reproduced the fused-MMQ prompt-processing gain:
| Variant | pp512 mean | pp512 median | tg128 mean | tg128 median | Correctness |
|---|---|---|---|---|---|
| MMQ enabled | 10,674 t/s | 10,668 t/s | 370.0 t/s | 374.8 t/s | 103/103 |
| MMQ disabled fallback | 1,457 t/s | 1,486 t/s | 376.2 t/s | 375.0 t/s | reference build |
The prompt path improved 7.33× by mean. Generation was effectively unchanged (the medians differ by 0.06%); that is expected because the MMQ patch targets batched prompt matmuls, while batch-one generation already uses MMVQ.
Cross-architecture MMQ results
| GPU | CUDA arch | Host class | pp512 | tg128 | CPU-reference tests |
|---|---|---|---|---|---|
| RTX 3080 | sm_86 | Vast, unverified | 6,985.69 ± 39.85 | 342.73 ± 2.36 | 103/103 |
| RTX 4080 SUPER | sm_89 | local | 10,674.01 ± 100.62 | 370.04 ± 10.39 | 103/103 |
| RTX 5060 Ti | sm_120 | Vast, unverified | 5,738.43 ± 43.23 | 323.89 ± 1.95 | 103/103 |
The local row is the 2026-08-09 controlled refresh on driver 610.62 and CUDA 12.8. The two remote rows are the harvested 2026-08-08 Vast runs. Host verification status is explicit because cheap hardware is useful evidence, not a laboratory pedigree.
What changed
The seven-patch series (0001–0008, with experimental patch 0005 reverted):
- Makes the existing TQ2_0 MMVQ path reachable for batch-one MoE generation.
- Replaces the scalar ternary dot product with packed signed-byte
dp4awork. - Enables TQ2_0 CPU-reference coverage in
test-backend-ops. - Specializes the standalone TQ2_0 dequant path.
- Adds TQ2_0 MMQ dispatch and template instantiation.
- Expands TQ2_0's strided packing into natural K-order signed bytes in shared memory.
- Enables the fused path after the correctness gate.
The final MMQ loader reuses llama.cpp's existing signed-s8 DP4A/Turing-MMA consumer. The important change is removal of the TQ2_0 → FP16 staging → cuBLAS round trip during prompt processing.
Protocol
Local validation uses reproduce/05-validate-benchmark.ps1:
- Refuse to run while another
llama-*process is active. - Warm both the MMQ and fallback builds; discard those warmups.
- Run A/B/B/A, where A is MMQ enabled and B is the patch-0007 fallback.
- Collect five built-in samples for pp512 and tg128 per invocation.
- Run the full
MUL_MATandMUL_MAT_IDCPU-reference matrices. - Record model, binary, patch, source, driver, toolkit, and clock-state evidence.
Benchmark command:
llama-bench -m <MODEL> -ngl 99 -p 512 -n 128 -r 5 -t 8 -o jsonl
Model artifact:
- Repository:
stamsam/maple-preview-gguf - File:
maple-tq2_0.gguf - SHA-256:
09d219202562dbd17722dc8e3273527a021182ab7f892c2a06aac459a8f3a090 - Weights are not included here.
Source pins:
- Benchmark repository commit:
d161aeb - Runtime fork base:
9ee03eec62d088a117ab916bbe489e7a3872a21f - Patch hashes:
evidence/sm89-local-20260809/manifest.json
Files
data/benchmarks.jsonl— one normalized row per hardware/variant result.evidence/sm89-local-20260809/— controlled A/B/B/A samples, GPU state, hashes, and complete correctness logs.evidence/sm86-vast-20260808/andevidence/sm120-vast-20260808/— raw harvested remote results and hashes.patches/— the exact seven published patch files.reproduce/05-validate-benchmark.ps1— the local benchmark/correctness harness.
Limitations
- No A100/sm_80 result is claimed. That is the most useful next architecture because the motivating public test used an A100.
- Windows WDDM clocks and desktop load affect short runs. The harness warms both builds, publishes all samples, and reports mean, median, spread, minimum, and maximum rather than selecting the best invocation.
- The Vast machines were explicitly unverified. Exact GPU, driver, CUDA, model, and patch metadata are included so readers can judge the evidence.
- These measurements validate inference correctness and throughput. They do not validate the model's coding, multilingual, reasoning, or instruction-following quality.
- Results are specific to this Maple llama.cpp fork and TQ2_0 artifact; they are not a general claim that ternary models always outperform GPUs or Q4 models.
Reuse and citation
Use the JSONL data for comparisons, but cite the exact record IDs and preserve
the host-verification and driver fields. For implementation details, issues, or
new hardware results, use the
maple-preview-windows-cuda repository.