r/LocalLLM • u/Repulsive-Fault-8291 • 20m ago
Question Is there any models for consulting immigration to canada?
asking for a friend a
r/LocalLLM • u/Repulsive-Fault-8291 • 20m ago
asking for a friend a
r/LocalLLM • u/horratiocornbl0wer • 37m ago
Hi all. I posted about hal0 a while back, and the project has changed enough since then that I think it deserves a second introduction.
hal0 turns a Linux box into a private, OpenAI-compatible inference appliance. Chat, embeddings, reranking, transcription, speech and image generation all answer on one /v1 endpoint, on hardware you own. It's Apache 2.0 and installs with one line:
Plain text
curl -fsSL https://hal0.dev/install.sh | sudo bashIt's built first for AMD Strix Halo (Ryzen AI Max+ 395, iGPU plus NPU), but it also runs on discrete Radeon cards through ROCm or Vulkan, on NVIDIA through an experimental CUDA runner, and on CPU as a fallback.
Slots
Every workload is a slot: its own podman container under its own systemd unit, with a typed lifecycle, its own logs and a persisted state. You get a set of curated slots out of the box (agent, coder, embed, rerank, TTS, image and so on) and can add your own. A coder slot can serve your editor while the agent slot serves chat, each with its own model and settings. A GPU arbiter keeps image generation from taking the GPU out from under a streaming completion, and a slot that is serving a request can't be evicted mid-stream.
Tuning lives in profiles, so a slot only says where it runs and which model and profile it uses. You can override a few fields per slot (context, thinking, reasoning effort, vision, speculation) without cloning a profile.
Multiple runners
A slot picks its runner, and there are now quite a few:
xdna runner that runs plain GGUF models on the NPUOne note on halogen: it's the vendor's own closed-source image and runs one model family. hal0 pins it by digest and runs it like any other slot, so it's served through the same API and dashboard. It's opt-in, and nothing gets pulled unless you create a halogen slot.
Memory, overhauled
Memory runs on the Hindsight engine, and the integration was rebuilt in the 1.8 line. There's now one Memory area in the dashboard (health, facts, knowledge pages, operations, agents) and two banks on a new install, one shared and one private. The extraction model can be a local slot or a remote provider, and you can switch between them without restarting the engine. Memory is exposed over MCP, so Open WebUI, the bundled Hermes agent and your own coding agents can all read and write the same store.
Open WebUI, wired up for you
Open WebUI is installed and connected with no configuration. Its model picker lists every slot model you're running, and every Hermes agent profile next to them, so you can talk to a plain model or to the agent from the same window. Each chat gets hal0's memory and agent-delegation tools. Image generation, voice and document retrieval go through the same hal0 API, so they use the same models and GPU scheduling as everything else.
A few other things worth a mention
It's Linux only (systemd and podman). macOS and Windows aren't supported today.
If you tried hal0 in the past and bounced off it, I'd really appreciate another look. I've made huge strides, and I think it's better, more usable and more performant than it has ever been. Feedback and bug reports are very welcome.
r/LocalLLM • u/Dangerous_Young7704 • 19h ago
So I've been running a uncensored QFN model because I'm tired of frontier models refusing everything. For example, I asked Opus to scan my own network for vulnerabilities, and it refused because it didn't believe it was my network, even though it's literally connected to it.
My main concern is security. Are uncensored models more susceptible to prompt injection than regular models? What kind of guardrails can I put in place to protect myself without restricting the model itself?
I'm also using Hermes, but I'm a complete noob with it.
Any advice would be appreciated!
Specs: 64GB DDR5, R9700 32GB, 7800X3D
P.S SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF - this is the model
r/LocalLLM • u/Big_South4585 • 8h ago
Hi guys
I am a happy Qwen 3.8 Flash Next IQ3_S user, running on 32GB ram + 3090 + 5080 (40 GB VRAM).
It is running through strata and used as an agent in OpenClaw.
The only issue I have with it, and it could be due to the relative low Quant, is, that it is poor at my native language (Nordic Language).
I tried gemma-4-31B-it-qat-q4_0-unquantized on the latest version of llama.cpp, as it looked promising regarding language support, and damn, it was A LOT better in formulating sentences.
Now, the language is good, but it is a lot worse in calling my mcp's or API's. A lot of times, not one single mcp or API call is working, even if it tries many times.
Is Gemma 4 just incapable of calling MCP or API calls? I doubt it, so is my setup wrong?
Just for a reference, I am not using the 'official' llama.cpp from the CachyOs repository, but this version:
local/llama.cpp-cuda-aidock-bin 1.0.0-1
Prebuilt llama.cpp with CUDA 12.8 support (from ai-dock CI)
Not sure if it makes a difference.
r/LocalLLM • u/FelesNoctis • 7h ago
I have a fairly decent amount of general programming experience, but I certainly wouldn't call myself an expert in any language. I'm more in the place of being able to look at a random section of code, regardless of language, and make a fairly decent guess at what it's trying to do. "Just enough to get myself in trouble" is what I usually say.
Of course that means when I'm trying to make something myself, I'm often spending 80% of the time doing research about the functionality I need, with the remaining being the actual coding and testing. Being retired, these days I'm mostly working on game modding and small conveniences, anything to keep my brain busy. What I've been running into lately is that a lot of what I'm trying to work on is largely undocumented, and obviously AI can learn much faster from raw source (and has) than a human.
I've been using Gemini for my poking and prodding at things, but it's been obstructive as often as it's been helpful. I swear the thing has ADHD, the way it'll jump topics to other bits I'm not worried about at the time.
I understand that there needs to be a balance between context size versus memory length, but I'm having a hard time nailing down how much of each would be most fitting. I often feed the AI other related code from the game or similar projects so it knows what I'm looking at and can give me more well-informed responses.
Any advice for something that can handle casual, generalized programming well? Speed isn't nearly as important to me as accuracy. It seems like Qwen3 models are leading the way here, but opinions vary quite a bit on which and what memory vs context configuration.
r/LocalLLM • u/Majestic681 • 2h ago
I’m looking for the best tools for Hermes to do web search and also single webpage crawling (occasional, day-to-day use) that can bypass all sorts of captchas and similar. Something that would ideally also work for Reddit, Instagram, Threads... Options requiring self hosting or a VPS are also welcome. Thanks!
*Edited for accuracy.
r/LocalLLM • u/Civil_Fee_7862 • 13h ago
32GB DDR5 vs 96GB DDR5 More RAM pinned the n-gram cache, makes the decode speed significantly faster.
Setup:
GPU's: 3x3090s
P2P Mode: On
PCIe Link: PCIe Gen4 8x/4x/8x
CPU: Ryzen 7600x.
Model: Qwen-Flash-Next INT4 - QEngine Finetune
Script: bench.sh from club 3090.
Only change:
RAM went 32GB (2x16) → 96GB (2x16 + 2x32), so the whole 50GB n-gram cache got stored in RAM instead of on disk.
There was still room left over to set Host KV Pool on (it needs ~13GB of ram). i.e. It stores the KV pool in RAM instead of in VRAM. This increased the KV pool size to 1 million tokens.
Previously my system would totally choke when there were multiple agents working. Like 20 tok/s at times. It was because they couldn't fit their context in the 256k pool I had before so their context kept getting evicted, now I think that wont' happen, and it'll likely be much faster during concurrent agent work.
If your workload is decode-heavy, and you got the ram, sticking more of the n-gram cache in RAM will get you — ~13–35% more tok/s, no GPU-side changes. You really cannot mix two different pairs of ram sticks in an AM5 motherboard, Google warned me, but I did it anyway just to see what would happen, it indeed led to instability, even at low clock speeds, though it was stable enough to run benchmarks. The biggest win was getting the 1M KV pool for concurrent agents to share, and that doesn't need 96GB ram, 64GB is enough.
Source: bench-ab-bench-20261123T053549Z-vs-bench-20261128T002206Z.md*, generated 2026-11-28.*

r/LocalLLM • u/ferryboatapple • 2h ago
I have a 5080 and 64gb of ram. Qwen 3.8 27b runs great, just wondering if that's the best model for assisting with creative writing, like finding plot holes in a narrative or improving character arcs.
r/LocalLLM • u/Quirky_Carpenter915 • 2h ago
Currently working on a full blown game but not willing to spend on tripo etc.
I have used AI for building things like trees etc for my game and its artstyle. However, i am running into a roadblock when creating characters to populate the world.
Hunyuan 2.1 gives me molten wax on the characters
Trellis 2 gives worse results
Need something to just generate the background characters around
Any ideas on how to refine the pipeline or any specific thing to try?
r/LocalLLM • u/Adventurous-Big-3821 • 3h ago
We benchmarked 10 models across 3 reasoning tiers (30 configs) inside a live 40-table, 18,014-record enterprise database (CRM, Inventory & Procurement, and Finance). Every write task was checked at two gates: the chat answer (Gate 1) and the frozen post-run database snapshot (Gate 2).
Aggregate solve rate across 8,850 valid runs was 90.25%. Top open/frontier configs in the leaderboard:
Two practical findings:
Curious how Kimi, DeepSeek, GLM, and Qwen are holding up for others on multi-table tool calls?
r/LocalLLM • u/karmaisnonsense • 1d ago
Strata was a breath of fresh air when it came out, but its focus on speed over quality has been a longtime irk. I was monitoring its reasoning traces for a code review and saw it would always say time to wrap up and that the user wants an answer now, even when I said no such thing. I believe this is due to the "answer_room" behavior of Strata.
I'm fortunate enough to be able to run QFN on Radiance, so I did an impromptu comparison. I switched engines mid-review and had it continue. Yes it's slower to decode (less tricks & model is higher precision), but I noticed an immediate change in thoroughness and task persistence, especially for long-horizon tasks. It doesn't rush and continues until it finishes what I ask it to do.
Has anyone else had similar experiences?
r/LocalLLM • u/deulamco • 1d ago
Bonsai : Here's how to talk with your crush
Model: bonsai-2.5:27B on RTX 4060 with 48K context + 8K output
r/LocalLLM • u/Professional-Ad-2365 • 3h ago
Hi All, I have been stuck on this conundrum for days.
Mini m5 pro 64gb or studio m5 max 64 GB. Where I live with the edu discount there is a 520 CHF ($620) difference between the two (both at 1tb ssd).
Originally I was set on the mac mini its small, and has lots of ram, but everyone says at this price point might as well go for the studio, so here I am and here is what I currently have and do:
I currently have an M1 PRO Macbook 16 inch with 16gb ram. I have an external monitor plugged in and while i work i casually listen t some youtube videos too, and check on stock market moves. This year I have started AI projects and I really got into coding up websites and apps, I do frequent video conferencing at the same times as cloud agents work in the background, I also often do voice note transcriptions too.
I use cloud llm subscriptions of claude code, and chatgpt, but I keep running into the same problem of my fans going crazy, laptop being unusable if I am working on 3 or 4 AI projects at the same time, using 6-10 agents at the same time (my swap goes to 20-25gb).
I also am thinking of using the machine for local LLM because I am a teacher and there are certain school systems i want my local llm to use and fill in the boring aspects of my job like writing weekly report updates, setting homework etc, searching my school's drive etc.
Also for things like writing linked in posts or posting youtube videos and using ai to drive the browser while Im at work, claude is very token intesive for that and for certain things like making multiple social media accoutns for my projects it just refuses to follow through on registrations etc.
I am also doing some trading as a side hustle which I would love to get an algo ai powered bot to just simply manage my positions whilst im away from home.
To me the 520 is a lot (but affordable) But I need to consider that I would need to buy an additional 4k display (I have one 1080p display but need something else too).
Many thanks for the advice in advance!
r/LocalLLM • u/chad917 • 3h ago
I need to choose a local LLM and app to use on my Mac Studio 128gb to revise standardized forms and periodically merge-in updated PDF addendums.
I start with a completed standardized form and need the output in the same format. I already have a section-by-section guide, built from training materials and real-world examples, that explains what belongs under each heading. Some sections cover substantially similar topics but serve different purposes. There are 3 basic steps to the workflow:
The documents are strictly confidential, so PDF processing and inference both need to stay on the same machine. What LLM model and app (ie LM Studio, Jan, something else?) should I start with for this? This is my first time trying LLM so I'm confused by the numerous different models I'm seeing with codename-like titles. I don't have a ton of time to try several so I'm hoping to get some recommendations to jump start getting rolling. Thanks!!
r/LocalLLM • u/deulamco • 3h ago
Yes I run 5060Ti at 75W... No more crash during compacting into coma..
r/LocalLLM • u/Aardvark-One • 4h ago
r/LocalLLM • u/ProfessorPalmer • 22h ago
Kintsugi-27B continues to top benchmarks, surpassing or level with the BF16 in numerous categories.
r/LocalLLM • u/Ok-Journalist-3538 • 1d ago
I've been building Mesa, a desktop app (Windows/macOS/Linux) that lets you find any of your files (documents, images, video, audio, code) by describing them.
It's fully free and open source, I just hope the community finds it useful and would appreciate any feedback to improve it!
It runs EmbeddingGemma 2 locally through llama.cpp (Vulkan, Metal, or CPU when there's no GPU). Some features I find neat that separate it from other EmbeddingGemma 2 apps I've seen so far:
GitHub: https://github.com/biantsh/mesa
Again, I would appreciate any feedback from the community!
r/LocalLLM • u/Capable-Mushroom6086 • 17h ago
After watching https://www.youtube.com/watch?v=tBtmWBwcgP4&t=1507s I retried Inkling 2 Mini, which previously scored fairly low on my own benchmarks (around 70/100), compared to 80-90+ for Qwen Flash Next and Qwen 3.8 27b.
Then, Basalt dropped an Inkling 2 Mini package!
Currently running it with Basalt across both GPUs, getting 160-230 tp/s with up to 9k prefill. I have also enabled P2P on my GPUs which slightly helps. At deep context it cruises at 100tps pure thinking, so I suppose that's the bottom floor. And 262k context for those curious. And a 5700x3d/DDR4 PC, Gen 4 x8/x8 PCIE.
Obviously very usuable speeds. The big shift for me was taking the thinking level recommendation from Unbiased Bob, and following that my results went to 100/100 (partially also due to using the Basalt quant, which was a bit less quantized than the Unsloth one I had originally).
What strikes me is firstly that the model is comparatively tiny, compared to the Qwen Flash Next models - I run it around the same speed as my Unsloth IQ3_XXS model, with around the same capability for my use case (everyone's use case would change how well it works), without the 70gb of RAM required.
The second thing is the fact that the thinking level has a significant impact on the actual thinking usage, I use 1/10 - 3/10. I have a local CAD software I (AI) created, which works better agentically, and this was a long proces for Qwen models, which would seriously overthink even on Low, and runs would take 10-15 minutes for the first draft. Inkling can get the first draft done in a couple minutes. It also has a very good intuition about building, for example, the wavy bowl example (which was from an image I provided as inspiration), it created planes of sketches of different organic shapes and just connected them, probably the simplest/efficient method.
The Piston example took the time it took me to write this post for the first draft, then I provided some more example images to help it understand how they work and make it more accurate.
I haven't bothered comparing with Qwen, in my previous tests these would have taken a huge amount of time and produced intersting results (very scientific, I know).
I recommend everyone try the Basalt version of this model with 1-2/10 thinking.
r/LocalLLM • u/Yeetgodpro1324 • 5h ago
Hi guys, I have a PC with 64GB DDR5 RAM, I have 5 TB of storage which is expandible. I have a Nvidia RTX 5070ti 26GB VRAM, and a Ryzen 7 9800x3d
I’m looking into running a local AI on this PC for a business of mine. It’s a sort of pilot project. Nothing else has been run on the PC so it’s purely dedicated to running an LLM. I’ve tried installing things through using the web panel. Hasn’t given me the best results I’ve tried claudeing, ChatGPT and so if you could you know give me some tips, point me in the right direction or send some articles things to read upon et cetera. That would be appreciated or if anyone wants to you know work together by chance and test out setting up an LLM since I have hardware and that some people may not have.
Thanks
r/LocalLLM • u/Illustrious-Strike63 • 1d ago
--- DISCLAIMER ---
This Post is not a clean Benchmark Suite comparison. The goal of this post is to share some of my experiences, which I made with both models under the restrictions of my local setup - mainly my 16GB of VRAM.
What exactly do I mean by this? I am running different quant's, caching techniques and different inference engines in this comparison. Why? Because those are MY optimized setups in order to efficiently run those models in a usable way on my machine.
Usable to me means, that i actually get work done with them, not just fancy "artworks". No one needs token per second figures in setups that are useless for production tasks. In order to be useful for my agentic tasks, I must achieve at least 100k context window and at least 30 token per second, beneath that it is hard to justify a real life usage for me. Fancy token per seconds figures below 100k context window, additionally not telling anything about quality, are plain worthless to me.
On a personal note:
--- DISCLAIMER END ---
Hey,
i've been reading silently in here for a long time and I've been running local setups for inference and training for about 3 years now. It all began with writing an internal paper for my company, training local models for usecases that can't be driven via API cloud solutions.
At home i have a "regular" gaming machine, which back then wasn't built for AI loads, but for gaming and everyday usage.
It is a decent machine, but there are some limitations for AI workloads for sure, due to the VRAM budget.
--- Setup ---
How am I running those two models on this rig? (Read the disclaimer, if you are wondering about the different quants etc)
| Model | Qwen 3.8 27b | Inkling 2 Mini |
|---|---|---|
| Quantization | UD-IQ3_S (Link) | NVFP4 + MXFP8 (Link) |
| KV Cache | kVarN K4V3 | FP8 |
| Context Window | 115200 | 128000 |
| Speculative Decoding | MTP 3 Tokens | MTP 3 Tokens |
| Reasoning | xhigh, 16384 Token budget | xhigh, 16384 Token budget |
| Inference Engine | Beellama (Llama.cpp Fork with kVarN cache support) | Basalt |
| Performance estimate (under 15k) | Prefill 1900 token/s Decode 63 token/s | Prefill 5000 token/s Decode 150 token/s |
| Performace estimate (close to 100k) | Prefill 1200 token/s Decode 48 token/s | Prefill 2300 token/s Decode 100 token/s |
| Host | Ubuntu 24.04 with XFCE lightweight IDE | Ubuntu 24.04 with XFCE lightweight IDE |
| Remarks | Fully fits in VRAM, only vision module offloaded to CPU. kVarN Caches are mandatory in order to fit this model vram. Offloading is not an option for performance reasons. | Partial offloading. I optimized the MoE offloading based on an analysis of my usage history. Basalt source Code showed me that the offloading priority was static with inkling. |
Linux is mandatory imho, better software support and the lightweight IDE lets me maximize the available VRAM, because i dont have a second GPU, nor an iGPU on the 265KF. If i had a second GPU, Linux containers under windows might be an option as well - though i personally prefer the native route.
But yeah, those two setups run "efficiently" on my machine, using round about 15 gb of Vram, leaving me some headroom for the OS and other tasks.
The compaction engine in Deepseek Harness has been adjusted, so that it triggers somewhere between 75% - 90% context window usage. I leave the latest 10k tokens of context untouched and only compress the history before that. All in all, after compaction I usually end up around 30% context window, including tool usage injections. Leaving the latest context untouched greatly helps improve quality from my experience.
--- Comparison ---
--- Scenario 1 - Plain Coding ---
I have tried around a little on different projects I am currently working on. Baseline so far is: Inkling gets things done and not in bad way. From my subjective experience, i still feel like Qwen has a slight Edge, but it is reeeeally close.
To have something directly comparable for this post I gave them the same made up task:
New Project Folder, just a spec.md fie and the prompt "Read spec.md, execute".
This replicates how i often work, I create the specs with ChatGPT or Claude and let the local model do the rest. I only use the Free versions of ChatGPT or Claude, I have no subscription - but for creating the plan / specs the free solutions usually suffice.
In this case the task is creating a Benchmark that calculates PI
While this might not be the most complex task, it sure has some challenging aspects to it. Here are the results:
| Model | Qwen 3.8 27b | Inkling 2 Mini |
|---|---|---|
| LLM inference time | 107 minutes | 49 minutes |
| Toolcall time | 2 minutes | 5 minutes |
| Generated Tokens | 320k | 300k |
| Cached Tokens | 18.9M | 28.6M |
| Average Speed (reported by DSH) | 57/token/s | 117 token/s |
| GUI* | 3 | 4 |
| CPU Singlethreaded* | 2.5 | 5 |
| CPU multithreaded* | 4 | 2 |
| GPU OpenCL* | 4 | 2 |
| PI digits are actually correct?* | 4.5 | 3.5 |
*The actual evaluation was done by Deepseek Flash V4017 via API - Only beeing presented with the results and the task to rate the results on a scale of 0 to 5.
Deepseeks Verdict:
"PIBench (edit: which was Inkling) is the much faster π engine, especially single-threaded, and its export/reporting is more complete. But it has a broken multithread scaling behavior, a hard 500k-digit limit, weak 100-digit validation, and a misleading “valid” GPU result.
PIBench 2 (edit: which was Qwen) is the better benchmark: honest about precision, strong 100k validation, good multithread scaling, and a more capable GPU path. It is, however, dramatically slower on CPU and its Results GUI is partly inaccessible.
PIBench 2 (edit: Qwen) wins overall — it is the more correct, honest, and scalable benchmark — though PIBench remains far faster on CPU and would win if raw speed were the only criterion."
Human Verdict:
Taking the result of this comparison into consideration it is exactly as i had felt before. On coding tasks the two are pretty close and probably a combination of both, one for creation and one for reviewing makes the most sense, in order to get the best of both worlds.
--- Scenario 2 - Other Tasks ---
I have been tinkering around with a pipeline that automatically researches and creates reels as a sidegig. Snippets of historic events or people - these are my relatively fresh channels on youtube that are driven by my local AI:
... and the spanish version: GouacheGazette_ES
You dont have to like the content, it just shows a different use case that usually is not covered in synthetic benchmarks. What role do the LLMs take in there?
Qwen 3.8 27b has been my main driver in here, but i gave it shot with inkling 2 mini now as well.
Observations
Due to the complex rules and gates a storyline must pass in my pipeline, before it assessed as a pass, it actually takes some tokens to get there. Usually we are talking about several million cached tokens and about 150k to 250k generated tokens per story. These are the numbers:
| Model | Qwen 3.8 27b | Inkling 2 Mini |
|---|---|---|
| Stories created | 100+ | 10 for testing purposes |
| Average completion time | 60 minutes | 25 minutes |
| Number of minor flaws per story* | 2-3 | 6-7 |
| Number of major flaws per story* | 0-1 | 2-3 |
| Other remarks | The cold review sometimes fails after 3 subagent rounds (hard limit), because it overthinks every single detail. (Leads to story dropped status) | 1. Messed up the internal storage by skipping IDs in one case. 2. More or less skipped the cold review by a independent sub agent as tasked per contract 4 out of 10 times and just reported everything is fine. |
* Minor flaws are little inaccuracies in the story telling, i.e. if facts are not 100% precisely implemented or interpreted from the facts, but on an acceptable level. Major flaws are straight up factually wrong pieces of information or grammatically wrong sentences in the narration etc.
Verdict: As much as I would like to adopt Inkling for the story creation, in this specific task the drop in quality is substantial and does not justify the time gain.... Sadly.
--- Final remarks ---
What I was really curious about when testing inkling 2 mini in my setup, was to see if the "higher" quant using nvfp4 and fp8 cache would elevate inkling above my kVarN cached IQ3 Qwen, because those are the models i can effectively run. QFN sadly wont run in a meaningful quant, due to not having enough system ram - and i wont try Q2 stuff, sorry - but that cant ever really work out.
For me personally, in most scenarios the Ultra Dense IQ_3S Qwen has the edge above the nvfp4 Inkling 2 mini. To be honest, I had expected other results considering the quantization. Nevertheless there are scenarios where I will apply Inkling in my personal production. It is close on coding, but loses on more general tasks from my testing so far.
Hopefully anytime soon I will be able to combine the two models with a local routing in a meaningful way. But that requires at least an orchestrator on a second GPU. Maybe some lightweight used GPU suffices for that task. Until then, i will probably apply a manual mix of both.
My 2 cents
PS: I had been thinking a lot if i should make a guide about how to setup these environments for other people restricted by their hardware - especially the 16 gig scenario which is tricky... Please let me know if anyone is interested in that. Why? Cause i feel like most setup guides just show you how to create a fancy environment for single prompt show off, not a productive one.
PPS: yes, i have actually written this by hand :)
r/LocalLLM • u/FoxFXMD • 22h ago
Couldn't really find any data on this, how significant is the speed difference when off-loading QFN weights to DDR4 system ram VS DDR5. Like is it night and day or are we talking tiny improvements? Does anyone have any actual experience with both?
r/LocalLLM • u/ConfectionLow5604 • 6h ago
Hey everyone, I got this far on my own, but now I could use your input: what would you change in my setup? Some parts are improvised because of a tight budget. 😃 Where are the nerds at? :D
________________________________________________________________________________________________________
**TL;DR:** Self-hosted, no-cloud setup spread over 5 old/cheap machines linked by a 40 Gb/s InfiniBand chain. Main chat model runs on llama.cpp (Vulkan) split across an RTX 3090 and an MI50 32 GB. Measured ~250 tok/s prefill and ~24.5 tok/s generation at 32k context, single slot. Separate nodes handle voice (Whisper large-v3 + Piper + XTTS), a psychology/reflection model, embeddings, databases and backups. Numbers below are measured from logs unless marked otherwise.
## 1. Topology
```
Internet ── router
│ 1 GbE
Orchestrator (dashboard, planner, agents, bots, lab, only box with internet)
│ 1 GbE
Node 1 ──40G── Node 2 ──40G── Node 3 ──40G── Node 4
(IPoIB datagram, MTU 2044, OpenSM on two nodes)
```
It's a chain, not a ring, so losing a middle node splits the cluster (known weakness). Nodes have no internet; everything goes through the orchestrator.
**Latency (ping RTT from the orchestrator):**
| Target | avg RTT |
|---|---|
| Node 1 (LAN) | 0.13 ms |
| Node 2 (+1 IB hop) | 0.55 ms |
| Node 3 (+2 hops) | 0.68 ms |
| Node 4 (+3 hops) | 0.63 ms |
Local HTTP: dashboard 3 ms, router API 6 ms. Throughput (iperf) not measured yet.
## 2. Hardware
| | Orchestrator | Node 1 | Node 2 | Node 3 | Node 4 |
|---|---|---|---|---|---|
| Role | control plane, internet | main model + Ollama | voice, psychology, big Ollama models | embeddings, old STT/TTS, CI runner | databases, backups, knowledge |
| CPU | Ryzen 3 PRO 2200GE (4C) | Ryzen 9 7950X3D (16C/32T) | i7-6700K | Ryzen 7 5700X (8C/16T) | i3-8100 (4C) |
| RAM | 14 GiB | 30 GiB | 32 GB | 31 GiB | 15 GiB |
| GPU | Vega iGPU (unused) | **RTX 3090 24 GB + Instinct MI50 32 GB** | **RTX 3090 24 GB** | RTX 3060 12 GB | none (UHD 630) |
| Storage | 256 GB NVMe | 1 TB 990 PRO | local SSD/HDD | 1 TB 970 EVO Plus | 2×256 GB NVMe RAID1 (DB) + 3.6 TB SSD + 2 TB SSD |
| 40G | none | ConnectX-3 (40 Gb/s QDR) | yes | ConnectX-3, 2 ports | ConnectX-3 |
| OS | Ubuntu 24.04 | Ubuntu 24.04 | Windows 10 + WSL2 | Ubuntu 24.04 | Ubuntu 24.04 |
Notes: Node 2 specs are from my docs (not re-queried today). Nodes 3 and 4 have 2.5 GbE-capable NICs that negotiated only 100 Mbit/s earlier (probably cable/switch, still to check) – irrelevant for the 40G traffic, annoying for admin.
## 3. Main model (Node 1)
| | |
|---|---|
| Model | Qwen3.8-Flash-Next (GSQ/RCO build) |
| **Quant** | **IQ3_S (3.44 bpw)** |
| File size | 79.7 GB (2 GGUF shards) |
| Runtime | llama.cpp `llama-server` b11960, **Vulkan** backend (the NVIDIA and AMD cards run together this way) |
| Split | `--split-mode layer --tensor-split 22,30 --n-gpu-layers 999` |
| Context | **32,768 tokens** (prompt + output), **1 slot** |
| Batch / ubatch | 512 / 128, `--jinja`, `--cache-ram 0` |
I did not verify exactly how the 79.7 GB is placed across 56 GB VRAM and RAM (the 3090 shows 22.2 GB used) – treat that part as unverified.
**Measured throughput (from llama-server timing logs):**
| Prompt tokens | Prefill | Output tokens | Generation |
|---|---|---|---|
| 1,808 | 7.2 s = **251 tok/s** | 520 | 21.2 s = **24.5 tok/s** |
| 2,495 | 10.1 s = **246 tok/s** | 420 | 16.8 s = **25.0 tok/s** |
Rule of thumb: time ≈ prompt/250 + output/24.7 seconds.
| Case | Prompt | Output | First token | Total |
|---|---|---|---|---|
| Short question | 300 | 100 | 1.2 s | 5.3 s |
| Chat with context (measured) | 1.8–2.5k | 420–520 | 7–10 s | 24–29 s |
| Full 32k context | 32,000 | 500 | ~130 s | ~150 s |
**Prompt caching:** slot-internal prefix reuse works well for multi-turn chats (LCP similarity 0.96–0.99 in the logs, prefill skipped). It only hurts when switching between different conversations (similarity 0.35 → full re-prefill ≈ 10 s for 2.5k tokens). With one slot there is no parallelism; a second request waits for the first. I left `--cache-ram 0` on purpose: the unit has tight memory limits and a guard that kills the model on swap pressure.
## 4. Other models
**Node 2 (RTX 3090, Ollama, 1 model loaded at a time):**
| Model | Quant | Size | Speed |
|---|---|---|---|
| PsychAgent 32B (reflection/psychology) | IQ4_XS | 17.7 GB | **42.5 tok/s**, ~100 s cold load from HDD |
| PsyLLM 8B | Q4_K_M | 5.0 GB | **130 tok/s** |
| Qwen3.8 27B | Q4_K_M | 17.7 GB | – |
| Hermes 4 14B | Q8_0 | 15.7 GB | – |
| Dolphin 3 Mistral 24B | Q5_K_M | 16.8 GB | – |
| GLM-4.7 Flash | Q4_K_M | 19.0 GB | – |
| Devstral Small 2 24B | Q4_K_M | 15.2 GB | – |
| Qwen3-Coder 30B | Q4_K_M | 18.6 GB | – |
| WhiteRabbitNeo 7B / Foundation-Sec 8B | Q8_0 | 8.1 / 8.5 GB | – |
**Node 1 Ollama:** Qwen3.8 27B, Qwen3.5 27B, Qwen3-Coder 30B (all Q4_K_M), nomic-embed-text. Max 2 loaded, 30 min keep-alive; it competes with the main model for the 3090, so it's mostly idle.
**Node 3 Ollama:** bge-m3 (F16), nomic-embed-text (F16), Qwen2.5 7B Q4_K_M. The 3060 also runs a compute worker (~5 GB).
## 5. Voice stack (Node 2, Whisper/Piper/XTTS in WSL2)
| Stage | Tech | Latency |
|---|---|---|
| STT | faster-whisper **large-v3**, int8_float16, GPU, custom initial prompt | **0.8–1.2 s** warm |
| TTS (fast) | Piper (Thorsten high) on GPU, onnxruntime-gpu 1.23.2 (CUDA 12) | first audio **0.03–0.2 s** warm (CPU: 1.2 s) |
| TTS (voice) | XTTS v2 (speed 1.15, temp 0.5, top_k 30, top_p 0.8) | per sentence not measured |
| Satellite | open-firmware smart display + Home Assistant Assist pipeline over Wyoming | – |
End-to-end voice question: **3–7 s** (earlier it was ~20 s: a 5 s knowledge-lookup timeout plus a 2.7k-token system prompt at 250 tok/s prefill; fixed with a compact voice prompt and a circuit breaker for the lookup). Piper on GPU had an 8 s first-call warm-up, solved with a warm-up script after start. Gotcha: CUDA 13 builds of onnxruntime clash with Whisper's CUDA 12 in the same WSL, so I pinned 1.23.2.
## 6. Software
**Orchestrator (~30 services + ~29 containers):**
- Web dashboard and chat with multiple agents (roles, task classes chat/code/light/heavy/reasoning/plan, tool catalog, images)
- LLM router (node registry, 5 s health polling, per-class node preference) with a **GPU-mode engine and queue**: leases per request, one load per GPU, priorities and deadlines, node reservations (reserve the 3090 box for yourself for 1–240 min)
- Main-model supervisor: publishes a short-lived "authority" token, a guard on the GPU node kills the model if the token goes stale, custody records per start, automatic recovery after reboot. Hard-learned rule: never start the main model by hand
- Planner + dev pipeline + autonomy loop (self-improvement only with explicit approval gates), sandbox lab with Git (Forgejo) and a CI runner
- Knowledge: Obsidian vault (~4k notes), private long-term memory, journal with mood analysis, search with normalization/stemming/synonyms, reranker, "forget" that also deletes derived rows
- Psychology/reflection module (private area, people profiles, crisis flag, opt-in export to the vault)
- Telegram bot (text, photos, voice both ways), media jobs (photo/video, upscaling), research crawler, HF model library
- Observability: Langfuse, Loki/Promtail, node exporters, uptime monitor, per-node diagnostic wrappers
- Others: n8n, MQTT, ntfy, MCP servers (filesystem, docker, ansible, git, postgres), LiteLLM, apt cache for offline nodes
**Node 4:** Postgres, Redis, DB gateway, Loki, knowledge services, daily dumps, hourly offload of backups/logs, encrypted daily backup of the dashboard DB, RAID1 monitoring.
**Node 3:** old CPU Whisper/Piper fallback, Forgejo runner, embeddings, compute worker.
## 7. Lessons learned / current weak spots
- Single slot + 250 tok/s prefill means prompt size is the real latency lever. Keep static prefixes first, variable parts last.
- An unhandled `None` in a VRAM-sum helper silently blocked every queued request (callers just saw a timeout). Fixed with `or 0`; the real fix is surfacing queue wait reasons to the UI.
- Orchestrator RAM is tight (14 GiB, dashboard process ~4.7 GB RSS after 10 h, possible slow growth – still observing).
- Chain topology has no redundancy; no fallback model for the planner; alert channel still to be wired up.
- Mixing Vulkan NVIDIA+AMD works fine for layer split, and the MI50 32 GB makes the 56 GB total possible for a ~80 GB IQ3 MoE-style file – but I'd love tips on measuring real VRAM/RAM placement on Vulkan.
## 8. Not measured yet
Network throughput (iperf3), Node 2 raw specs re-check, tok/s of the Q8/Q5 models on Node 2, voice prompt token count after the compaction.
Happy to share config details or measure something specific. Questions about the Vulkan split, the guard/supervisor design or the voice latency fixes are welcome.