Repository navigation
Description
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)
STRATA_POLY_MMAis compiled out below sm_75 (src/poly/kernels.cu~1646:__CUDA_ARCH__ < 750 -> 0), andtensor_cores()gates onptxVersion >= 75(~2150). Volta has tensor cores (m16n8k8 f16) but noldmatrix; the poly flash-attention and MMA paths therefore fall back on our cards. Upstream Strata's ownnative_mmvq.cualready 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.--kv q8_0is 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%).- The repo-seeded
--expert-profilecounts come from 5090 runs; we have not yet recalibrated on this rig (config work on our side, listed for honesty).
What we ask
- 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-tunednative_mmvqVolta table. --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
- No knob sweep yet (
--expert-swaps,--window, manual--layer-split) — config numbers above are the default/auto settings. - No HIP/SYCL builds on this rig.
- Vision: not tested beyond confirming mtmd cannot read GLM images (per GLM 5.3 Flash on V100 (sm_70): every generation fails - cudaGraphInstantiate / native MMVQ 'too many resources requested for launch' #73).
Activity
VecSzn commentedon Oct 25, 2026
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.
Csavoldi commentedon Oct 26, 2026
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, targetstrata-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_benchmedians, no fattn/fdec/gdn-mma (i.e. exactly the fallback paths this issue is about):Two things we hit on the way, both being investigated:
poly_attend_testdies withattention scores: cuBLAS status 1on the V100 — insideattend_batch'scublasGemmStridedBatchedEx(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.mma.sync.aligned.m8n8k4(in the exact 8-accumulator form qsa_prompt_attn.cu uses, with the fragment mapping documented there) andwmma 16x16x16both 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 lettingmake_setupaccept Volta (the dormantVOLTA_MMA_AVAILABLEbranches 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.llollaalloll commentedon Oct 28, 2026
@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:
(256,256,64)row +make_setupaccepting Volta + GDN arm): rough ETA? We'd rather A/B your patch than write a parallel one.VOLTA_MMA_AVAILABLEpath 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_MMAgate at__CUDA_ARCH__<750,tensor_cores()ptxVersion>=75,--kv q8_0rejected 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_0A/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.
VecSzn commentedon Nov 22, 2026
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.
cobra91 commentedon Nov 22, 2026
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()'sptxVersion >= 75).The Strata project's own engine carries a Volta tuning table measured on a V100-SXM2 (
native_mmvq.cu'skIlRows_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:
VecSzn commentedon Nov 23, 2026
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.
llollaalloll commentedon Nov 23, 2026
Volta A/B on the rig from this report:
v0.1.45-poly.10(baseline) vsv0.2.19-poly.1(PR #100 GDN tensor-core path) vsv0.2.20-poly.1— GLM-5.3-Flash-REAP50 Q3_K_M, same machine, same hour.Rig + builds
-DCMAKE_CUDA_ARCHITECTURES="70;75" -DSTRATA_EXPERIMENTAL_SM60=ON; 0.2.x built ascmake -S enginewith targetstrata-poly(monorepo layout), each tag run with its ownterminal/servebuild-poly10binary 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--max-context 131072 --vram-reserve-mib 2048 --layer-split autoon the 2 V100s, expert profile fromdata/expert-profile-glm-reap50.txt, float KV (q8_0 for glm5next not retested here)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 itsdone: N tokens in T slog line.(a) end-to-end, tok/s (median of 3)
(b) engine decode, tok/s (median of 3)
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
Caveats
cobra91 commentedon Nov 23, 2026
Quick technical clarification after checking
v0.2.20-poly.1(upstream/main):Expert MMVQ on
sm_70is already active instrata-poly:strata-poly(engine/src/poly/engine.cpp) already dispatches decode MoE experts throughnative_mmvq_ids/native_mmvq_slots(engine/src/kernels/cuda/native_mmvq.cu), which already includes VoltakIlRows_70[],kIlPf_70[], and the recentSTRATA_Q8_V70=1/STRATA_GR_V70=1opt-in Volta kernels from the0.2.20sync (53f59c064).The
__CUDA_ARCH__ < 750(STRATA_POLY_MMA) andtensor_cores()(ptxVersion >= 75) gates inengine/src/poly/kernels.cuonly guardattn_flash64_kernel(dim == 64), not the expert MMVQ path — so there is no missing Volta expert MMVQ port to do there.Where the
GLM-5.3-Flashgap on2x V100actually comes from:GLM-5.3-Flash-REAP50-Q3_K_Mis 78.78 GB on 2x 32 GB V100, plusfloatKV at--max-context 131072and--vram-reserve-mib 2048consume several GiB of VRAM. Even ~14% host spill dominates MoE decode latency compared to 100% VRAM residency.kernels_dsv4.cu(glm5next):idx_mma_kernelandattend_mma_kernelare gated atsm_80+(__CUDA_ARCH__ >= 800), so Volta falls back to the non-MMA path for indexer/DSA attention.Immediate settings to try on
v0.2.20-poly.1(sm_70):STRATA_Q8_V70=1andSTRATA_GR_V70=1(Voltasm_70opt-in paths).--vram-reserve-mib(e.g.512on headless Linux) and/or reduce--max-contextfrom131072(since KV isfloat) to free VRAM for more expert slots, or test a quant that fits 100% inside 64 GB VRAM.VecSzn commentedon Nov 23, 2026
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.
llollaalloll commentedon Nov 24, 2026
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, targetstrata-poly.v0.1.45-poly.10(3e164216) →build-poly10/strata-polyv0.2.20-poly.2(5c838331) →build-0220p2/strata-polysha256ec1c8efa…(upload-queue fix5d25761c1is in the tag)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=1Method — 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)
AHEAD=0Q8_V70/GR_V70Engine-side per request (medians over the 12 bench requests)
AHEAD=0Q8_V70/GR_V70What it says
STRATA_POLY_AHEAD=0changes nothing on this rig (read 1884 vs 1909 ms, decode 29.7 vs 31.0) ⇒ the upload queue was not our gap;5d25761c1neither helps nor hurts here.glm5nextsparse read.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.VecSzn commentedon Nov 24, 2026
thanks for running the whole table, noted.
cobra91 commentedon Nov 26, 2026
Checked the commit range between
v0.1.45-poly.10(3e164216) andv0.2.20-poly.2(5c838331) againstengine/src/poly/engine.cpp,glm5next.cpp, andkernels_dsv4.cu: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) andwiden_stage()are already gated off when--layer-splitis active (const bool lends = vmm_ && !split_ && ...).0388ebdb8/fb83adb1a(idx_mma_kernel/attend_mma_kernelinkernels_dsv4.cu) are gated atsm_80+, sosm_70(V100) still runsidx_score_kernel/attend_rows_kernel.Knobs worth A/B testing on
v0.2.20-poly.2to isolate the ~1.1 s per-prompt regression (1.91 svs0.80 sat ~58 tokens):--prompt-cache 0:465649c05/933071815changed checkpoint/state saving (save_layer()/save_last()/ pinned checkpoint buffers) inread().--stage-ahead 0(and checkingSTRATA_POLY_CARD_FAR=0):94c74dc62/5a2b25d67changed howmoe_rows()/read()stages and copies cold experts ahead over PCIe on systems with host spill (92–93%VRAM hits here).--no-drafton 1–2 runs: just to confirm whether the fixed setup cost comes fromglm5nextprompt reading itself or draft-block state handling onv0.2.20-poly.2.@llollaalloll try this
If
--prompt-cache 0or--stage-ahead 0brings those ~58-token prompts back down toward~0.8 s, that will pinpoint the exact commit!