Skip to content

KVarN + draft-mtp recipe benchmark on RTX 5080 Laptop: quality and VRAM reproduce, speed does not (data + repro) #145

Description

@brennenawana

Hi — I benchmarked the KVarN/IQ4_XS-Smaller/draft-mtp recipe (as seen in the recent "Qwen 3.8 27B at 50 tok/s on 16GB VRAM" video) on the same GPU class (RTX 5080 Laptop 16GB) and got results well below the claimed speeds. Posting full data in case it's useful; happy to be told I misconfigured something.

Setup

  • beellama.cpp built from main (2026-09-03), CUDA sm_120, driver 610.57.04 / CUDA 13.3.1
  • jrell/Qwen3.8-27B-i1-IQ4_XS-GGUF-Smaller.gguf (13.5 GB)
  • Flags: -fa on -ctk kvarn5 -ctv kvarn4 --kv-tail-tokens 1024 --kv-tail-type f16 -b 1024 -ub 256, MTP cells add --spec-type draft-mtp --spec-draft-n-max 2
  • Probe: streaming OpenAI API, 3 runs/cell, medians; short = ~500-token prompt, long = 28k-token prompt, recall = 3 planted facts + code-navigation question

Results (short gen / long gen, tok/s)

Config Claimed Measured VRAM
64k + MTP 50 16.7 / 5.0 13.4 GB
128k, no MTP ~30 10.2 / 1.6 15.6 GB
96k, no MTP 15.3 / 3.4 14.7 GB
Stock llama.cpp, unsloth UD-IQ4_XS, 64k, q4_0 KV 18.4 / 15.8 15.3 GB

Reproduced: quality (3/3 recall + nav in every cell — the IQ3_S FFN trade is probe-safe) and VRAM efficiency (128k boots at 15.6 GB).

Did not reproduce: speed. Even short-context decode is ~3x below claim, and long-context decode collapses to 1.6-5 tok/s — KVarN cache reads look ~4.6x slower than stock q4_0 at the same prompt depth. draft-mtp adds only a small gain (16.7 vs ~15.3 short at 64k).

Ruled out background load: A/B rerun of stock vs beellama under a 15.0 load average reproduced both sides' numbers exactly.

Questions:

  1. Is there a known commit/flag combination that fixes the long-context KVarN read path?
  2. Any known interaction between KVarN caches and -fa on / batch flags that would tank decode at depth?
  3. Would profiling guidance help (I can capture timings if useful)?

Thanks for the project — the memory results are genuinely impressive; I'd love to make the speed part work on this hardware.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions