[GH-ISSUE #1464] Add vision to docker container #587

Closed
opened 2026-11-04 01:44:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ceinstaller on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1464

Hey all, been working on getting Strata working on my AI server. I have it running with Unsloth UD-IQ4 and it performs great. Now I'm trying to add vision and based on searching it looks like I need to modify the config file to add the vision section. Does anyone have example of doing this? I can't find any docs on the config file, just that I need to add the vision section. (I think, anyway.)

Thanks in advance!

Originally created by @ceinstaller on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1464 Hey all, been working on getting Strata working on my AI server. I have it running with Unsloth UD-IQ4 and it performs great. Now I'm trying to add vision and based on searching it looks like I need to modify the config file to add the vision section. Does anyone have example of doing this? I can't find any docs on the config file, just that I need to add the vision section. (I think, anyway.) Thanks in advance!
Author
Owner

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

Setup writes that section for you; you do not need to edit the config by hand. In Docker set the environment variable on docker run: -e VISION=yes puts the image encoder on the GPU, -e VISION=cpu keeps it on the CPU (the default is no). The image builds the encoder unless it was built with --build-arg BUILD_VISION=0. The Docker section of docs/INSTALL.md lists the other variables (MODEL, FAMILY, CONTEXT, KV, GPU or GPUS).

For a config that already exists in the data volume, start the container once with -e VISION=yes and the same MODEL; the config then gets a "vision" section. Its keys (max_tokens, min_tokens, mmproj) are described under "Images (vision)" in docs/DETAILS.md. The GPU encoder keeps about 1.4 GB of VRAM free for itself, so the expert cache is a little smaller.

<!-- gh-comment-id:6059712021 --> @Niko1221 commented on GitHub (Oct 8, 2026): Setup writes that section for you; you do not need to edit the config by hand. In Docker set the environment variable on `docker run`: `-e VISION=yes` puts the image encoder on the GPU, `-e VISION=cpu` keeps it on the CPU (the default is `no`). The image builds the encoder unless it was built with `--build-arg BUILD_VISION=0`. The Docker section of docs/INSTALL.md lists the other variables (`MODEL`, `FAMILY`, `CONTEXT`, `KV`, `GPU` or `GPUS`). For a config that already exists in the data volume, start the container once with `-e VISION=yes` and the same MODEL; the config then gets a `"vision"` section. Its keys (`max_tokens`, `min_tokens`, `mmproj`) are described under "Images (vision)" in docs/DETAILS.md. The GPU encoder keeps about 1.4 GB of VRAM free for itself, so the expert cache is a little smaller.
Author
Owner

@ceinstaller commented on GitHub (Oct 10, 2026):

Hey Niko, sorry for the late reply. I see an open issue that I was running into, where starting the container with --VISION=yes didn't add the vision section to the existing config file. I happened to see that the new release had just come out, so I just blew everything away and started over, this time making sure the VISION section was in the docker command the first time I ran it. Worked fine!

Thank you for taking the time to reply, I do appreciate it!

<!-- gh-comment-id:6092011561 --> @ceinstaller commented on GitHub (Oct 10, 2026): Hey Niko, sorry for the late reply. I see an open issue that I was running into, where starting the container with --VISION=yes didn't add the vision section to the existing config file. I happened to see that the new release had just come out, so I just blew everything away and started over, this time making sure the VISION section was in the docker command the first time I ran it. Worked fine! Thank you for taking the time to reply, I do appreciate it!
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#587
No description provided.