Fixing Qwen4 vision: raise per-image token min/max to 4096 in llama.cpp and Strata
dh7net · reddit · 2026-12-05
If Qwen4's vision seems weak, the likely culprit is the default per-image token limit. The author tested and fixed it across three setups:
- llama.cpp: default gave images fewer than 1024 tokens; --image-min-tokens 4096 enlarges small pictures before encoding
- Strata: caps each picture at 1024 tokens when the vision encoder runs on GPU, shrinking large images; raised to 4096 in code
- Basalt: no fix needed — already allows up to 16,384 tokens per image; raising its minimum made no difference
Before/after comparisons and full setup details are linked in the post.
More from Infra
- Strata: open-source inference engine runs big AI models on consumer hardware, 51k stars — Niko1221 · 2026-12-05
- FCC approves SpaceX plan for 1M satellites powering space data centers — thealexbanks · 2026-12-05
- Cloud plans, local Qwen codes: hybrid agent workflow cuts cloud tokens 91% at 2.1x runtime — ievkz · 2026-12-05
- FlashHead stacks on Qwen4's MTP for +11% decode speed at zero quality cost — No-Dragonfly6246 · 2026-12-05
- GPU rental prices climb across every generation since late September, B200 up 32% — JFPuget · 2026-12-05
- Local AI goes mainstream: Qwen4 35B usable on any decent PC, says Redditor — crowtain · 2026-12-05