[Benchmark] RTX 3090 24 GB (sm_86), Windows + CUDA 13: 0.1.66 decodes 4-5 % slower than 0.1.62 and gives up 358 resident expert slots

Aperta
#7,286 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

Start by comparing the engine 0.1.62 and 0.1.66 startup logs and planner output for expert cache reservation and actual allocation; the report says the raw run files are available locally but does not identify repository files or tests. Then trace the cache sizing and reservation entry points and reproduce the RTX 3090 measurements. Done means explaining or correcting the reduced cache allocation and planner estimate while checking decode performance.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-format
Area

[Benchmark] - measured numbers on one specific machine

Desktop app, Terminal or source?

Terminal (strata / serve/server.py)

What happened

The 24 GB case is missing from the tracker: #7106 is a 12 GB 3080 Ti, #6976 is a 4090 on Linux, and the sm_86 reports so far are all crash reports. This is a four-arm interleaved speed comparison of 0.1.62 vs 0.1.66 on the same box, same pack, same config.

Engine 0.1.66 is 4-5 % slower on decode and has no prefill gain. The startup lines show why: it reserves more after the expert cache and more of the card was already gone before it started — together 0.82 GiB less cache, which on 24 GB costs 358 resident expert slots.

Environment
GPU RTX 3090 24 GB (sm_86), driver 610.88
OS / backend Windows 11, CUDA 13 engine packages
CPU / RAM i5-12600KF / 128 GB DDR4
Model Qwen3.8-Flash-Next Unsloth UD-IQ4_XS v31, iq_pack.py --compat-bf16
Flags --max-context 262144 --kv int8 --kv-resident 20480 --parallel 1, STRATA_ROUTE_TAIL_SKIP=5
Engines 0.1.62 (build 1d295787b365) vs 0.1.66 (build 2e87c08db18a)

--max-context 262144 is what both arms ran; this deployment runs 393216 today, so nothing here is specific to 256K.

The 0.1.66 arm ran with STRATA_HC_Q8=0. Without it every request dies at the first verify window (layer 0 never rang) - the auto-enabled Q8_0 hyper-connection path of #6713 / #6714, which UD-* packs hit. Ten variants of that failure were checked separately (kv-resident, adapt-async, reserve, context, device-hits, SM86_PERF, HC_SPLIT, HC_Q8_TC): all ten reproduce, so it is not a knob.

Method

Four arms interleaved A-B-A-B, two rounds per arm, conv_cache: false in every run, identical run config except engine\, engine stopped between arms, both on port 8097.

  • 4K cell: n = 10 per arm
  • 16K cell: n = 4 per arm
  • Single-run decode spread is 91-128 tok/s, so a single run cannot resolve 4 % - hence the interleave and two rounds.
Prefill (tok/s, median)
Cell 0.1.62 r1 0.1.66 r1 0.1.62 r2 0.1.66 r2 Mean delta
4K 1787.0 1763.2 1794.4 1755.0 -1.8 %
16K 2700.0 2882.7 2974.6 3153.4 +6.4 % (arm-to-arm spread is itself +/-10 %, so: noise)
Decode (tok/s, median)
Cell 0.1.62 r1 0.1.66 r1 0.1.62 r2 0.1.66 r2 Mean delta
4K 117.7 107.8 113.2 111.5 -5.0 %
16K 103.2 103.2 123.9 114.1 -4.3 %

Both rounds and both cells point the same way: decode is lower, prefill is not better.

Expert cache - two inputs moved, not one
0.1.62 0.1.66
Free VRAM at start 16.70 GiB 16.12 GiB (-0.58)
Reserved, +draft +220 MiB +220 MiB
Reserved, after cache +256 MiB +384 MiB (+128)
Planner's printed estimate 5,563 slots 6,186 slots
Actual allocation 6,508 slots, 14.85 GiB 6,150 slots, 14.03 GiB
prompt chunk auto 32768 tokens, 512-slot ring 32768 tokens, 512-slot ring
Load time 25.2 s 25.2 s

0.1.66 had 0.82 GiB less for the expert cache in total - 358 slots at ~2.3 MiB. Decode on a MoE model is expert-cache hit-rate bound, so a 5.5 % smaller cache yielding a 4-5 % slower decode is the expected direction, not a coincidence. Same direction as #7106 (12 GB 3080 Ti: 2363 -> 2087 slots, -32 % decode) and #6976 (4090, same UD-IQ4_XS-v31: 6615 -> 5973 slots). On 24 GB the loss is smaller than on 12 GB but it does not disappear.

Two things are worth a look. The reserve step (256 -> 384 MiB) accounts for only 128 MiB of the 0.82 GiB; the other 0.58 GiB was less free VRAM at start on the same boot sequence, which I did not isolate. And the planner's estimate moved the opposite way (5,563 -> 6,186) while the actual allocation moved down (6,508 -> 6,150), so the printed estimate is not what the allocation follows.

Why 0.1.67 is not in this table

0.1.67 could not be measured here. On Windows + CUDA 13 it matches #7131 exactly: 1K and 8K prompts pass, long prompts die with 0xC0000005. This deployment runs 384K context and lives on 64K+ prompts, so an A/B on 0.1.67 would only produce crashes. A Linux 0.1.67 run with the same four-arm interleave on a 24 GB sm_86 card would close the gap - that data point does not exist in the tracker.

Reproduction status

Reproduced locally (2026-11-23), re-analysed from the stored run files (2026-11-25). Nothing was re-run for this report.

Strata version

0.2.1 / engine 0.1.62 vs 0.2.20 / engine 0.1.66. Not affected by 0.1.67 yet (see above).

Raw data

Four files per arm per round (cfg-*.json, result-*.json, serve-*.log, stdout-*.log), kept locally; every number above is a median over the per-cell samples listed under Method. The result files carry engine_version, build_id, conv_cache and load_s per arm, so the pairing is checkable. Happy to attach either round's json if that helps.

Suggestion

Size the post-cache reserve from the card instead of a flat 384 MiB (or keep the 256 MiB 0.1.62 used), and make the planner's printed estimate agree with the allocation it actually makes - between 0.1.62 and 0.1.66 the two move in opposite directions. Until then 0.1.62 remains the fastest engine for this configuration.

Lingua principale
C++
Stelle
11.6k
Fork
1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Niko1221/Strata

Tutte le issue di Niko1221/Strata

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.