openmanus-local-qwen38-harness
Run OpenManus on the local Qwen3.8 llama-server harness.
- License 许可
- MIT
- 所属仓库
- zapabob/Skills
- 最近更新
- 2026-10-26
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- openmanus-local-qwen38-harness
- author
- Hermes
- license
- MIT
- version
- 1.0.0
- metadata
- { "hermes": { "tags": [ "Openmanus", "Qwen", "Llama-Server", "Local-Llm", "Harness", "Delegation" ], "related_skills": [ "local-llm-agent-harness-bringup", "openmanus-delegation", "hermes-agent" ] } }
- platforms
- [ "windows" ]
- description
- Run OpenManus on the local Qwen3.8 llama-server harness.
02 资源文件 2
- 参考文档agents/openai.yaml422 B
- 参考文档THIRD_PARTY_NOTICES.md1.4 KB
03 SKILL.md 正文
OpenManus × Local Qwen3.8 Harness
Wires the Hermes openmanus plugin to the local qwen3.8-27b-abliterated-mtp
llama-server instead of a paid remote endpoint. Covers bring-up, config wiring,
verification, and the timeout traps specific to this pairing.
This is the host-specific instance of a general procedure. For a different
framework, model, or machine, load local-llm-agent-harness-bringup — it holds
the portable five-gate method and stdlib probe scripts.
When to Use
- You want OpenManus delegated runs to consume local VRAM instead of API credits.
- A remote OpenManus LLM (NVIDIA/OpenRouter) is rate-limited or out of budget.
- You are debugging
OpenAI API error: Connection error.from an OpenManus child.
Do not use this for tasks needing a large context window: this GGUF serves
n_ctx=65536 across 4 slots, and OpenManus fills a slot per concurrent step.
Prerequisites
| Item | Value on this host |
|---|---|
| llama-server | %LOCALAPPDATA%\Programs\llama-turboquant\bin\llama-server.exe (b10264) |
| GGUF | %USERPROFILE%\Desktop\SO8T\gguf_models\soyaakinohara\qwen3.8-27b-abliterated-3.69bpw-12GB-MTP.gguf\qwen3.8-27b-abliterated-3.69bpw-12GB-MTP.gguf |
| GPU | RTX 5060 Ti 16GB — --parallel 1 lands ~14.5/16.3 GB (~1.7 GB spare) |
| OpenManus venv | _runtime/openmanus-venv/Scripts/python.exe |
| Workspace root | _runtime/research-workspace |
CRITICAL: --parallel 1 is what makes this usable
llama-server defaults to n_slots = 4. It then allocates four KV caches
and splits -c across them. On a 16 GB card with a 12 GB model that spills, and
prompt processing collapses:
| Config | prompt processing | tool-call round trip |
|---|---|---|
default n_slots = 4 |
6.7 tok/s | > 400 s (never finished) |
--parallel 1 |
~37 tok/s | 3.3 s |
--parallel 1 keeps n_ctx_slot = 65536 (the full context per request) — it
does not reduce the context window. Never "fix" the slowness by lowering
-c; lower the slot count instead. Also unset stale LLAMA_ARG_* /
LLAMA_TURBOQUANT_* env vars, which silently override CLI flags.
How to Run
One command brings the whole harness up and verifies it:
powershell -NoProfile -ExecutionPolicy Bypass `
-File scripts\windows\openmanus-qwen38-harness.ps1
Add -Probe to also run a real bounded agent task. Individual pieces:
# just the server — keep CtxSize at 65536 or 131072, keep Parallel at 1
powershell -NoProfile -ExecutionPolicy Bypass \
-File scripts/windows/start-llama-qwen38-openmanus.ps1 -CtxSize 65536 -Parallel 1
# config + endpoint verification only (no agent)
py -3 scripts/standalone/openmanus_qwen38_check.py
# does the served model emit OpenAI tool calls at all? (fast triage, ~3s healthy)
py -3 scripts/standalone/qwen38_toolcall_probe.py
# live bounded agent run, bypassing the 420s tool cap
py -3 scripts/standalone/openmanus_qwen38_probe.py 6 1200
Quick Reference
Required plugins.entries.openmanus shape in ~/.hermes/config.yaml:
llm:
provider: custom
model: qwen3.8-27b-abliterated-mtp
base_url: http://127.0.0.1:8080/v1
api_type: openai
api_key_env: OPENMANUS_API_KEY
allow_llm_network: true
Tool invocation that actually reaches localhost:
openmanus_run(
task="...",
dry_run=False,
allow_side_effects=True,
acknowledge_side_effects=True,
network_scope="llm_only", # NOT "none" — "none" cannot reach 127.0.0.1:8080
max_steps=4,
)
Procedure
- Start the server with the verified flag set (
-ctk q8_0 -ctv turbo3 --spec-type draft-mtp --spec-draft-n-max 3 --jinja --no-mmap). Unset strayLLAMA_ARG_*/LLAMA_TURBOQUANT_*first — they silently override CLI flags. - Confirm a real completion returns non-empty
content. This model emitsreasoning_contentfirst; a baremax_tokens: 16returnscontent: ''and looks like a broken model when it is only mid-reasoning. Use ≥256. - Point
plugins.entries.openmanus.llmat the local endpoint withscripts/standalone/openmanus_point_to_qwen38.py(backs up config, preserves the prior remote entry underllm_previous). - Use
api_key_env: OPENMANUS_API_KEY. That name is already present in~/.hermes/.envand therefore already loaded in the running Hermes process. - Run with
network_scope="llm_only"andallow_llm_network: true. - For live runs longer than ~7 minutes, drive
runner.pythroughopenmanus_qwen38_probe.pyin a background terminal instead of the tool.
Pitfalls
network_scope: "none"kills the LLM call. The runner passes--no-network, and the child cannot reach127.0.0.1:8080. Symptom:OpenAI API error: Connection error.repeated with backoff, thenRetryError[...APIConnectionError]. Fix:llm_only.no_secret_env: truedoes not help a no-auth local server. It empties the api_key, and the OpenAI client fails before connecting. Pass a dummy secret through the normal env route instead.- A brand-new env var in
.envis not visible to the running process.core.pyreadsos.environdirectly, so a freshly appendedOPENMANUS_LOCAL_API_KEYyieldssecret environment variable ... is not setuntil the process restarts. Reuse an already-loaded name, or callhermes_cli.config.reload_env(). - The Hermes tool call caps at ~420s.
openmanus_runraisestimed out after 420.0swhile the child keeps running, and because the parent died the receipt is never written. Judge the outcome from the llama-server log and the workspace, not from the tool result. - Only ~0.9 GB VRAM is spare at
n_slots = 4. That is the spill that causes the 6.7 tok/s collapse. Run--parallel 1and stop other GPU consumers (ComfyUI, a second llama-server, heavy Electron/Edge windows) before bring-up. - A healthy
/healthplus a healthy plain completion does not prove the harness works. Plain chat was fine at 6.7 tok/s while tool-calling took400 s. Always run
qwen38_toolcall_probe.py— the whole agent loop is tool calls, so that is the throughput that matters. /tmpis invisible to native binaries. Write scratch files under%USERPROFILE%/AppData/Local/Temp/.
Verification
Harness is genuinely ready when all five hold:
curl http://127.0.0.1:8080/health→{"status":"ok"}.- Server log shows
n_slots = 1, n_ctx_slot = 65536(or 131072) — notn_slots = 4. py -3 scripts/standalone/qwen38_toolcall_probe.pyreturnsfinish_reason = tool_callswith a well-formedcreate_filecall in ≈3 s (not minutes).py -3 scripts/standalone/openmanus_qwen38_check.pyprintsOK: openmanus is wired to the local Qwen3.8 llama-server.- A live run completes with
exit_code 0and the artifact exists. Verified 2026-08-19: direct probeexit_code 0in 66.2 s, Hermesopenmanus_runtoolstatus: completedin ~14 s, zeroConnection errorlines,harness_ok.txt/harness_tool_ok.txtwritten into the workspace.
04 同仓库更多 Skills
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
writing-plans
Write implementation plans: bite-sized tasks, paths, code.
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
weights-and-biases
W&B: log ML experiments, sweeps, model registry, dashboards.
watchers
Poll RSS, JSON APIs, and GitHub with watermark dedup.
serving-llms-vllm
vLLM: high-throughput LLM serving, OpenAI API, quantization.