[GH-ISSUE #3690] [Engine] strata-vision 0.2.2: image prompts expand to ~93,700 tokens (7x slower than 0.1.45, identical answer) #1529

Closed
opened 2026-11-04 01:52:00 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @CaptRauti on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3690

Problem

On the same server configuration and the same test image, the 0.2.2 (mtmd-based) strata-vision encodes an image into a far larger engine prompt than the 0.1.45 vision binary did, so an image request takes 7x longer with no visible correctness benefit.

Reproduction

  • Host: Windows 11, 2x NVIDIA RTX 3060 12 GB, Xeon E5-2697 v2 (no AVX2; engine built from source with STRATA_ISA_FLOOR=avx), CUDA 13.3.
  • Model: Swift 1.5 Qwen3.8-Flash-Next abliterated IQ2_XS, mmproj BF16, --max-context 128000, layer split across 2 GPUs (pipeline-windows 2), parallel 1.
  • Test: one 64x64 PNG (red field, white 24x24 square in the middle) sent as a data-URI image_url content part, max_tokens 120, temperature 0.
  • Method: swap engine/strata-vision.exe between the 0.1.45 and the 0.2.2 binary, restart, send the same request, compare the engine log's prompt N tokens = ... line and the client wall time.

Result

vision 0.1.45 vision 0.2.2
engine prompt (log prompt N tokens = ...) 78 (text only) 93,730
wall time 31.6 s 230.3 s
answer "white square on a red background" (correct) identical correct

The 0.2.2 vision inflates the engine prompt by roughly 1200x for this small image and the request is 7x slower; the answers are identical, so the extra tokens buy nothing here.

Expected

0.2.2 vision should not turn one small image into ~93k prompt tokens; image-request latency should be comparable to 0.1.45.

Validation

Measured on the box above; each vision binary exercised with the same request twice, consistent within each. Not run: other images/resolutions (the inflation may scale with size), a bit-level embedding comparison, CPU-only vision.

Limits

Single hardware sample (see CONTRIBUTING/COMMUNITY_BENCHMARKS); the two vision binaries are from the 0.1.45 and 0.2.2 sources respectively.

Originally created by @CaptRauti on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3690 ## Problem On the same server configuration and the same test image, the 0.2.2 (mtmd-based) `strata-vision` encodes an image into a far larger engine prompt than the 0.1.45 vision binary did, so an image request takes **7x longer** with no visible correctness benefit. ## Reproduction - Host: Windows 11, 2x NVIDIA RTX 3060 12 GB, Xeon E5-2697 v2 (no AVX2; engine built from source with `STRATA_ISA_FLOOR=avx`), CUDA 13.3. - Model: Swift 1.5 Qwen3.8-Flash-Next abliterated **IQ2_XS**, `mmproj` BF16, `--max-context 128000`, layer split across 2 GPUs (pipeline-windows 2), parallel 1. - Test: one 64x64 PNG (red field, white 24x24 square in the middle) sent as a data-URI `image_url` content part, `max_tokens` 120, temperature 0. - Method: swap `engine/strata-vision.exe` between the 0.1.45 and the 0.2.2 binary, restart, send the same request, compare the engine log's `prompt N tokens = ...` line and the client wall time. ## Result | | vision 0.1.45 | vision 0.2.2 | | --- | --- | --- | | engine prompt (log `prompt N tokens = ...`) | 78 (text only) | **93,730** | | wall time | **31.6 s** | 230.3 s | | answer | "white square on a red background" (correct) | identical correct | The 0.2.2 vision inflates the engine prompt by roughly **1200x** for this small image and the request is **7x slower**; the answers are identical, so the extra tokens buy nothing here. ## Expected 0.2.2 vision should not turn one small image into ~93k prompt tokens; image-request latency should be comparable to 0.1.45. ## Validation Measured on the box above; each vision binary exercised with the same request twice, consistent within each. Not run: other images/resolutions (the inflation may scale with size), a bit-level embedding comparison, CPU-only vision. ## Limits Single hardware sample (see CONTRIBUTING/COMMUNITY_BENCHMARKS); the two vision binaries are from the 0.1.45 and 0.2.2 sources respectively.
Author
Owner

@CaptRauti commented on GitHub (Oct 23, 2026):

Thanks for the quick fix — 828a2559 reproduces our case exactly (unclamped reader, one picture became 93,700 image tokens). Our production config already sets vision.max_tokens: 1024, which is why the older reader stayed clean here; we will re-test the updated strata-vision (GPU-1024 default + the ERR refusal past limit+⅛) once we pick up a build with this commit on the same 2x RTX 3060 rig, and report back with a number. — CaptRauti

<!-- gh-comment-id:6368333882 --> @CaptRauti commented on GitHub (Oct 23, 2026): Thanks for the quick fix — 828a2559 reproduces our case exactly (unclamped reader, one picture became 93,700 image tokens). Our production config already sets `vision.max_tokens: 1024`, which is why the older reader stayed clean here; we will re-test the updated `strata-vision` (GPU-1024 default + the ERR refusal past limit+⅛) once we pick up a build with this commit on the same 2x RTX 3060 rig, and report back with a number. — CaptRauti
Author
Owner

@Niko1221 commented on GitHub (Oct 24, 2026):

This is fixed in Strata 0.2.3. Please update to the latest release (in the Terminal: strata update; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.

<!-- gh-comment-id:6383448396 --> @Niko1221 commented on GitHub (Oct 24, 2026): This is fixed in Strata 0.2.3. Please update to the latest release (in the Terminal: `strata update`; in the app: download the newest installer from the releases page). If it still happens on the latest version, reply here and we will reopen it. Thank you for the report.
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#1529
No description provided.