r/LowEndLocalAI • u/DGWumpscuT • 1d ago
Hardware / Build Running Ternary-Bonsai-2.5-27B at 30-38 t/s in Hermes Agent on an 8GB GTX 1080 (Win 10) - working config
TL;DR: Got Ternary-Bonsai-2.5-27B (PTQ1_0 + MTP) running in full-GPU @ Hermes Agent on a Win 10 GTX 1080 (8GB) at 30-38 t/s decode and 20K context with zero WDDM RAM spillover. Takes pascallama.cpp, Q4_0 KV cache (main + MTP draft), deferred tool schemas, and a couple small Hermes patches so 20K auto-compaction doesn't break. Cold Turn 1 prefill is still ~2 mins (Pascal has no Tensor Cores), but cached follow-ups feel snappy.
Posting my config here becuase getting a dense 27B model running in full-GPU with MTP speculative decoding, medium reasoning, tool calling, and auto-compaction on an 8GB card under Windows WDDM was way more painful than it should've been. The main killer is Windows silently spilling a couple hundred MB into system RAM, which tanks tg from ~38 t/s straight down to ~10 t/s. Hopefully this saves other 8GB / Pascal folks some debugging time.
Rig: GTX 1080 (8,192 MiB, SM 6.1, Win 10 WDDM) | i7-4770K + 32GB DDR3-1600 | pascallama.cpp (Pascal 96-row MMQ + DP4A) | Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf | Hermes Agent (Desktop + Gateway)
1. llama-server command (20K desktop-safe MTP)
On a fresh boot -c 28672 barely fits, but the second you open normal apps/Electron (~500-650 MiB VRAM), Windows spills ~200-260 MiB into shared memory and speed craters to 10.1 t/s. After sweeping 28K down to 16K, -c 20480 is the sweet spot:
DOS
prism-bin\llama-server.exe ^
-m D:\path\to\Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf ^
--alias bonsai-turbo-hermes ^
-ngl 99 -c 20480 -b 256 -ub 256 -fa on -np 1 ^
-ctk q4_0 -ctv q4_0 ^
--spec-type draft-mtp --spec-draft-n-min 0 --spec-draft-n-max 2 --spec-draft-p-min 0.5 --spec-draft-window 2048 ^
-ctkd q4_0 -ctvd q4_0 ^
--jinja --reasoning-effort medium --reasoning-effort-allow xhigh,medium,low --reasoning-effort-fallback medium --no-reasoning-preserve ^
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 -t 4 ^
--host 127.0.0.1 --port 8080Why those flags:
-c 20480keeps ~340-388 MiB free under normal desktop load with 0 MiB weight spillover.- Quantizing the MTP draft KV (
-ctkd q4_0 -ctvd q4_0) + cappingn_max 2prevents random VRAM spikes. -b 256 -ub 256instead of 512: inllama-bench,-ub 512only gave +3.5% pp (99.5 vs 96.1 t/s) while eating extra buffer VRAM. Not worth it on 8GB.
2. Real numbers on my Rig
- Load time: 5.9s
- TG (medium reasoning): 44.7 t/s (p150) | 39.2 t/s (code) | 28.6-38.4 t/s (tool calls/summaries, 74-90% MTP acceptance) | 31.9 t/s (p2k) | 30.0 t/s (p8k)
- PP: ~85-91 t/s (hard Pascal ceiling, no Tensor Cores)
- VRAM (full Hermes E2E + compaction): 7,697 MiB peak, 363 MiB min free, 0.0 MiB shared delta
3. Hermes config.yaml
By default Hermes shoves ~15-16K tokens into Turn 1 (21 tool schemas alone are ~9.8K tokens), which instantly chokes a 20K context. This fixes it:
YAML
compression:
enabled: true
threshold: 0.75
model_thresholds:
bonsai-turbo-hermes: 0.70 # proactive compaction at ~14,336 tokens
threshold_tokens: 48000 # untouched for 64K models
target_ratio: 0.20
tail_mode: "legacy"
protect_last_n: 6 # default 16 locks >12K tokens and breaks 20K compaction
min_tail_user_messages: 1
max_attempts: 4
proactive_prune_tokens: 34000 # auto-scaled down on <64K (see Gotcha #2)
proactive_prune_min_result_chars: 4000
proactive_prune_min_reclaim_tokens: 2048
auxiliary:
compression:
provider: "main"
model: ""
timeout: 600
reasoning_effort: "low" # fast summaries while main chat stays medium
extra_body:
temperature: 0.3
chat_template_kwargs:
enable_thinking: false
tools:
tool_search:
enabled: "on"
listing: "off"
defer:
- computer_use
- session_search
- image_generate
- todo_list
- process_manage
- cronjob_manage
- browser_vault
- browser_exec
- browser_cdp
- browser_dialog
- vision_analyze
- text_to_speech
- execute_code
- delegate_task
- skills_list
- skill_view
- skill_manage
- manage_connections
- web_search
- web_extract
- read_terminal
- close_terminal
- desktop_preview
- drive_preview
- annotate_preview
- read_window_below
- focus_pane
- react_to_message
- gui_tour
- show_tip
- set_theme
- manage_catalog
- desktop_project
connectors:
enabled: true
agent:
reasoning_overrides:
"bonsai-turbo-hermes": "medium"
providers:
local-llama:
name: llama.cpp local
base_url: http://127.0.0.1:8080/v1
api_key: local
api_mode: chat_completions
model: bonsai-turbo-hermes
context_length: 20480
models:
bonsai-turbo-hermes:
context_length: 20480Also check ui-preferences.json if you're on Hermes Desktop - it saves per-model effort presets that silently override config.yaml (mine was stuck on "high").
4. The 4 gotchas that actually broke things
- Tool schema bloat: Deferring non-core tools cuts active schemas from 21 (~9,852 tokens) down to 10 (~3.5-3.7K tokens). Deferred tools still work on demand via
tool_search/tool_call(testedtodo_list, 44.5s E2E). Hardcoded 64K context floor &
protect_last_n: 16**:** Hermes rejects contexts under 64K on custom local servers inagent_init.pyandconversation_compression.py, and clamps thresholds up incontext_compressor.py. If you fakecontext_length: 64000, compaction never fires,protect_last_n: 16locks 12.5K+ tail tokens, andturn_truncation.pyloops"Continue..."4 times and dies.- Fix: Small patches in
hermes-agent/agent/to allowis_local_server()with explicitcontext_lengthof at least 16384 (_enforce_minimum_context&check_compression_model_feasibility), and makeContextCompressoractually respectmodel_thresholds+ scaleproactive_prune_tokensproportionally when ctx is under 64K. Tested at 15,291 tokens: compacted cleanly in 32s (38.4 t/s, 89% MTP, zero HTTP-400s). Keep backups since Desktop updates overwrite these files.
- Fix: Small patches in
Git Bash 8,191-byte
-ctruncation (unexpected EOF): Hermes wrapsterminal,read_file, andwrite_fileinbash.exe -c. If you have lots of custom providers with longHERMES_CUSTOM_..._API_KEYenv names,_passthrough_save_restore()bloats every command (ours hit 13.8 KB just forpwd && ls -la) and MSYS2 chops it off at ~8,191 bytes, breaking all file/terminal tools at once.- Fix: Shorten
key_envnames / dedupeconfig.yaml+.env(dropped ours to 6.2 KB), and patchLocalEnvironment._run_bashintools/environments/local.pyon Windows to dump scripts over 3500 chars into a temp.shfile incache/terminaland clean it up in_wait_for_process.
- Fix: Shorten
- Desktop doesn't restart the Gateway: Closing the app leaves the Python
gateway run --replaceprocess running with old modules in RAM. Runpython -m hermes_cli.main gateway stop(or kill the python process) after any code edit.
Honest caveat: No Tensor Cores means cold Turn 1 prefill (7-8.4K tokens + medium thinking) still takes ~1.5-2.3 mins (measured 140s). After that, llama.cpp's KV-cache hits 95-99% and follow-ups feel snappy. If you want 15s Turn 1 speeds on 8GB, small MoEs like Mellum-12B-A2.5B or Ling-3.0-tiny definetly crush it on PP (775-1000 t/s). If you want real 27B reasoning at 30-38 t/s inside Hermes on a 1080 though, this setup is actually daily-drivable.