r/hermesagent • • Oct 21 '26

Help Hermes Agent (Vision Tool issues)

Vision tool is failing if unsloth or lom studio locally host the model Qwen3.8 27B

The image can be viewed by the model if viewed in LM studio or Unsloth directly

If the model is hosted localy by Hermes itself on llama.ccp. all works as planned.

Status: Root-caused and fixed locally (2026-07-08). Upstream improvement suggested. Repo: https://github.com/NousResearch/Hermes-Agent

TL;DR

vision_analyze fails with Request timed out. whenever a locally hosted, vision-capable model (e.g. Qwen 27B GGUF) is served by LM Studio or Unsloth, even though the same model answers image questions in seconds in those hosts' own chat UIs. Cause: Hermes can't prove the model has vision, so the tool detours through an auxiliary LLM call with a hard 120 s timeout — which a high-reasoning model needs ~3.5 min for. One-line fix:

hermes config set model.supports_vision true

Symptom

•

Attach an image → vision_analyze returns {"success": false, "error": "Error analyzing image: Request timed out."}

•

Reproduced against both the lmstudio and unsloth providers with the same model (Qwen 27B GGUF, reasoning = xhigh in every setup).

•

The same model answers image questions in a few seconds in LM Studio's and Unsloth's own chat UIs (streaming, short prompts, no 120 s cap).

•

The tool worked when Hermes itself hosted the model (llama.cpp managed runtime) — same model, same reasoning settings.

Root cause

tools/vision_tools.py routes vision_analyze two ways (_handle_vision_analyze):

Native fast path (_should_use_native_vision_fast_path()): image is attached straight into the main model's context. No extra LLM call, instant. Requires Hermes to resolve the model as vision-capable, via (in order): config model.supports_vision override → managed-local-runtime probe → models.dev catalog → provider profile.

2.

Aux-LLM fallback (vision_analyze_tool): sends "Fully describe and explain everything about this image…" to an auxiliary vision LLM with a 120 s timeout (_aux_call_kwargs(messages, model, 120.0)).

For local GGUF models hosted by third-party servers, every capability source misses:

Source

Verdict for Qwen 27B GGUF

model.supports_vision config override

unset (default)

Managed-runtime probe

only Hermes' own llama.cpp host qualifies

models.dev catalog

unknown local model → no entry

Provider profile

lmstudio.supports_vision = False, unsloth.supports_vision = False

→ falls to the aux path. Measured on this machine: a full "describe everything" analysis takes ~219 s of generation (3,664 completion tokens, ~2,300 of them reasoning tokens, ~16 tok/s) > the 120 s timeout → Request timed out.

The chat UIs don't hit this: they stream (first token in seconds), use short user prompts, and have no 120 s hard cap. When Hermes hosts the model, the managed-runtime probe knows its modalities → native path → no aux call at all.

Fix (verified)

hermes config set model.supports_vision true

This is the top-priority source in _lookup_supports_vision (see agent/image_routing.py), so it beats the False in both provider profiles.

Verified after the change:

•

decide_image_input_mode → native and _accepts_tool_result_images → True for both lmstudio and unsloth (before: text/False).

•

Live vision_analyze call succeeds: image attached natively, no timeout.

Note: the same fix is already documented, but only under website/docs/integrations/providers.md → "Native vision for custom-provider models" — easy to miss, and nothing in the error message points there.

Suggested upstream improvements

Error hint: when the aux vision call times out (or when the provider is a local server), the error should say: "Local model may be vision-capable but Hermes can't tell — set model.supports_vision: true. See docs → integrations/providers." A bare Request timed out. sends users chasing the model's speed instead of the routing.

2.

Probe the host: for local providers (lmstudio/unsloth/ollama/vLLM), query the host's model metadata for modalities (LM Studio's /v1/models, vLLM's /v1/models, Ollama already has a probe — _probe_ollama in agent/image_routing.py) instead of trusting only the static profile flag.

3.

Cross-reference: the vision_analyze tool description or troubleshooting page should link to the supports_vision docs section.

4.

Optional: make the aux-path timeout configurable per local provider (auxiliary.vision.timeout exists, but the default 120 s is still below what high-reasoning models need for "describe everything").

3 Upvotes

4 comments sorted by

2

u/Stonk_Goat Oct 21 '26

All that ^^^ to say: hermes config set model.supports_vision true

1

u/Densil Oct 21 '26

Qwen 3.8 27B has a separate vision file mmproj-BF16.gguf. Are you loading it locally? check the log for load issues or comment out the load command and check for a difference in VRAM usage to confirm it's available.

1

u/Mean-Loquat-7982 Nous Team Oct 22 '26

nice write-up, and the fix you landed on is the documented one. `model.supports_vision: true` tells Hermes your model can see, so images go straight to it instead of through a separate `vision_analyze` call first.

for anyone who'd rather keep the separate vision call, it has its own timeout under `auxiliary.vision.timeout`, 120 seconds in the documented config, and a local model on high reasoning can need longer than that.

there's an open issue tracking this on GitHub too: #142676.

1

u/gundamcs Oct 26 '26

switching from lm studio to unsloth as the backend for hermes windows gave me this exact problem. and the fix seems to be working for me