mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1880] [CLOSED] setup: the images question now asks where the encoder runs (GPU / CPU) #3731
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#3731
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1880
Author: @xtremexp
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:setup-vision-cpu-only📝 Commits (1)
0cc44besetup: added CPU image encoder option to interactive setup📊 Changes
4 files changed (+69 additions, -9 deletions)
View changed files
📝
docs/DETAILS.md(+6 -3)📝
docs/INSTALL.md(+3 -3)📝
setup.py(+12 -3)📝
tools/test_setup_choices.py(+48 -0)📄 Description
Description
--vision cpu (the image encoder on the CPU, no VRAM) has existed since 0.1.32 (#304), and setup uses it itself when a ready-made encoder has no code for the card (#331). Only the interactive prompt never offered it: Do you want images? [y/n], and yes always meant the GPU. So the people who would want it most — a card full of experts — cannot find it without knowing the flag.
The GPU encoder keeps ~1.4 GB of VRAM free, which leaves ~1,000 fewer experts cached and costs 2-8% on prompt and output speed (docs/DETAILS.md, "Speed with images on", 4K context, Q2_0 / IQ2_XS / IQ3_XXS). The CPU encoder costs nothing on the GPU and reads a picture in about 3 s at 300 image tokens on 8 cores.
What changed
Saying yes to "Do you want images?" now asks a second question: Image encoder? [1]: 1) GPU (recommended) 2) CPU (no VRAM). The intro line names both costs. --help for --vision mentions cpu. Docs: the four questions in DETAILS.md, the Images section, the question list in INSTALL.md.
What it leaves alone
GPU stays the default, so Enter and --yes behave exactly as before (--yes leaves images off, as documented). The --vision flags, their parsing, the build, the config format and the server are untouched — the CPU answer writes the same config --vision cpu writes. The AMD path is untouched: it has no GPU encoder, so it never reaches this prompt (hip_vision).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.