Skip to content

Volta (sm_70) speed on strata-poly: measured GLM-5.3-Flash numbers + request for a Volta kernel path and --kv q8_0 for glm5next #88

Open

Description

@llollaalloll

Feature request: Volta (sm_70) path for strata-poly — tensor-core kernels + --kv q8_0 for glm5next

Follow-up to #73 (the kda_step_kernel launch-bound fix, 79d51a1, which we hit and bisected). With that fix the engine runs on our rig; this issue is about speed on the same hardware, and a request for the two repo gaps that cap it.

Hardware (what you don't have — reporting per COMMUNITY_BENCHMARKS.md)

  • 2x Tesla V100-PCIE 32GB (sm_70, ~897 GB/s, PCIe gen3, no NVLink) + 1x RTX 2080Ti 22GB (sm_75)
  • Xeon E5-2673 v3 x2 (24c/48t, Haswell, AVX2, no AVX-512), 2 NUMA nodes; 251 GiB RAM; Linux; driver 570.211.01, CUDA 12.8
  • Build: main as of 23 Oct (includes 79d51a1), -D CMAKE_CUDA_ARCHITECTURES=70;75

Model and measured numbers (what we measured)

GLM-5.3-Flash-REAP50-Q3_K_M.gguf, 78.78 GB (half routed experts pruned, 6,192 experts left, own draft/MTP block). 3-card --layer-split auto, 128K context, --vram-reserve-mib 2048:

  • experts resident: 85.7% in VRAM (rest through the CPU path)
  • decode, no-graphs: 34-35 tok/s
  • decode, CUDA graphs on: 37.8-44.9 tok/s
  • draft/MTP active, acceptance low in our runs (~1 of 2 guessed tokens kept)
  • 4-case bench against our production baseline: short 71% / mid 47% / tooljson 82% / reasoning 44%

Baseline for comparison, same rig, same day class: Qwen3.8-Flash-Next IQ3_XXS on the Strata project's own engine (v0.1.41 custom build, sm_70), 3-card split, experts 100% VRAM-resident: 75-97 tok/s decode. So poly-on-Volta runs at roughly half of what the same cards do for the Strata engine's expert path.

What we believe caps it (from reading the source; measurements not yet run per-request)

  1. STRATA_POLY_MMA is compiled out below sm_75 (src/poly/kernels.cu ~1646: __CUDA_ARCH__ < 750 -> 0), and tensor_cores() gates on ptxVersion >= 75 (~2150). Volta has tensor cores (m16n8k8 f16) but no ldmatrix; the poly flash-attention and MMA paths therefore fall back on our cards. Upstream Strata's own native_mmvq.cu already carries a measured Volta table (kIlRows_70[], read off a V100-SXM2 bench), so the project has proven Volta tuning — it just isn't in the poly kernels.
  2. --kv q8_0 is rejected for GLM (src/poly/engine.cpp ~991: "only supported for qwen35moe models in v1"). At 128K fp16 KV the residency headroom is what keeps 14.3% of experts off-card; q8_0 for glm5next would directly attack the expert-residency gap we measured (85.7%).
  3. The repo-seeded --expert-profile counts come from 5090 runs; we have not yet recalibrated on this rig (config work on our side, listed for honesty).

What we ask

  1. A Volta path for the poly kernels: enable the tensor-core step on sm_70 (m16n8k8 without ldmatrix, or a Volta-specific variant), and/or route poly expert GEMV through the already-tuned native_mmvq Volta table.
  2. --kv q8_0 (or the int8/int8k readers from poly: --kv int8 (and int8k) — a compute-native Q8_0 KV cache for qwen35moe and Gemma 4 #33/poly: --kv int8 and --kv int8k for Gemma 4, with the readers renamed apart from q8_0's #59) for glm5next.

We can run any A/B you want on real sm_70 hardware — we are likely the only Volta box reporting on this repo, and #87 shows the Pascal/Volta-adjacent paths are actively being worked. Happy to re-run the same 4-case bench against a same-day build with a candidate patch, and to post per-run JSON.

What we did not test

Activity

  1. VecSzn commented on Oct 25, 2026

    @VecSzn
    Collaborator

    Thanks for the numbers, neither are planned on my side right now, I don't have a V100 and GLM's KV cache is not laid out like Qwen3.6's, PRs are welcomed though, and it's your offer to A/B on the V100s that would let me take them.

  2. Csavoldi commented on Oct 26, 2026

    @Csavoldi

    Another 2x V100-PCIE-32GB box here (47 GB RAM, Xeon E5-2682 v4, no third card — our Qwen3.8 numbers and Docker recipe are in #95). Reading this issue pushed us to try the poly engine on Volta, so a small data point for the "it has not run on such a card" note in docs/OLDER_GPUS.md:

    strata-poly runs on Volta. Built from main (7b70075) per the docs with CUDA 12.9.1, -DCMAKE_CUDA_ARCHITECTURES=70 -DSTRATA_EXPERIMENTAL_SM60=ON, target strata-poly, and served Qwen3.6-35B-A3B UD-Q3_K_M split across both cards (context 32768, the setup default for this model).

    Baseline strata_bench medians, no fattn/fdec/gdn-mma (i.e. exactly the fallback paths this issue is about):

    test result
    chat decode 157.5 tok/s (135-196)
    chat first token 0.25 s
    4K prompt 2614.7 tok/s
    16K prompt 2778.3 tok/s
    agent decode / cache hit 134.2 tok/s / 68.5 %

    Two things we hit on the way, both being investigated:

    1. poly_attend_test dies with attention scores: cuBLAS status 1 on the V100 — inside attend_batch's cublasGemmStridedBatchedEx (fp16 in / fp32 out, DEFAULT_TENSOR_OP). The engine's own prefill through the same path works fine (a 14k-token prompt went through no problem), so it looks shape-specific rather than a broken Volta path; we're narrowing down which size crosses the line.
    2. Sanity-checked that the hardware path your kernel work would build on is real: mma.sync.aligned.m8n8k4 (in the exact 8-accumulator form qsa_prompt_attn.cu uses, with the fragment mapping documented there) and wmma 16x16x16 both compile under CUDA 12.9, execute correctly, and show HMMA.884 in SASS on driver 580.173.02. The mapping comment in qsa_prompt_attn.cu reproduced all 256 outputs of our probe exactly.

    Next on our side: a (256, 256, 64) row for the Volta fattn config table plus letting make_setup accept Volta (the dormant VOLTA_MMA_AVAILABLE branches in fattn_mma.cuh look reachable for Qwen3.6's 64-column tile), and after that a Volta arm for the GDN path modeled on the same m8n8k4 pattern. PRs to follow if the numbers hold up — happy to coordinate so we don't duplicate your A/B offer.

  3. llollaalloll commented on Oct 28, 2026

    @llollaalloll
    Author

    @Csavoldi — this is the rig behind the original post (2x V100-PCIE-32GB + 2080Ti-22GB, driver 570.211, CUDA 12.8). Your data point changes our plan: poly-on-Volta clearly has headroom when the model is fully resident.

    Our target, stated plainly: GLM-5.3-Flash-REAP50 within reach of our production baseline — Qwen3.8-Flash-Next IQ3_XXS on the Strata engine, 2-card split, experts 100% resident, int8 KV, 262K ctx = 132-134 tok/s decode on these same cards. Current poly numbers for GLM: 34-35 (no-graphs) / 37.8-44.9 (graphs), experts 85.7% resident on 3 cards.

    Two questions before we duplicate effort:

    1. Timeline on the Volta fattn PR ((256,256,64) row + make_setup accepting Volta + GDN arm): rough ETA? We'd rather A/B your patch than write a parallel one.
    2. Tile coverage: your dormant-branch note says the VOLTA_MMA_AVAILABLE path looks reachable "for Qwen3.6's 64-column tile". Does the same m8n8k4 pattern cover glm5next's attention/head shapes, or does GLM need its own table rows? (Our blocker list from the OP: STRATA_POLY_MMA gate at __CUDA_ARCH__<750, tensor_cores() ptxVersion>=75, --kv q8_0 rejected for glm5next.)

    Coordination offer, concrete: we can run your candidate branch against our fixed 4-case bench (short / mid / tooljson / reasoning, temp 0, nonce per request, per-run JSON posted) on real sm_70, same-day build, both 2-card (2x V100 only) and 3-card configs — including a --kv q8_0 A/B if your branch grows one. We are also the only box here that already bisected a poly kernel launch bug on Volta (#73 / 79d51a1e), so we can triage Volta-specific launch failures fast.

    One data request from our side: your 157.5 tok/s was Qwen3.6-35B-A3B (~23GB, fully resident on 2x32GB). Have you tried anything on the 60-80GB class where experts cannot all fit? That residency gap is our dominant cost and we want to know if your setup ever crossed it.

  4. VecSzn commented on Nov 22, 2026

    @VecSzn
    Collaborator

    PR 100's Volta path is currently in v0.2.19-poly.1. I do not have a V100 so I cannot measure on it, but an A/B on your machine against poly.10 would show if it helps or not.

  5. cobra91 commented on Nov 22, 2026

    @cobra91
    Contributor

    Following up on the remaining gap here after #100 (the GDN tensor-core path) landed: the poly expert path's MMVQ kernels still compile out below sm_75 (kernels.cu's __CUDA_ARCH__ < 750 -> 0, tensor_cores()'s ptxVersion >= 75).

    The Strata project's own engine carries a Volta tuning table measured on a V100-SXM2 (native_mmvq.cu's kIlRows_70[]), and #100's quadrant approach (mma.sync.aligned.m8n8k4, no ldmatrix) just proved the same hardware can take the fast paths. We are willing to port that table and arm into poly's expert kernels as one focused PR.

    Before we start, two questions:

    1. @VecSzn — is that scope welcome as its own PR (opt-in behind the same kind of env gate as Volta (sm_70) arm for the GDN tensor-core path #100), or is it already on someone's plate?
    2. @Csavoldi — we have no Volta card on our side. Per the contributing rules we would keep the PR as a draft with the missing checks named: could you run the validation on your 2x V100 rig, the way your row in COMMUNITY_BENCHMARKS.md was measured?
  6. VecSzn commented on Nov 23, 2026

    @VecSzn
    Collaborator

    Yes I would like that, a port of the expert kernels from Volta as its own PR. We can just have it opt-in behind an env gate like PR 100 and nobody else is on it, but we need a V100 A/B from Csavoldi before we put it in by default.

  7. llollaalloll commented on Nov 23, 2026

    @llollaalloll
    Author

    Volta A/B on the rig from this report: v0.1.45-poly.10 (baseline) vs v0.2.19-poly.1 (PR #100 GDN tensor-core path) vs v0.2.20-poly.1 — GLM-5.3-Flash-REAP50 Q3_K_M, same machine, same hour.

    Rig + builds

    • 2x V100-PCIE-32GB (sm_70), driver 580.196.07, CUDA 12.8, source build with -DCMAKE_CUDA_ARCHITECTURES="70;75" -DSTRATA_EXPERIMENTAL_SM60=ON; 0.2.x built as cmake -S engine with target strata-poly (monorepo layout), each tag run with its own terminal/serve
    • 0.1.45-poly.10 = the build-poly10 binary we used for the GLM 5.3 Flash on V100 (sm_70): every generation fails - cudaGraphInstantiate / native MMVQ 'too many resources requested for launch' #73 numbers
    • model: GLM-5.3-Flash-REAP50-Q3_K_M.gguf, 78,776,759,712 B (HF byte-exact), --max-context 131072 --vram-reserve-mib 2048 --layer-split auto on the 2 V100s, expert profile from data/expert-profile-glm-reap50.txt, float KV (q8_0 for glm5next not retested here)
    • the 2080Ti was idle for this arm

    Method
    4 cases (short / mid / tooljson / reasoning) x 3 reps, temperature 0, fresh 16-hex nonce per request, medians. Two numbers per case:
    (a) end-to-end client-side completion_tokens / wall; (b) the engine's own decode rate from its done: N tokens in T s log line.

    (a) end-to-end, tok/s (median of 3)

    case       poly.10  poly.19  poly.20    d19     d20
    short       23.37    17.07    17.03   -27.0%  -27.1%
    mid         30.49    25.32    25.41   -17.0%  -16.7%
    tooljson    29.97    20.25    25.43   -32.4%  -15.1%
    reasoning   27.94    24.51    18.63   -12.3%  -33.3%
    median      28.95    22.38    22.02   -22.7%  -24.0%
    

    (b) engine decode, tok/s (median of 3)

    case       poly.10  poly.19  poly.20    d19     d20
    short       31.70    28.50    28.60   -10.1%   -9.8%
    mid         33.80    31.60    31.60    -6.5%   -6.5%
    tooljson    36.70    31.50    34.00   -14.2%   -7.4%
    reasoning   34.00    35.90    33.20    +5.6%   -2.4%
    median      33.90    31.55    32.40    -6.9%   -4.4%
    

    Expert cache hit was 84-95% in all three arms (this quant is 78.78 GB, so ~14% of experts spill on 2x32 GB either way — the arms are comparable on residency).

    What it suggests

    • PR Volta (sm_70) arm for the GDN tensor-core path #100's GDN path does not move GLM-5.3-Flash on Volta: in-engine decode is 4-7% down on 0.2.x and the end-to-end number is clearly worse (the 0.2.x pairing looks slower per request, not faster).
    • The reasoning case was the one cell slightly up on 0.2.19 (+5.6%); with 3 reps that is within our noise, not a trend.
    • For this model the remaining gap is still the poly expert path's MMVQ kernels below sm_75 — that is the port you offered, @cobra91, and this A/B does not test it. Happy to run the same table on a build with that table armed, and to run the opt-in gate both ways.

    Caveats

    • 3 reps per case, ~30 s of decode per case; our noise floor on this rig measured at 0.4-2%, so read single-digit deltas as directional.
    • Weights were page-warm for all arms (loads 70 s / 30 s / 30 s); no cold-start comparison.
    • Each arm used the serve/ from its own tag (the user-visible pairing), so part of the end-to-end delta may be server-side rather than kernels.
    • CUDA graphs not toggled, no spec-decode knob changes, single stream only; no quality comparison in this run.
  8. cobra91 commented on Nov 23, 2026

    @cobra91
    Contributor

    Quick technical clarification after checking v0.2.20-poly.1 (upstream/main):

    1. Expert MMVQ on sm_70 is already active in strata-poly:
      strata-poly (engine/src/poly/engine.cpp) already dispatches decode MoE experts through native_mmvq_ids / native_mmvq_slots (engine/src/kernels/cuda/native_mmvq.cu), which already includes Volta kIlRows_70[], kIlPf_70[], and the recent STRATA_Q8_V70=1 / STRATA_GR_V70=1 opt-in Volta kernels from the 0.2.20 sync (53f59c064).
      The __CUDA_ARCH__ < 750 (STRATA_POLY_MMA) and tensor_cores() (ptxVersion >= 75) gates in engine/src/poly/kernels.cu only guard attn_flash64_kernel (dim == 64), not the expert MMVQ path — so there is no missing Volta expert MMVQ port to do there.

    2. Where the GLM-5.3-Flash gap on 2x V100 actually comes from:

      • ~14% CPU expert spill: GLM-5.3-Flash-REAP50-Q3_K_M is 78.78 GB on 2x 32 GB V100, plus float KV at --max-context 131072 and --vram-reserve-mib 2048 consume several GiB of VRAM. Even ~14% host spill dominates MoE decode latency compared to 100% VRAM residency.
      • kernels_dsv4.cu (glm5next): idx_mma_kernel and attend_mma_kernel are gated at sm_80+ (__CUDA_ARCH__ >= 800), so Volta falls back to the non-MMA path for indexer/DSA attention.
    3. Immediate settings to try on v0.2.20-poly.1 (sm_70):

      • Export STRATA_Q8_V70=1 and STRATA_GR_V70=1 (Volta sm_70 opt-in paths).
      • Lower --vram-reserve-mib (e.g. 512 on headless Linux) and/or reduce --max-context from 131072 (since KV is float) to free VRAM for more expert slots, or test a quant that fits 100% inside 64 GB VRAM.
  9. VecSzn commented on Nov 23, 2026

    @VecSzn
    Collaborator

    v0.2.20-poly.2 is out with a fix that can matter on your rig. On linux with part of the experts outside the VRAM, the engine was queuing up uploads of guessed experts and the GPU was waiting behind that queue (5d25761). Would you be able to run the same table with v0.2.20-poly.2 and then again with STRATA_POLY_AHEAD=0 and see if the upload queue was the gap? The end to end gap is much bigger than the engine's decode gap, so most of it is probably before decode either in reading the prompt or in the server. The prompt time of each request next to the decode rate would show where it goes. I think cobra91 is right about the expert MMVQ already having the Volta tables, so there is no port to do there.

  10. llollaalloll commented on Nov 24, 2026

    @llollaalloll
    Author

    A/B on the rig from this report: v0.2.20-poly.2 vs v0.1.45-poly.10, same machine, same hour (24/11 07:16–07:26 +07), plus the two variants you and cobra91 asked for (STRATA_POLY_AHEAD=0, STRATA_Q8_V70=1 STRATA_GR_V70=1).

    Rig + builds — 2× V100-PCIE-32GB (sm_70), driver 580.196.07, CUDA 12.8, cmake -S engine -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES="70;75" -DSTRATA_EXPERIMENTAL_SM60=ON, target strata-poly.

    • v0.1.45-poly.10 (3e164216) → build-poly10/strata-poly
    • v0.2.20-poly.2 (5c838331) → build-0220p2/strata-poly sha256 ec1c8efa… (upload-queue fix 5d25761c1 is in the tag)
    • same GGUF (GLM-5.3-Flash-REAP50-Q3_K_M, 78,776,759,712 B), --max-context 131072, --vram-reserve-mib 2048, --layer-split auto, same expert profile, STRATA_POLY_NO_IDS=1

    Method — 4 cases × 3 reps, temperature 0, 16-hex nonce system prompt per request (no KV reuse), 1 warmup request before each arm. End-to-end = completion_tokens / wall. Engine-side numbers are the per-request lines the engine prints itself (prompt N tokens … read in X ms … generated in Y ms).

    End-to-end tok/s (median, incl. prompt + server)

    case poly.10 poly.2 poly.2 AHEAD=0 poly.2 Q8_V70/GR_V70
    short (64) 24.3 17.8 17.7 17.4
    mid (256) 30.2 25.0 25.4 25.4
    tooljson (300) 29.5 17.7 18.9 22.9
    reasoning (2048) 30.1 22.9 19.4 22.8
    mean 28.5 20.9 (−26.9%) 20.4 (−28.6%) 22.1 (−22.3%)

    Engine-side per request (medians over the 12 bench requests)

    arm prompt read ms (~58 tok) read rate tok/s decode tok/s drafts accepted expert cache hit
    poly.10 799 70.3 33.8 79.9% 93.0%
    poly.2 1909 29.6 31.0 90.2% 92.0%
    poly.2 AHEAD=0 1884 30.1 29.7 — 91.5%
    poly.2 Q8_V70/GR_V70 1882 30.0 31.2 — 92.6%

    What it says

    1. STRATA_POLY_AHEAD=0 changes nothing on this rig (read 1884 vs 1909 ms, decode 29.7 vs 31.0) ⇒ the upload queue was not our gap; 5d25761c1 neither helps nor hurts here.
    2. The Volta opt-ins change nothing for GLM (read unchanged, decode +0.6%) — consistent with them covering the dense Q8_0 GEMV / fused-GR paths, not the glm5next sparse read.
    3. The gap is request setup, not decode: poly.2 reads a ~58-token prompt in 1.88–1.91 s where poly.10 takes 0.80 s — same prompt, ~2.4× the time, at 30 tok/s vs 70 tok/s. That is exactly where the end-to-end gap sits (the release's +56% prompt-read win is for 120K-token prompts; at our prompt sizes it is a regression). Decode is also a bit lower (31.0 vs 33.8).
    4. Expert cache hit is 92–93% (≈7–8% of experts come from host, not 14%) — so the spill is real but smaller than estimated.
    5. Draft acceptance is better on poly.2 (90% vs 80%) yet it does not show up in tok/s — pointing again at per-request fixed cost rather than the decode loop.

    Question: is there something in poly.2 that adds fixed per-request setup on a 2-card split (e.g. the "layer split's greedy token from the last card" change 3d28e5cc4, or ahead/staging init) that can be gated off? If there is a knob I'll re-run this exact table with it — the harness, engine logs and per-request timings are reproducible, and poly.10 stays my baseline. Raw jsonl + per-request timing JSONs are on my side if useful.

  11. VecSzn commented on Nov 24, 2026

    @VecSzn
    Collaborator

    thanks for running the whole table, noted.

  12. cobra91 commented on Nov 26, 2026

    @cobra91
    Contributor

    Checked the commit range between v0.1.45-poly.10 (3e164216) and v0.2.20-poly.2 (5c838331) against engine/src/poly/engine.cpp, glm5next.cpp, and kernels_dsv4.cu:

    1. Things that are not the culprit here:

      • 3d28e5cc4 (layer split's greedy token from its last card) only touches greedy token picking after a forward pass, not prompt reading.
      • take_prompt() / lend_prompt() (c48d16f83) and widen_stage() are already gated off when --layer-split is active (const bool lends = vmm_ && !split_ && ...).
      • 0388ebdb8 / fb83adb1a (idx_mma_kernel / attend_mma_kernel in kernels_dsv4.cu) are gated at sm_80+, so sm_70 (V100) still runs idx_score_kernel / attend_rows_kernel.
    2. Knobs worth A/B testing on v0.2.20-poly.2 to isolate the ~1.1 s per-prompt regression (1.91 s vs 0.80 s at ~58 tokens):

      • --prompt-cache 0: 465649c05 / 933071815 changed checkpoint/state saving (save_layer() / save_last() / pinned checkpoint buffers) in read().
      • --stage-ahead 0 (and checking STRATA_POLY_CARD_FAR=0): 94c74dc62 / 5a2b25d67 changed how moe_rows() / read() stages and copies cold experts ahead over PCIe on systems with host spill (92–93% VRAM hits here).
      • --no-draft on 1–2 runs: just to confirm whether the fixed setup cost comes from glm5next prompt reading itself or draft-block state handling on v0.2.20-poly.2.
        @llollaalloll try this
        If --prompt-cache 0 or --stage-ahead 0 brings those ~58-token prompts back down toward ~0.8 s, that will pinpoint the exact commit!
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions