[GH-ISSUE #4987] [Engine] --vision itself slows prefill ~40 % and decode ~30–50 % on a CUDA layer split (Qwen3.8-Flash-Next, UD-Q6_K_XL), whatever card the encoder runs on #2300

Open
opened 2026-11-04 01:58:16 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @Sunmingyang1987 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4987

Problem

On a two-GPU CUDA layer split of Qwen3.8-Flash-Next-UD-Q6_K_XL, adding --vision to the engine args drops long-prompt prefill from ~2,200 tok/s to ~1,300 tok/s and decode from ~90–100 tok/s to ~40–70 tok/s. The slowdown is the same whether the vision encoder process runs on the first GPU, the second GPU, or on the CPU, so it is not about where the encoder's VRAM goes.

Environment

  • Strata 0.2.9, engine 0.1.55, source checkout
  • Ubuntu 24.04.2, kernel 6.14.0-37-generic, driver 610.57.04 (server 610.43.03 firmware for gpu-unlock; see note below)
  • RTX 4090 D 48 GB (CUDA1 in engine terms) + RTX 3090 24 GB (CUDA0), EPYC 7663, 440 GB RAM
  • Model: unsloth-UD-Q6_K_XL (6 shards), layer split auto (3090 = layers 0–2, 4090 D = layers 3–47 + head), expert cache auto, --max-context 128000 --kv int8 --kv-resident 32768 --spec 4, served through serve/server.py
  • All runs on 2026-11-02, same box, same prompts (fixed ~34K-token and ~4.3K-token synthetic prompts, temperature 0, thinking off), numbers from the response timings

Reproduce

Start the model with the config above; run a ~34K-token prompt. Then stop, add a "vision" section (server adds --vision --vram-reserve-mib 700), run again. The only expected difference is --vision.

Actual

engine args 34 K prompt prefill (tok/s) 4 K prefill (tok/s) decode 400 tok (tok/s) encoder
no vision 2168 / 2114 1175 / 1327 76 / 104 —
--vision 1281 / 1238 826–1220 50 / 72 GPU 0
--vision 1331 / 1263 746 / 852 38 / 52 GPU 1 (4090 D)
--vision 1302 / 1316 772–870 52 GPU pinned via cuda_device (3090)
--vision 1273 / 1269 734 53 CPU
(control, see below) 2168 / 2114 1175 / 1327 76 / 104 —

Readings are pairs of identical requests except where two numbers share a row. The gpu-unlock kernel module (BF16 tensor-core unlock) was active for all runs including the no-vision baseline, so it is not the cause; a no-vision A/B before the module was installed measured 2224 / 2186 tok/s on the same prompt, i.e. the same as the unlocked no-vision runs within noise.

To isolate --vram-reserve-mib 700 (which the server adds next to --vision) from --vision itself I also ran the engine with the 700 MiB reserve but without --vision:

  • 34 K prefill 2070 / 2054 tok/s — fast, so the reserve is not the cause either.

Decode differences were not consistent enough to claim: every first request after a fresh load decodes slower, and even the no-vision runs span 50–104 tok/s on identical requests. The prefill effect above is the reproducible one.

Expected

--vision costs encoder VRAM and a first-use warm-up, but prompts without images should prefill at the same speed as a run without --vision.

Evidence

  • Engine log lines for every start above, sanitized, are in the attached file.
  • With --vision the 4090 D keeps only ~204 MiB free after load (LOW warning; the split planned 796 MiB) and the engine logs prefill: layer-major off for this prompt: layers 3..48: no VRAM for a super-chunk (204 MiB free) — but the fast no-vision runs log the same layer-major-off line with the same ~206 MiB free and still do ~2,200 tok/s, so the super-chunk path is not what the fast runs use either.
  • --vram-reserve-mib 100 alone (as a lower-reserve attempt) does not start: layer split, stage 2: verify: the device arena (114 MiB) does not fit.

Reproduction status

Reproduced locally: every engine start without --vision is fast (2114–2224 tok/s at 34 K), every start with it is slow (1238–1331), across five paired restarts on one machine. I have not confirmed in the engine source where the cost comes from (suspects: a reserve the --vision path keeps for image input buffers on the prompt path, or the decoder-side image-token handling); this report is from measurements and logs only.

Workaround

Remove the "vision" section when image input is not needed; speed returns to ~2,200 tok/s prefill.

Originally created by @Sunmingyang1987 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4987 **Problem** On a two-GPU CUDA layer split of Qwen3.8-Flash-Next-UD-Q6_K_XL, adding `--vision` to the engine args drops long-prompt prefill from ~2,200 tok/s to ~1,300 tok/s and decode from ~90–100 tok/s to ~40–70 tok/s. The slowdown is the same whether the vision encoder process runs on the first GPU, the second GPU, or on the CPU, so it is not about where the encoder's VRAM goes. **Environment** - Strata 0.2.9, engine 0.1.55, source checkout - Ubuntu 24.04.2, kernel 6.14.0-37-generic, driver 610.57.04 (server 610.43.03 firmware for gpu-unlock; see note below) - RTX 4090 D 48 GB (CUDA1 in engine terms) + RTX 3090 24 GB (CUDA0), EPYC 7663, 440 GB RAM - Model: unsloth-UD-Q6_K_XL (6 shards), layer split auto (3090 = layers 0–2, 4090 D = layers 3–47 + head), expert cache auto, `--max-context 128000 --kv int8 --kv-resident 32768 --spec 4`, served through serve/server.py - All runs on 2026-11-02, same box, same prompts (fixed ~34K-token and ~4.3K-token synthetic prompts, temperature 0, thinking off), numbers from the response `timings` **Reproduce** Start the model with the config above; run a ~34K-token prompt. Then stop, add a `"vision"` section (server adds `--vision --vram-reserve-mib 700`), run again. The only expected difference is `--vision`. **Actual** | engine args | 34 K prompt prefill (tok/s) | 4 K prefill (tok/s) | decode 400 tok (tok/s) | encoder | | --- | --- | --- | --- | --- | | no vision | 2168 / 2114 | 1175 / 1327 | 76 / 104 | — | | `--vision` | 1281 / 1238 | 826–1220 | 50 / 72 | GPU 0 | | `--vision` | 1331 / 1263 | 746 / 852 | 38 / 52 | GPU 1 (4090 D) | | `--vision` | 1302 / 1316 | 772–870 | 52 | GPU pinned via `cuda_device` (3090) | | `--vision` | 1273 / 1269 | 734 | 53 | CPU | | (control, see below) | 2168 / 2114 | 1175 / 1327 | 76 / 104 | — | Readings are pairs of identical requests except where two numbers share a row. The gpu-unlock kernel module (BF16 tensor-core unlock) was active for **all** runs including the no-vision baseline, so it is not the cause; a no-vision A/B before the module was installed measured 2224 / 2186 tok/s on the same prompt, i.e. the same as the unlocked no-vision runs within noise. To isolate `--vram-reserve-mib 700` (which the server adds next to `--vision`) from `--vision` itself I also ran the engine with the 700 MiB reserve but **without** `--vision`: - 34 K prefill 2070 / 2054 tok/s — fast, so the reserve is not the cause either. Decode differences were not consistent enough to claim: every first request after a fresh load decodes slower, and even the no-vision runs span 50–104 tok/s on identical requests. The prefill effect above is the reproducible one. **Expected** `--vision` costs encoder VRAM and a first-use warm-up, but prompts without images should prefill at the same speed as a run without `--vision`. **Evidence** - Engine log lines for every start above, sanitized, are in the attached file. - With `--vision` the 4090 D keeps only ~204 MiB free after load (LOW warning; the split planned 796 MiB) and the engine logs `prefill: layer-major off for this prompt: layers 3..48: no VRAM for a super-chunk (204 MiB free)` — but the **fast** no-vision runs log the same layer-major-off line with the same ~206 MiB free and still do ~2,200 tok/s, so the super-chunk path is not what the fast runs use either. - `--vram-reserve-mib 100` alone (as a lower-reserve attempt) does not start: `layer split, stage 2: verify: the device arena (114 MiB) does not fit`. **Reproduction status** Reproduced locally: every engine start without `--vision` is fast (2114–2224 tok/s at 34 K), every start with it is slow (1238–1331), across five paired restarts on one machine. I have not confirmed in the engine source where the cost comes from (suspects: a reserve the `--vision` path keeps for image input buffers on the prompt path, or the decoder-side image-token handling); this report is from measurements and logs only. **Workaround** Remove the `"vision"` section when image input is not needed; speed returns to ~2,200 tok/s prefill.
Author
Owner

@dandandelion commented on GitHub (Nov 2, 2026):

Have you tried pushing the --vision to the CPU? Set "gpu": false in the vision section in config, and retest? Maybe the vision on GPU is pushing expert cache out of the VRAM so maybe moving it to the CPU will get you back that speed without removing vision altogether

<!-- gh-comment-id:6579747642 --> @dandandelion commented on GitHub (Nov 2, 2026): Have you tried pushing the --vision to the CPU? Set `"gpu": false` in the vision section in config, and retest? Maybe the vision on GPU is pushing expert cache out of the VRAM so maybe moving it to the CPU will get you back that speed without removing vision altogether
Author
Owner

@Adamyno commented on GitHub (Nov 2, 2026):

Not on 0.1.54 + IQ3_S: --vision costs 0.3-0.5% on prefill and ~1-5% on decode here — worth checking whether 0.1.55 introduced it

I tried to reproduce this on a third rig and could not: with our pack the flag is nearly free, which points at the engine version (you are on 0.1.55, this box is on 0.1.54) or at the pack/placement rather than at --vision as such.

Hardware: 2 of 3× RTX 2080 Ti 22 GB (sm_75) — CUDA0 0-14, CUDA1 15-47, layer split 24; i9-7980XE, 125 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, driver 580.178.04.

Build/config: engine 0.1.54 (a0116b27), source, sm_75. Qwen3.8-Flash-Next GSQ-RCO IQ3_S, --max-context 524288 --rope-scaling linear --rope-scale 2.0 --kv int8 --kv-resident 65536 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --mtp-max-t 3 --batch 2 --conversation-cache-mib 16384 --prompt-cache 4 --trim-stage-weights, STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1, served through serve/server.py. Two arms, the only difference is --vision (and the vision block in the config); fresh server per arm, alternating order, 2 rounds, a unique nonce on every prompt, temperature 0.

request --vision without paired Δ (round 0, round 1) median
prefill 4K 663 tok/s 694 +3.3%, +6.0% +4.7%
prefill 16K 1 148 1 154 −0.3%, +1.3% +0.5%
prefill 34K 1 427 1 431 −0.1%, +0.7% +0.3%
decode, 3 chats 63.4 64.0 +2.4%, +6.4% / +1.0%, +10.0% / +3.1%, −0.6% +1…+5%

So on 0.1.54 the long-prompt path is flat and the decode difference is at our run-to-run spread. Your 2 200 → 1 300 tok/s and 90-100 → 40-70 tok/s is a completely different shape — a 40% and 35-50% step, not a few percent.

What differs, in the order I would eliminate it:

  1. Engine version. 0.1.54 → 0.1.55 is the most obvious candidate: a regression that only appears with the encoder loaded would look exactly like this. If you have the earlier package, the same two arms on 0.1.54 would confirm or clear it in one run.
  2. --kv-resident pages. Ours is 65 536 (1 GiB of pinned RAM for the K/V) against your 32 768; if the encoder's process changes the pinned-RAM budget the KV streaming path could degrade, which would hit decode harder than prefill — the opposite of your 40% prefill / 35-50% decode, so probably not this.
  3. Where the encoder's VRAM comes from on a two-card asymmetric split. You tested first GPU / second GPU / CPU. On a 3090 + 4090 D split the layer split is already lopsided (0-2 vs 3-47); the 22 GB pair here splits evenly, so our run may simply not create the condition where the encoder's allocation pushes the dense weights off a card.
  4. The pack. UD-Q6_K_XL (6 shards) against our IQ3_S (2 shards): the number of shards changes how the prompt path walks the file.

If it helps I can run the same pair on 0.2.9/0.1.55 here (source build for sm_75) so you have the version axis on one rig rather than two — that is ~30 minutes on this box and would tell you whether to bisect the engine or the pack.

Reproduction status: measured locally; the finding is a negative result (no slowdown reproduced on 0.1.54).

<!-- gh-comment-id:6586998432 --> @Adamyno commented on GitHub (Nov 2, 2026): ## Not on 0.1.54 + IQ3_S: `--vision` costs 0.3-0.5% on prefill and ~1-5% on decode here — worth checking whether 0.1.55 introduced it I tried to reproduce this on a third rig and **could not**: with our pack the flag is nearly free, which points at the engine version (you are on 0.1.55, this box is on 0.1.54) or at the pack/placement rather than at `--vision` as such. **Hardware:** 2 of 3× RTX 2080 Ti 22 GB (sm_75) — CUDA0 0-14, CUDA1 15-47, layer split 24; i9-7980XE, 125 GiB DDR4-3600, Linux 7.0.0-38, CUDA 13.0, driver 580.178.04. **Build/config:** engine **0.1.54** (`a0116b27`), source, sm_75. Qwen3.8-Flash-Next GSQ-RCO **IQ3_S**, `--max-context 524288 --rope-scaling linear --rope-scale 2.0 --kv int8 --kv-resident 65536 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --mtp-max-t 3 --batch 2 --conversation-cache-mib 16384 --prompt-cache 4 --trim-stage-weights`, `STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1`, served through `serve/server.py`. Two arms, the **only** difference is `--vision` (and the `vision` block in the config); fresh server per arm, alternating order, 2 rounds, a unique nonce on every prompt, temperature 0. | request | `--vision` | without | paired Δ (round 0, round 1) | median | |---|---:|---:|---|---:| | prefill 4K | 663 tok/s | 694 | +3.3%, +6.0% | **+4.7%** | | prefill 16K | 1 148 | 1 154 | −0.3%, +1.3% | **+0.5%** | | prefill 34K | 1 427 | 1 431 | −0.1%, +0.7% | **+0.3%** | | decode, 3 chats | 63.4 | 64.0 | +2.4%, +6.4% / +1.0%, +10.0% / +3.1%, −0.6% | +1…+5% | So on 0.1.54 the long-prompt path is flat and the decode difference is at our run-to-run spread. Your 2 200 → 1 300 tok/s and 90-100 → 40-70 tok/s is a completely different shape — a 40% and 35-50% step, not a few percent. **What differs, in the order I would eliminate it:** 1. **Engine version.** 0.1.54 → 0.1.55 is the most obvious candidate: a regression that only appears with the encoder loaded would look exactly like this. If you have the earlier package, the same two arms on 0.1.54 would confirm or clear it in one run. 2. **`--kv-resident` pages.** Ours is 65 536 (1 GiB of pinned RAM for the K/V) against your 32 768; if the encoder's process changes the pinned-RAM budget the KV streaming path could degrade, which would hit decode harder than prefill — the opposite of your 40% prefill / 35-50% decode, so probably not this. 3. **Where the encoder's VRAM comes from on a two-card asymmetric split.** You tested first GPU / second GPU / CPU. On a 3090 + 4090 D split the layer split is already lopsided (0-2 vs 3-47); the 22 GB pair here splits evenly, so our run may simply not create the condition where the encoder's allocation pushes the dense weights off a card. 4. **The pack.** UD-Q6_K_XL (6 shards) against our IQ3_S (2 shards): the number of shards changes how the prompt path walks the file. If it helps I can run the same pair on 0.2.9/0.1.55 here (source build for sm_75) so you have the version axis on one rig rather than two — that is ~30 minutes on this box and would tell you whether to bisect the engine or the pack. Reproduction status: measured locally; the finding is a **negative** result (no slowdown reproduced on 0.1.54).
Author
Owner

@Adamyno commented on GitHub (Nov 2, 2026):

Also not on 0.2.9 / engine 0.1.55: prefill +0.4…+0.8%, decode +0.2…+3.5% without --vision — so the version axis is cleared

Follow-up to my note above. I built v0.2.9 (c62d5e3a, engine 0.1.55) from source for sm_75 and ran the same two arms on the same box, so the engine version is no longer a confound.

Same rig: 2 of 3× RTX 2080 Ti 22 GB (sm_75), layer split auto → 24 (CUDA0 0-23, CUDA1 24-47), Ubuntu 24.04-class, driver 610-series not used here (615-class is not on this box), Qwen3.8-Flash-Next GSQ-RCO IQ3_S, --max-context 524288 --kv int8 --kv-resident 65536 --spec 3 --spec-mtp ..., STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1. Two arms, only --vision differs, fresh engine per arm, alternating order, 2 rounds, unique nonce per prompt, temp 0.

0.1.55 --vision without paired Δ (r0, r1) median
prefill 4K 678 tok/s 702 +3.3%, +3.9% +3.6%
prefill 16K 1 161 1 166 +0.3%, +0.5% +0.4%
prefill 34K 1 432 1 444 +1.0%, +0.7% +0.8%
decode ×3 64.1 66.0 −0.6%, +1.7% / −1.2%, +1.5% / +6.0%, +1.1% +0.2…+3.5%

Together with the 0.1.54 run in my previous comment, both engine versions show the flag as nearly free on this pack (flat on the prompt path, a few percent on decode inside our spread). Your 2 200 → 1 300 tok/s and 90-100 → 40-70 tok/s is not reproducible here on either version.

What that leaves. With the engine cleared, the remaining candidates are all about your shape, not the flag:

  1. The pack. UD-Q6_K_XL, 6 shards, against IQ3_S with 2. On a 6-shard set the prompt path walks more files, and if the encoder's presence changes which shards stay mapped, the prefill penalty could come from there. A run of the same two arms on a 2-shard pack on your box would separate this from everything else.
  2. The asymmetric split. Your auto split is 3090 = layers 0-2, 4090 D = 3-47. A 3-layer stage that must be re-entered per prompt chunk is a very different pipeline from an even 24/24, and a 40% prefill penalty is the shape I would expect if the encoder's process disturbs the stage that is already the straggler.
  3. --kv-resident 32768 against our 65536. Decode-side, worth a single arm on your box.

I cannot test (1) and (2) from here — they need your pack and your cards. But the version question is now answered: it is not 0.1.55 that introduced it.

Reproduction status: measured locally (two engine versions, same box); negative on both.

<!-- gh-comment-id:6587927275 --> @Adamyno commented on GitHub (Nov 2, 2026): ## Also not on 0.2.9 / engine 0.1.55: prefill +0.4…+0.8%, decode +0.2…+3.5% without `--vision` — so the version axis is cleared Follow-up to my note above. I built **v0.2.9 (`c62d5e3a`, engine 0.1.55)** from source for sm_75 and ran the same two arms on the same box, so the engine version is no longer a confound. **Same rig:** 2 of 3× RTX 2080 Ti 22 GB (sm_75), layer split auto → 24 (CUDA0 0-23, CUDA1 24-47), Ubuntu 24.04-class, driver 610-series not used here (615-class is not on this box), Qwen3.8-Flash-Next GSQ-RCO **IQ3_S**, `--max-context 524288 --kv int8 --kv-resident 65536 --spec 3 --spec-mtp ...`, `STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1`. Two arms, only `--vision` differs, fresh engine per arm, alternating order, 2 rounds, unique nonce per prompt, temp 0. | 0.1.55 | `--vision` | without | paired Δ (r0, r1) | median | |---|---:|---:|---|---:| | prefill 4K | 678 tok/s | 702 | +3.3%, +3.9% | **+3.6%** | | prefill 16K | 1 161 | 1 166 | +0.3%, +0.5% | **+0.4%** | | prefill 34K | 1 432 | 1 444 | +1.0%, +0.7% | **+0.8%** | | decode ×3 | 64.1 | 66.0 | −0.6%, +1.7% / −1.2%, +1.5% / +6.0%, +1.1% | +0.2…+3.5% | Together with the 0.1.54 run in my previous comment, **both engine versions show the flag as nearly free on this pack** (flat on the prompt path, a few percent on decode inside our spread). Your 2 200 → 1 300 tok/s and 90-100 → 40-70 tok/s is not reproducible here on either version. **What that leaves.** With the engine cleared, the remaining candidates are all about *your* shape, not the flag: 1. **The pack.** UD-Q6_K_XL, 6 shards, against IQ3_S with 2. On a 6-shard set the prompt path walks more files, and if the encoder's presence changes which shards stay mapped, the prefill penalty could come from there. A run of the same two arms on a 2-shard pack on your box would separate this from everything else. 2. **The asymmetric split.** Your auto split is 3090 = layers 0-2, 4090 D = 3-47. A 3-layer stage that must be re-entered per prompt chunk is a very different pipeline from an even 24/24, and a 40% prefill penalty is the shape I would expect if the encoder's process disturbs the stage that is already the straggler. 3. **`--kv-resident 32768` against our 65536.** Decode-side, worth a single arm on your box. I cannot test (1) and (2) from here — they need your pack and your cards. But the version question is now answered: it is not 0.1.55 that introduced it. Reproduction status: measured locally (two engine versions, same box); **negative** on both.
Author
Owner

@Sunmingyang1987 commented on GitHub (Nov 3, 2026):

Also not on 0.2.9 / engine 0.1.55: prefill +0.4…+0.8%, decode +0.2…+3.5% without --vision — so the version axis is cleared

Follow-up to my note above. I built v0.2.9 (c62d5e3a, engine 0.1.55) from source for sm_75 and ran the same two arms on the same box, so the engine version is no longer a confound.

Same rig: 2 of 3× RTX 2080 Ti 22 GB (sm_75), layer split auto → 24 (CUDA0 0-23, CUDA1 24-47), Ubuntu 24.04-class, driver 610-series not used here (615-class is not on this box), Qwen3.8-Flash-Next GSQ-RCO IQ3_S, --max-context 524288 --kv int8 --kv-resident 65536 --spec 3 --spec-mtp ..., STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1. Two arms, only --vision differs, fresh engine per arm, alternating order, 2 rounds, unique nonce per prompt, temp 0.

0.1.55 --vision without paired Δ (r0, r1) median
prefill 4K 678 tok/s 702 +3.3%, +3.9% +3.6%
prefill 16K 1 161 1 166 +0.3%, +0.5% +0.4%
prefill 34K 1 432 1 444 +1.0%, +0.7% +0.8%
decode ×3 64.1 66.0 −0.6%, +1.7% / −1.2%, +1.5% / +6.0%, +1.1% +0.2…+3.5%
Together with the 0.1.54 run in my previous comment, both engine versions show the flag as nearly free on this pack (flat on the prompt path, a few percent on decode inside our spread). Your 2 200 → 1 300 tok/s and 90-100 → 40-70 tok/s is not reproducible here on either version.

What that leaves. With the engine cleared, the remaining candidates are all about your shape, not the flag:

  1. The pack. UD-Q6_K_XL, 6 shards, against IQ3_S with 2. On a 6-shard set the prompt path walks more files, and if the encoder's presence changes which shards stay mapped, the prefill penalty could come from there. A run of the same two arms on a 2-shard pack on your box would separate this from everything else.
  2. The asymmetric split. Your auto split is 3090 = layers 0-2, 4090 D = 3-47. A 3-layer stage that must be re-entered per prompt chunk is a very different pipeline from an even 24/24, and a 40% prefill penalty is the shape I would expect if the encoder's process disturbs the stage that is already the straggler.
  3. --kv-resident 32768 against our 65536. Decode-side, worth a single arm on your box.

I cannot test (1) and (2) from here — they need your pack and your cards. But the version question is now answered: it is not 0.1.55 that introduced it.

Reproduction status: measured locally (two engine versions, same box); negative on both.

  1. Have you tried pushing the --vision to the CPU? Set "gpu": false in the vision section in config, and retest? Maybe the vision on GPU is pushing expert cache out of the VRAM so maybe moving it to the CPU will get you back that speed without removing vision altogether

Reply draft for the --vision issue (short version)

Thanks both — I re-tested everything today in clean conditions (no other host I/O), same 24K-token prompt, fresh
server per arm, UD-Q6_K_XL on the 3090 + 4090 D:

arm prefill tok/s decode tok/s
no --vision 2231 / 2181 62–88
--vision, GPU encoder + --vram-reserve-mib 700 2418 / 2220 63–94
--vision, CPU encoder ("gpu": false), 5 runs 1386–1580 46–70

@dandandelion — the CPU encoder is the one configuration that is reliably slow here: −35…−40% prefill, −25%
decode, and the reserve does not recover it. Recommendation goes the other way: keep "gpu": true and the
reserve. (Caveat: dual-socket EPYC, free RAM mostly on the far socket — the worst case for a CPU encoder.)

@Adamyno — I ran your pack (Swift GSQ-RCO IQ3_S, both my cards): no vision 3266/3034, vision 2848/2674 — a real
−12%, but the log shows the mechanism: the encoder's ~1.3 GB pushes the layer-major residual rows out of VRAM
(R in VRAM → R in pinned RAM). Your 22 GB pair with the 24/24 split does not hit that eviction, which fits
your flat numbers.

Retraction: yesterday I reported a ~40% prefill penalty for the flag itself (2168→1238–1331 at 34K). Today the
GPU-encoder arm is at parity, and a re-run with background disk I/O was itself depressed — yesterday's numbers
were almost certainly an environment artifact (this box is dual-socket; its free pages sit on the GPU-less
socket, and pinning the server with numactl --membind=0-3 removes the low tail: pinned production now measures
2438/2439). I withdraw the claim; what survives: flag cost not detectable today, CPU encoder −35…−40%, tight-split
eviction −12%. Reproduction status: measured locally, 2026-11-03, server's own request timings, fresh engine
per arm.

<!-- gh-comment-id:6593962493 --> @Sunmingyang1987 commented on GitHub (Nov 3, 2026): > ## Also not on 0.2.9 / engine 0.1.55: prefill +0.4…+0.8%, decode +0.2…+3.5% without `--vision` — so the version axis is cleared > Follow-up to my note above. I built **v0.2.9 (`c62d5e3a`, engine 0.1.55)** from source for sm_75 and ran the same two arms on the same box, so the engine version is no longer a confound. > > **Same rig:** 2 of 3× RTX 2080 Ti 22 GB (sm_75), layer split auto → 24 (CUDA0 0-23, CUDA1 24-47), Ubuntu 24.04-class, driver 610-series not used here (615-class is not on this box), Qwen3.8-Flash-Next GSQ-RCO **IQ3_S**, `--max-context 524288 --kv int8 --kv-resident 65536 --spec 3 --spec-mtp ...`, `STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1`. Two arms, only `--vision` differs, fresh engine per arm, alternating order, 2 rounds, unique nonce per prompt, temp 0. > > 0.1.55 `--vision` without paired Δ (r0, r1) median > prefill 4K 678 tok/s 702 +3.3%, +3.9% **+3.6%** > prefill 16K 1 161 1 166 +0.3%, +0.5% **+0.4%** > prefill 34K 1 432 1 444 +1.0%, +0.7% **+0.8%** > decode ×3 64.1 66.0 −0.6%, +1.7% / −1.2%, +1.5% / +6.0%, +1.1% +0.2…+3.5% > Together with the 0.1.54 run in my previous comment, **both engine versions show the flag as nearly free on this pack** (flat on the prompt path, a few percent on decode inside our spread). Your 2 200 → 1 300 tok/s and 90-100 → 40-70 tok/s is not reproducible here on either version. > > **What that leaves.** With the engine cleared, the remaining candidates are all about _your_ shape, not the flag: > > 1. **The pack.** UD-Q6_K_XL, 6 shards, against IQ3_S with 2. On a 6-shard set the prompt path walks more files, and if the encoder's presence changes which shards stay mapped, the prefill penalty could come from there. A run of the same two arms on a 2-shard pack on your box would separate this from everything else. > 2. **The asymmetric split.** Your auto split is 3090 = layers 0-2, 4090 D = 3-47. A 3-layer stage that must be re-entered per prompt chunk is a very different pipeline from an even 24/24, and a 40% prefill penalty is the shape I would expect if the encoder's process disturbs the stage that is already the straggler. > 3. **`--kv-resident 32768` against our 65536.** Decode-side, worth a single arm on your box. > > I cannot test (1) and (2) from here — they need your pack and your cards. But the version question is now answered: it is not 0.1.55 that introduced it. > > Reproduction status: measured locally (two engine versions, same box); **negative** on both. > 1. Have you tried pushing the --vision to the CPU? Set `"gpu": false` in the vision section in config, and retest? Maybe the vision on GPU is pushing expert cache out of the VRAM so maybe moving it to the CPU will get you back that speed without removing vision altogether # Reply draft for the `--vision` issue (short version) Thanks both — I re-tested everything today in clean conditions (no other host I/O), same 24K-token prompt, fresh server per arm, UD-Q6_K_XL on the 3090 + 4090 D: | arm | prefill tok/s | decode tok/s | |---|---|---| | no `--vision` | 2231 / 2181 | 62–88 | | `--vision`, GPU encoder + `--vram-reserve-mib 700` | 2418 / 2220 | 63–94 | | `--vision`, CPU encoder (`"gpu": false`), 5 runs | 1386–1580 | 46–70 | @dandandelion — the CPU encoder is the one configuration that is reliably slow here: −35…−40% prefill, −25% decode, and the reserve does not recover it. Recommendation goes the other way: keep `"gpu": true` and the reserve. (Caveat: dual-socket EPYC, free RAM mostly on the far socket — the worst case for a CPU encoder.) @Adamyno — I ran your pack (Swift GSQ-RCO IQ3_S, both my cards): no vision 3266/3034, vision 2848/2674 — a real −12%, but the log shows the mechanism: the encoder's ~1.3 GB pushes the layer-major residual rows out of VRAM (`R in VRAM` → `R in pinned RAM`). Your 22 GB pair with the 24/24 split does not hit that eviction, which fits your flat numbers. Retraction: yesterday I reported a ~40% prefill penalty for the flag itself (2168→1238–1331 at 34K). Today the GPU-encoder arm is at parity, and a re-run with background disk I/O was itself depressed — yesterday's numbers were almost certainly an environment artifact (this box is dual-socket; its free pages sit on the GPU-less socket, and pinning the server with `numactl --membind=0-3` removes the low tail: pinned production now measures 2438/2439). I withdraw the claim; what survives: flag cost not detectable today, CPU encoder −35…−40%, tight-split eviction −12%. Reproduction status: measured locally, 2026-11-03, server's own request timings, fresh engine per arm.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2300
No description provided.