[PR #1880] [CLOSED] setup: the images question now asks where the encoder runs (GPU / CPU) #3731

Closed
opened 2026-11-07 15:30:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 0cc44be setup: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1880 **Author:** [@xtremexp](https://github.com/xtremexp) **Created:** 10/10/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `setup-vision-cpu-only` --- ### 📝 Commits (1) - [`0cc44be`](https://github.com/Niko1221/Strata/commit/0cc44bebcb29e22c232fdfc1c0af20b92c6f25d9) setup: added CPU image encoder option to interactive setup ### 📊 Changes **4 files changed** (+69 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+6 -3) 📝 `docs/INSTALL.md` (+3 -3) 📝 `setup.py` (+12 -3) 📝 `tools/test_setup_choices.py` (+48 -0) </details> ### 📄 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:22 +07:00
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#3731
No description provided.