r/LowEndLocalAI • u/GlesasPendos • 12h ago
Guide / Tutorial rtx 4060 8gb vram + 32gb ram allows you to have great local AI agent today!
So, I am running on my hardware: rtx 4060 8g vram + ryzen 7 5700x + 32 gb ddr4 ram + 15 gb on NVME, following list of things:
Arch Linux + Polystrata (engine for AI model), + Inkling 2 mini Q3_K_XL quantization (~14gb in size) + mmproj file that comes with it for a vision.
Optionally, dockered version of searxng to allow AI agent browse internet trough it.
As a result, I'm capable of having the local AI agent, with 128k+ context, that I can connect into the Hermes, to have a really nice useful Ai! This exact same AI agent, had concluded a following numbers:
Measured on this box
5.4K prompt
• Prefill: 568 tok/s
• Decode: 28.4 tok/s
43.8K prompt
• Prefill: 628 tok/s
• Decode: 22.7 tok/s
133.4K prompt
• Prefill: 493 tok/s
• Decode: 15.8 tok/s
216.4K prompt
• Prefill: 254 tok/s
• Decode: 9.7 tok/s
Disk: ~14 GB for the model + ~1 GB for the engine/venv = ~15 GB total. /home at 98% — keep ~10 GiB free.
Honest caveats
- 256K is configured and loads, but 216K is the deepest verified run. For comfortable speed, use 128K or 192K.
- Decode slows as context fills — more experts leave VRAM and get computed on the CPU.
- Vision works on the CPU (~6.5 s for a small image).
- These numbers come from a real log, not a benchmark harness.In order to achieve +- same result below is attached a json config that uses my flags to run it + explanation to each flag. I personally highly advise to install opencode and ask some free cloud model to measure up your computer, and setup installation of engine, model, and whatever else that you need himself:
s{"exe": ".../engine-poly/strata-poly","args": [
"--model", ".../inkling/models/inkling-UD-Q3_K_XL/Inkling-2-Mini-UD-Q3_K_XL.gguf",
"--max-context", "262144",
"--expert-profile", ".../packs/inkling-ud-q3_k_xl/expert-profile.txt",
"--kv", "fp8",
"--vram-pool",
"--vram-reserve-mib", "256",
"--lock-experts",
"--prompt-cache", "6",
"--conversation-cache-mib", "auto",
"--loop-bf16",
"--window", "8",
"--threads", "8"],"port": 8081,"host": "127.0.0.1","reasoning_effort": "high","reasoning_budget_tokens": 6144,"sampling": { "temperature": 1.0, "top_p": 0.95 },"vision": {
"exe": ".../engine-poly/strata-vision",
"mmproj": ".../models/inkling-UD-Q3_K_XL/mmproj-F16.gguf",
"gpu": false,
"max_tokens": 300,
"threads": 8}}{"exe": ".../engine-poly/strata-poly","args": [
"--model", ".../inkling/models/inkling-UD-Q3_K_XL/Inkling-2-Mini-UD-Q3_K_XL.gguf",
"--max-context", "262144",
"--expert-profile", ".../packs/inkling-ud-q3_k_xl/expert-profile.txt",
"--kv", "fp8",
"--vram-pool",
"--vram-reserve-mib", "256",
"--lock-experts",
"--prompt-cache", "6",
"--conversation-cache-mib", "auto",
"--loop-bf16",
"--window", "8",
"--threads", "8"],"port": 8081,"host": "127.0.0.1","reasoning_effort": "high","reasoning_budget_tokens": 6144,"sampling": { "temperature": 1.0, "top_p": 0.95 },"vision": {
"exe": ".../engine-poly/strata-vision",
"mmproj": ".../models/inkling-UD-Q3_K_XL/mmproj-F16.gguf",
"gpu": false,
"max_tokens": 300,
"threads": 8}}Do note, that you don't have to use this config, and it's all can be a part of a big launch-script command!
Flags explained
- --max-context 262144 — 256K context window
- --kv fp8 — 8-bit KV cache (~16 KiB/token instead of ~32 KiB)
- --vram-pool + --vram-reserve-mib 256 — one shared VRAM pool; keep 256 MiB free for the desktop
- --lock-experts — pin RAM experts in locked memory (prevents paging out)
- --prompt-cache 6 — reuse prefix KV across turns
- --conversation-cache-mib auto — park conversation state in milliseconds
- --loop-bf16 — near-lossless bf16 loops
- --window 8 / --threads 8 — 8 physical cores, not SMT
Notably, the installer's defaults include two lossy speed flags — --attn-requant q5_k and --tail-skip 4 — which are deliberately not in the tuned config. They're faster but lower-quality. Only add them if you want speed over accuracy.
Hermes setup
In config.yaml:
- provider: custom
- base_url: http://127.0.0.1:8081/v1
- default: inkling-2-mini-ud-q3_k_xl
- context_length: 262144
What to adjust:
- Keep the system prompt lean (~4-6K tokens) — don't over-bloat the context.
- Use the search() + execute() pattern for skills — don't load all skills at once.
- Port 8081 is deliberate — 8080 belongs to Open WebUI.I hope that my post isn't too much of an AI slop, and I be happy to help anyone, any newbie and confused to setup the thing. I was bashing my head for far too long, couldn't find a really useful AI model that I can use. Sorry if it may sound sloppy, but the only these blocks been made by AI, which I think is OK use



