Skip to content

open-webui: use a direct color question for the vision smoke - #682

Merged
sreeram-11 merged 5 commits into
mainfrom
ci-fix-openwebui-vision-smoke
Aug 10, 2026
Merged

open-webui: use a direct color question for the vision smoke#682
sreeram-11 merged 5 commits into
mainfrom
ci-fix-openwebui-vision-smoke

Conversation

@lucbruni-amd

@lucbruni-amd lucbruni-amd commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

The openwebui-lemonade-multimodal-smoke vision request asked "if you can see an image input, reply OK". That framing makes the reasoning model debate its own vision capability and non-deterministically spiral past the token limit (finish=length, empty content) — the failure on stx/halo. Raising tokens only masked it (halo still overran at 1024).

Fix: ask a direct question the model answers by actually looking — "What color is this image? Reply with only the color name." — and assert red. Keeps the 8x8 image; reverts the 1024 stopgap to 512.

Validated on the exact boxes that failed CI: 5/5 deterministic "Red" on stxp-02 and halo-02.

Closes #670.

The vision smoke sent a 1x1 pixel with max_tokens=256; the reasoning model
spent the whole budget deliberating over the degenerate image
(finish_reason=length) and returned empty content. Use a small real 8x8 PNG
and raise max_tokens to 512. Applies to both Windows device variants and Linux.

Refs #669, #670, #673.
@lucbruni-amd
lucbruni-amd requested review from sreeram-11 and a lite review from Copilot August 7, 2026 20:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Improves reliability of the Open WebUI vision smoke test by avoiding a degenerate 1×1 image that can consume the model’s reasoning token budget without producing visible content.

Changes:

  • Replace the 1×1 base64 PNG with a small 8×8 PNG in PowerShell and Python examples.
  • Increase max_tokens from 256 to 512 for the vision request across Windows and Linux variants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread playbooks/supplemental/open-webui-chat/README.md
Comment thread playbooks/supplemental/open-webui-chat/README.md
Comment thread playbooks/supplemental/open-webui-chat/README.md
Comment thread playbooks/supplemental/open-webui-chat/README.md
Comment thread playbooks/supplemental/open-webui-chat/README.md
@sreeram-11

sreeram-11 commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

I don’t think this PR actually resolves the issue. Even with your changes, the tests are still failing.


I believe that the cause of the failure is as explained in this comment (not 100% definitive though): #460 (comment)

I updated the three failing runners (Linux Halo, Linux STX, Linux R9700) based on that comment:

lemonade backends install llamacpp:rocm
lemonade config set llamacpp.backend=rocm

lemonade backends install sdcpp:vulkan
lemonade config set sdcpp.backend=vulkan

Some useful commands for checking the current state:

  • lemonade backends — confirm that:
    • llamacpp has the Vulkan backend installed
    • sd-cpp has the ROCm backend installed
  • lemonade config — confirm that:
    • llamacpp.backend is set to rocm (not auto or vulkan)
    • sdcpp.backend is set to vulkan (not auto or rocm)

Passing workflow runs after I made the above changes:

However, the machine xsj-aimlab-halo-03 (Linux Strix Halo) stll seems to fail even after my proposed solution.

512 still occasionally overran on stx/halo when the reasoning model spiraled;
1024 gives headroom (good-state runs conclude in ~70-100 tokens). Keeps the
8x8 image fix. Refs #670.
The 'if you can see an image input, reply OK' prompt made the reasoning model
philosophize about its own vision capability and non-deterministically spiral
past the token limit (empty content, finish=length) on stx/halo. Ask 'What
color is this image?' and assert 'red' instead. Revert the 1024 stopgap to 512.

Refs #670.
@lucbruni-amd lucbruni-amd changed the title open-webui: make lemonade vision smoke robust open-webui: use a direct color question for the vision smoke Aug 10, 2026
@sreeram-11

Copy link
Copy Markdown
Collaborator

Awesome, thanks for the fix @lucbruni-amd. This was a great catch!

@sreeram-11
sreeram-11 merged commit 9c1e5e8 into main Aug 10, 2026
30 checks passed
@sreeram-11
sreeram-11 deleted the ci-fix-openwebui-vision-smoke branch August 10, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] open-webui-chat / openwebui-lemonade-multimodal-smoke-linux failed on halo (linux)

3 participants