mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5443] Vision CPU reader (300-token cap) reads dense Japanese pages far worse than the GPU reader (CER 12.1% vs 1.66%) #3252
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @masatokus on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5443
Summary
On a 12 GB card,
--vision cpu(the default under 24 GB) caps the picture reader atmax_tokens: 300. For dense vertical Japanese book pages this gave a character error rate of 12.1 %, versus 1.66 % with--vision gpu(max_tokens: 1024) on the same model and prompt. I could not isolate "CPU vs GPU compute" from "300 vs 1024 tokens", so the cause is the cap or the CPU reader itself. I am reporting it because the engine already prints a hint about this and nothing inlaunchlets me raise the CPU cap.This is related to #625 (CPU path 300-token cap, closed), but that thread only mentions charts, small text and screenshots; I did not find a measured accuracy impact for dense text pages.
Environment
GSQ-RCO),mmproj-Qwen3.8-Flash-Next-BF16.gguf, 128K context, drafting DFlash2Measurement
30 page images of vertical-text Japanese books. Prompt asks for a plain transcription of the page (no ruby), temperature 0, thinking off, 4000 max output tokens. Metric: character error rate against human-corrected text (NFKC, whitespace removed). All 30 requests succeeded in every run; none hit the length limit.
--vision cpu(max_tokens: 300)--vision gpu(max_tokens: 1024)For reference, two OCR engines on the same pages score 1.02 % and 1.39 %.
What I saw in the engine log
Every CPU start prints:
while the generated run config has
"vision": {"gpu": false, "max_tokens": 300, ...}. The GPU run's config has"gpu": true, "max_tokens": 1024and logswarmed up at 1024 image tokens.Requests
strata launchor a preset?launch --helpdoes not list--vision-tokens, and--set vision-tokens=1024is passed through to the engine, which prints its usage text and exits with code 1 ("The engine stopped while it was loading the model").launch --plan(or the first start) warn when the CPU reader's cap is below the 1024 tokens that llama.cpp says Qwen-VL needs, and mention that text-heavy pages may read badly?I can run more measurements (for example the CPU reader at 768 or 1024 tokens) if that helps; tell me which flag to use.
@github-actions[bot] commented on GitHub (Nov 7, 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