[GH-ISSUE #967] Unsloth ud-q4_k_xl - no vision? #421

Closed
opened 2026-11-04 01:42:55 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @kelheor on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/967

During setup I don't see vision settings and model run without vision as a result. Can you fix it?

AMD Ryzen 9 5950X + 128GB DDR4 + RTX 4090 24GB (no vision) - ~47 tps for output.

Originally created by @kelheor on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/967 During setup I don't see vision settings and model run without vision as a result. Can you fix it? AMD Ryzen 9 5950X + 128GB DDR4 + RTX 4090 24GB (no vision) - ~47 tps for output.
Author
Owner

@kelheor commented on GitHub (Oct 5, 2026):

Fixed it for myself by adding --vision to strata-unsloth-ud-q4_k_xl.json as well as

"vision": {
  "exe": "C:\\[AI]\\servers\\Strata-main\\engine\\strata-vision.exe",
  "mmproj": "C:\\[AI]\\servers\\Strata-data\\models\\mmproj-Qwen3.8-Flash-Next-BF16.gguf",
  "model": "C:\\[AI]\\servers\\Strata-data\\models\\unsloth-UD-Q4_K_XL\\Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
  "gpu": true,
  "max_tokens": 1024
 }

and by downloading files from unsloth manually.
Maybe because I didn't do setup with vision encoder on, the speed become ~40-45 tps for output (tested in build-in chat, maybe in OpenCode it will be higher for coding tasks). Still think it's better to add built-in support for vision encoder.

Update: in OpenCode the speed is ~40-55 tps (in comparison IQ3_S on the same settings - ~90-100 tps).

<!-- gh-comment-id:6000186321 --> @kelheor commented on GitHub (Oct 5, 2026): Fixed it for myself by adding `--vision` to strata-unsloth-ud-q4_k_xl.json as well as ``` "vision": { "exe": "C:\\[AI]\\servers\\Strata-main\\engine\\strata-vision.exe", "mmproj": "C:\\[AI]\\servers\\Strata-data\\models\\mmproj-Qwen3.8-Flash-Next-BF16.gguf", "model": "C:\\[AI]\\servers\\Strata-data\\models\\unsloth-UD-Q4_K_XL\\Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf", "gpu": true, "max_tokens": 1024 } ``` and by downloading files from unsloth manually. Maybe because I didn't do setup with vision encoder on, the speed become ~40-45 tps for output (tested in build-in chat, maybe in OpenCode it will be higher for coding tasks). Still think it's better to add built-in support for vision encoder. **Update:** in OpenCode the speed is ~40-55 tps (in comparison IQ3_S on the same settings - ~90-100 tps).
Author
Owner

@talisp commented on GitHub (Oct 5, 2026):

In the 0.1.39 setup, images are an official option for UD-IQ4_XS (docs/UNSLOTH_Q4.md: "Images are an option ... the image path has no restriction for this pack"). UD-Q4_K_XL is still described as "not wired yet", which matches what you saw.

UD-IQ4_XS with --vision gpu works here (NVIDIA L40S, Linux, same mmproj-Qwen3.8-Flash-Next-BF16.gguf). Setup command, checks and speed are in #971.

<!-- gh-comment-id:6001502653 --> @talisp commented on GitHub (Oct 5, 2026): In the 0.1.39 setup, images are an official option for **UD-IQ4_XS** (`docs/UNSLOTH_Q4.md`: "Images are an option ... the image path has no restriction for this pack"). UD-Q4_K_XL is still described as "not wired yet", which matches what you saw. UD-IQ4_XS with `--vision gpu` works here (NVIDIA L40S, Linux, same `mmproj-Qwen3.8-Flash-Next-BF16.gguf`). Setup command, checks and speed are in #971.
Author
Owner

@kelheor commented on GitHub (Oct 5, 2026):

UD-Q4_K_XL is still described as "not wired yet", which matches what you saw.

Any reason not to do this yet? It works with manual configs.

<!-- gh-comment-id:6001563866 --> @kelheor commented on GitHub (Oct 5, 2026): > UD-Q4_K_XL is still described as "not wired yet", which matches what you saw. Any reason not to do this yet? It works with manual configs.
Author
Owner

@talisp commented on GitHub (Oct 5, 2026):

@kelheor first, a correction to my earlier note: I should have said clearly that the model does not see by itself. Every Qwen3.8-Flash-Next GGUF (IQ3_S, UD-IQ4_XS, UD-Q4_K_XL, …) is text-only. Images need two extra pieces, which your manual config adds:

  1. The image encoder: mmproj-Qwen3.8-Flash-Next-BF16.gguf, a separate ~0.9 GB file in BF16. It is the same file for every quant of this model.
  2. The strata-vision helper, which runs that encoder and hands the image tokens to the engine.

For IQ3_S and UD-IQ4_XS, setup does all of this when you answer yes to "Do you want images?" (or pass --vision gpu). For UD-Q4_K_XL it doesn't yet. Why is the maintainer's call: that model is marked experimental, and the docs say even UD-IQ4_XS "has not been run with images". Your config is the missing test case: if the image answers look right, a sample here would help @Niko1221 decide whether to make it a setup option.

Doing it by hand (what setup does, for anyone else reading):

  1. Download the encoder from the same repo and revision setup pins, into the Strata data folder's models/, next to the model folders:
    https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/resolve/ed59f92082b1e93c0e96d60a8b11aab089b52f09/mmproj-Qwen3.8-Flash-Next-BF16.gguf
    
    Size 907,543,008 bytes, SHA-256 b1a82259702816a5330d7bd7607cd9676b11780e79ff7348c21103ff3ce49bd0.
  2. Get the helper. The ready-made engine zip already contains strata-vision(.exe) next to strata(.exe), in the engine folder. A source build (--build) compiles it only when images are on; it takes 10–20 min with CUDA.
  3. Wire it into strata-<model>.json (setup's format):
    • add "--vision", "--vram-reserve-mib", "700" to "args" (--vision is a bare flag; --vision gpu / cpu are setup options, not engine arguments);
    • add the section:
      "vision": {
        "exe": "<strata>/engine/strata-vision(.exe)",
        "mmproj": "<data>/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf",
        "model": "<the model's first GGUF shard>",
        "gpu": true,
        "max_tokens": 1024
      }
      
      For the CPU encoder: "gpu": false, "max_tokens": 300, "threads": <half your cores>.
  4. Restart and check:
    • the window prints loading the vision encoder ...;
    • the engine log has strata-vision: warmed up at 1024 image tokens;
    • GET /health shows "images": true.
  5. Test with an image whose answer you know. In Strata's web chat (http://127.0.0.1:<port>/; with an API key, add it under About > Settings), attach a picture. Or over the API with an image_url part (a data: URL), as in docs/DETAILS.md → "Images (vision)". Our check: a white image with a red circle, a blue square and a green triangle; the model must give the count, shapes and colours left to right.
<!-- gh-comment-id:6002092120 --> @talisp commented on GitHub (Oct 5, 2026): @kelheor first, a correction to my earlier note: I should have said clearly that **the model does not see by itself**. Every Qwen3.8-Flash-Next GGUF (IQ3_S, UD-IQ4_XS, UD-Q4_K_XL, …) is text-only. Images need two extra pieces, which your manual config adds: 1. **The image encoder:** `mmproj-Qwen3.8-Flash-Next-BF16.gguf`, a separate ~0.9 GB file in BF16. It is the same file for every quant of this model. 2. **The `strata-vision` helper**, which runs that encoder and hands the image tokens to the engine. For IQ3_S and UD-IQ4_XS, setup does all of this when you answer **yes** to "Do you want images?" (or pass `--vision gpu`). For UD-Q4_K_XL it doesn't yet. Why is the maintainer's call: that model is marked experimental, and the docs say even UD-IQ4_XS "has not been run with images". Your config is the missing test case: if the image answers look right, a sample here would help @Niko1221 decide whether to make it a setup option. **Doing it by hand (what setup does, for anyone else reading):** 1. **Download** the encoder from the same repo and revision setup pins, into the Strata data folder's `models/`, next to the model folders: ``` https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF/resolve/ed59f92082b1e93c0e96d60a8b11aab089b52f09/mmproj-Qwen3.8-Flash-Next-BF16.gguf ``` Size 907,543,008 bytes, SHA-256 `b1a82259702816a5330d7bd7607cd9676b11780e79ff7348c21103ff3ce49bd0`. 2. **Get the helper.** The ready-made engine zip already contains `strata-vision(.exe)` next to `strata(.exe)`, in the `engine` folder. A source build (`--build`) compiles it only when images are on; it takes 10–20 min with CUDA. 3. **Wire it into `strata-<model>.json`** (setup's format): - add `"--vision", "--vram-reserve-mib", "700"` to `"args"` (`--vision` is a bare flag; `--vision gpu` / `cpu` are *setup* options, not engine arguments); - add the section: ```json "vision": { "exe": "<strata>/engine/strata-vision(.exe)", "mmproj": "<data>/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf", "model": "<the model's first GGUF shard>", "gpu": true, "max_tokens": 1024 } ``` For the CPU encoder: `"gpu": false, "max_tokens": 300, "threads": <half your cores>`. 4. **Restart and check:** - the window prints `loading the vision encoder ...`; - the engine log has `strata-vision: warmed up at 1024 image tokens`; - `GET /health` shows `"images": true`. 5. **Test with an image whose answer you know.** In Strata's web chat (`http://127.0.0.1:<port>/`; with an API key, add it under About > Settings), attach a picture. Or over the API with an `image_url` part (a `data:` URL), as in `docs/DETAILS.md` → "Images (vision)". Our check: a white image with a red circle, a blue square and a green triangle; the model must give the count, shapes and colours left to right.
Author
Owner

@kelheor commented on GitHub (Oct 5, 2026):

@talisp I already did this by myself, as I mentioned before. Image processing works fine for me - I tested it with test image. When I mentioned "Maybe because I didn't do setup with vision encoder on" I meant that during setup model trying to find best config params and my config created without vision on, since there is no vision support via script yet - so when it will be added, output might be faster for a few tokens (or might not).

<!-- gh-comment-id:6002839014 --> @kelheor commented on GitHub (Oct 5, 2026): @talisp I already did this by myself, as I mentioned before. Image processing works fine for me - I tested it with test image. When I mentioned "Maybe because I didn't do setup with vision encoder on" I meant that during setup model trying to find best config params and my config created without vision on, since there is no vision support via script yet - so when it will be added, output might be faster for a few tokens (or might not).
Author
Owner

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

It is not wired on purpose: UD-Q4_K_XL was never run with images by us. Since it works by hand for you and for UD-IQ4_XS, the plan is to allow --vision for it with a warning that it is untested (a recommendation, not a block), after one smoke test on our side. 0.1.41.

<!-- gh-comment-id:6010949552 --> @Niko1221 commented on GitHub (Oct 6, 2026): It is not wired on purpose: UD-Q4_K_XL was never run with images by us. Since it works by hand for you and for UD-IQ4_XS, the plan is to allow `--vision` for it with a warning that it is untested (a recommendation, not a block), after one smoke test on our side. 0.1.41.
Author
Owner

@yhayato commented on GitHub (Oct 6, 2026):

I followed the prescription and confirmed that the vision option works with ud-q4_k_xl.
(Intel ultra 9 285k with 192GB RAM and single RTX 3090.)
Thank you for providing the solution.

<!-- gh-comment-id:6017613091 --> @yhayato commented on GitHub (Oct 6, 2026): I followed the prescription and confirmed that the vision option works with ud-q4_k_xl. (Intel ultra 9 285k with 192GB RAM and single RTX 3090.) Thank you for providing the solution.
Author
Owner

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

In 0.1.40.2 setup allows images with UD-Q4_K_XL and warns that we have not run that file with images ourselves (you and the other report in #971 did, by hand). If your answers look right with the setup-made config, a short note here helps.

<!-- gh-comment-id:6037916289 --> @Niko1221 commented on GitHub (Oct 7, 2026): In 0.1.40.2 setup allows images with UD-Q4_K_XL and warns that we have not run that file with images ourselves (you and the other report in #971 did, by hand). If your answers look right with the setup-made config, a short note here helps.
Author
Owner

@kelheor commented on GitHub (Oct 7, 2026):

a short note here helps.

I ran SETUP.bat on 0.1.40.2 with vision on - it still works fine and process images without issues.

<!-- gh-comment-id:6038728420 --> @kelheor commented on GitHub (Oct 7, 2026): > a short note here helps. I ran SETUP.bat on 0.1.40.2 with vision on - it still works fine and process images without issues.
Author
Owner

@CYoung83 commented on GitHub (Oct 8, 2026):

A sample for UD-Q4_K_XL with images, and the same check on UD-Q5_K_XL: engine 0.1.41 (source build, CUDA 13.3), RTX 5090, 89 GiB RAM, --resident-budget-gib 48. The vision section is the same as in kelheor's config above, with --vision --vram-reserve-mib 700.

The check is one generated picture (a red circle, a blue square and the number 4271) and three questions:

Quant Number Circle color Blue shape Passed
UD-Q4_K_XL 4271 Red square 3/3
UD-Q5_K_XL 4271 Red square 3/3

The image encoder's speed cost on the same machine, as decode tok/s at 4K / 32K prompts:

Quant Without images With images
UD-Q4_K_XL 109.7 / 111.8 101.2 / 104.1
UD-Q5_K_XL 60.6 / 64.4 51.8 / 60.9

This is one simple picture, so it shows the image path works on these packs, not how well they read harder images. The full data, configs and scripts are in #1617. UD-Q5_K_XL also needs #1612 to load.

<!-- gh-comment-id:6068251255 --> @CYoung83 commented on GitHub (Oct 8, 2026): A sample for UD-Q4_K_XL with images, and the same check on UD-Q5_K_XL: engine 0.1.41 (source build, CUDA 13.3), RTX 5090, 89 GiB RAM, `--resident-budget-gib 48`. The `vision` section is the same as in kelheor's config above, with `--vision --vram-reserve-mib 700`. The check is one generated picture (a red circle, a blue square and the number 4271) and three questions: | Quant | Number | Circle color | Blue shape | Passed | | --- | --- | --- | --- | ---: | | UD-Q4_K_XL | 4271 | Red | square | 3/3 | | UD-Q5_K_XL | 4271 | Red | square | 3/3 | The image encoder's speed cost on the same machine, as decode tok/s at 4K / 32K prompts: | Quant | Without images | With images | | --- | --- | --- | | UD-Q4_K_XL | 109.7 / 111.8 | 101.2 / 104.1 | | UD-Q5_K_XL | 60.6 / 64.4 | 51.8 / 60.9 | This is one simple picture, so it shows the image path works on these packs, not how well they read harder images. The full data, configs and scripts are in #1617. UD-Q5_K_XL also needs #1612 to load.
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#421
No description provided.