You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Engine] Prompt reading ~17% slower on Turing (sm_75) since Strata's own prompt kernels became default; MMQ build restores it #340
After updating from main at e4ea22a (v0.1.45-poly.9 + 1 commit, engine 0.1.45) to v0.2.20-poly.4-hotfix (engine 0.1.66), prompt reading with Gemma 4 26B-A4B on an RTX 2060 Super is about 17% slower, and generation about 5-7% slower. The config is unchanged apart from the paths moved into terminal/ (which I gather is 0.2 convention).
Setup
GPU: RTX 2060 Super 8 GB (Turing, sm_75), driver 580.196.07, Linux Mint, X11
CPU RAM: 32 GB
Engine built from source by setup.sh; engine-poly/BUILD.json: version 0.1.66, archs [75], CUDA 12.8
Model: gemma-4-26B-A4B-it-qat-UD-Q4_K_XL.gguf with mtp-gemma-4-26B-A4B-it-Q8_0.gguf as --draft-model, vision on CPU
Single user, served through serve/server.py --engine strata
Cause confirmed with an MMQ build
At e4ea22a the CUDA build always compiled strata_poly_mmq (llama.cpp's MMQ kernels for prompt products). Since 09654c0 the default build uses Strata's own prompt kernels, and engine/cmake/strata_poly.cmake says Turing takes their dequantized-matrix + BLAS path.
Rebuilding v0.2.20-poly.4-hotfix with -DSTRATA_POLY_MMQ=ON -DSTRATA_GGML_DIR=engine/third_party/strata-llama (pin 3cf03257f, the same commit the 0.1.45 build used), same config, 73,728 context:
So the prefill loss is the Turing fallback in the own kernels; MMQ is 30% faster there. Generation is 5-7% lower than 0.1.45 with either build, so that part has another cause.
This is the CUDA/Turing counterpart of #289 (same cause on HIP; #330 is HIP-only). sm_75 has int8 tensor cores (mma m8n8k16 s8): could the int8 tile path cover Turing, or could MMQ stay available beyond the two-release window until it does?
Questions
Can Turing get the int8 prompt path (or keep STRATA_POLY_MMQ) so the default build matches MMQ?
Is there a known decode change between engine 0.1.45 and 0.1.66 that would explain the 5-7% generation drop on sm_75?
NOTE: Same pattern with Inkling 2 Mini UD-Q3_K_XL (6,145-token prompt): ~612 t/s with the default build, ~759 t/s with MMQ, generation unchanged (~47 t/s).
NOTE2: I am a beginner hobbyist and Claude Opus helped me test this.
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.
changed the title [-]Prompt reading ~17% slower on Turing (sm_75) since Strata's own prompt kernels became default; MMQ build restores it[/-][+][Engine] Prompt reading ~17% slower on Turing (sm_75) since Strata's own prompt kernels became default; MMQ build restores it[/+]on Nov 25, 2026
Good catch on Turing \sm_75\ with Gemma 4. Could you also share the exact command, prompt length, and whether --kv q8_0\ or any \STRATA_\ env vars were set so we can compare both paths cleanly?
Thanks for looking at this. I use Gemma as my daily driver, so its speed is important for me. Details below (paths shortened).
Engine command. This is the Gemma config as serve/server.py --engine strata --config strata-gemma4-qat-ud-q4_k_xl.json launches it, and it was identical for all three columns. Only the engine-poly/strata-poly binary was swapped.
Every other option was copied from the default build's cache: Release, Ninja, STRATA_ENABLE_CUDA=ON, STRATA_PORTABLE=OFF, nvcc 12.8.
Prompt length and method: a small script against /v1/chat/completions that reads the llama.cpp-style timings. Each configuration got a warm-up request, then 3 runs, with the first temp-0 run discarded.
Prompt test: 5,446 tokens at temp 0, max_tokens 8, with a timestamp prefix so the conversation cache can't reuse it.
Generation: 256 tokens at temp 0, and at temp 1.0 / top-p 0.95 / top-k 64.
Thinking off.
Noise: under 1% on prompt, about ±3 t/s on generation.
I just checked and the default prompt path does fall back there on Gemma 4, and --prompt-int8 is only applicable to Inkling right now, so building with -DSTRATA_POLY_MMQ=ON is the right workaround for now for Gemma 4 prompt speed on Turing.
Turing has INT8 and INT4 tensor cores and can also accelerate FP16 on tensor cores, same as Ampere so it should get the same treatment. It's only BF16 that isn't supported on Turing but Ampere.
I also tried --prompt-int8 on Inkling, measured on poly.4-hotfix. On this card it gained only about 3% over the default, and it doesn't help on top of MMQ. So for now MMQ is the only fast prompt path on Turing, for Gemma 4 and Inkling 2 alike.
Since STRATA_POLY_MMQ was announced as staying for two releases, could it stay available on CUDA, or at least on sm_75, until Strata's own kernels match it on Turing? I'm happy to test any branch that moves Turing onto the int8 tiles.
Activity
github-actions commentedon Nov 25, 2026
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
[-]Prompt reading ~17% slower on Turing (sm_75) since Strata's own prompt kernels became default; MMQ build restores it[/-][+][Engine] Prompt reading ~17% slower on Turing (sm_75) since Strata's own prompt kernels became default; MMQ build restores it[/+]github-actions commentedon Nov 25, 2026
Thanks, this follows the format now.
VecSzn commentedon Nov 25, 2026
Good catch on Turing \sm_75\ with Gemma 4. Could you also share the exact command, prompt length, and whether --kv q8_0\ or any \STRATA_\ env vars were set so we can compare both paths cleanly?
nwbdan commentedon Nov 25, 2026
Thanks for looking at this. I use Gemma as my daily driver, so its speed is important for me. Details below (paths shortened).
Engine command. This is the Gemma config as
serve/server.py --engine strata --config strata-gemma4-qat-ud-q4_k_xl.jsonlaunches it, and it was identical for all three columns. Only theengine-poly/strata-polybinary was swapped.Vision runs through
strata-visionwithmmproj-F16.gguf,"gpu": false, 6 threads,"gpu": 0, and CUDA 12.8 inlib_dirs.KV cache:
--kv int8, not q8_0, in all three columns, including the 0.1.45 baseline.Environment: the only
STRATA_*variable in the engine's environment isSTRATA_API_KEY.STRATA_FATTNand the other variables are not set.Builds (from
CMakeCache.txt):Every other option was copied from the default build's cache: Release, Ninja,
STRATA_ENABLE_CUDA=ON,STRATA_PORTABLE=OFF, nvcc 12.8.Prompt length and method: a small script against
/v1/chat/completionsthat reads the llama.cpp-styletimings. Each configuration got a warm-up request, then 3 runs, with the first temp-0 run discarded.max_tokens8, with a timestamp prefix so the conversation cache can't reuse it.VecSzn commentedon Nov 27, 2026
I just checked and the default prompt path does fall back there on Gemma 4, and --prompt-int8 is only applicable to Inkling right now, so building with -DSTRATA_POLY_MMQ=ON is the right workaround for now for Gemma 4 prompt speed on Turing.
Dampfinchen commentedon Nov 27, 2026
Turing has INT8 and INT4 tensor cores and can also accelerate FP16 on tensor cores, same as Ampere so it should get the same treatment. It's only BF16 that isn't supported on Turing but Ampere.
nwbdan commentedon Nov 27, 2026
Thanks both. I retested on v0.2.20-poly.6, with the engine built from source, on the RTX 2060 Super (sm_75):
Engine | Default build | STRATA_POLY_MMQ=ON
Gemma 4 26B-A4B, 5,446-token prompt 1,035 t/s 1,366 t/s (+32%)
Inkling 2 Mini UD-Q3_K_XL, 6,145-token prompt 632 t/s 781 t/s (+24%)
I also tried --prompt-int8 on Inkling, measured on poly.4-hotfix. On this card it gained only about 3% over the default, and it doesn't help on top of MMQ. So for now MMQ is the only fast prompt path on Turing, for Gemma 4 and Inkling 2 alike.
Since STRATA_POLY_MMQ was announced as staying for two releases, could it stay available on CUDA, or at least on sm_75, until Strata's own kernels match it on Turing? I'm happy to test any branch that moves Turing onto the int8 tiles.