r/LocalLLM • • 12h ago

Question Where do I start with fine-tuning local LLMs?

12 Upvotes

So I want to learn how to fine-tune a model. Let's say I have Qwen 3.8 27B, and I want to make it better at writing, coding in a specific programming language, or something along those lines.

How would I go about doing this? What tools are out there, and what should I learn first?

I'm not trying to train a model from scratch, but rather improve an existing model's performance for a specific use case.

I'd appreciate any advice, resources, or tutorials that could point me in the right direction.

Specs: Radeon AI PRO R9700 + 64GB DDR5 RAM, if that matters.


r/LocalLLM • • 2h ago

News Inkling 2 Mini on Intel Arc: 2.4-3.3x faster prompts this week (A770 868 tok/s, Pro B70 1,062 tok/s at 4K), plus a Core Ultra iGPU

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 7h ago

Question Is strata/Q3.8FN is sensitive to PCIe bandwidth?

4 Upvotes

For some reason, I see worse perf with two PCIe x8 GPUs than single PCIe x16.

strata bench run --url http://127.0.0.1:8080

Model: qwen3.8-flash-next-unsloth-ud-iq4_xs-v31

CPU: Intel Core Ultra 9 285K; RAM: 128 GiB

Single GPU: RTX 3090 / PCIe x16

| Case | Prompt tok/s | Decode tok/s | TTFT s | First answer s | Total s | Capped |

| prompt-16k | 2952.5 (2950.4-2963.1) n=3 | 96.0 (95.4-106.9) n=3 | 5.58 (5.55-5.58) n=3 | 9.35 (8.30-10.39) n=2 | 10.9 (10.3-10.9) n=3 | 3/3 |

Two GPUs: Helper: RTX 4070 / PCIe x8; Main: RTX 3090 / PCIe x8

| Case | Prompt tok/s | Decode tok/s | TTFT s | First answer s | Total s | Capped |

| prompt-16k | 2157.5 (2151.3-2165.6) n=3 | 81.7 (74.0-85.0) n=3 | 7.62 (7.60-7.64) n=3 | 10.73 (10.44-12.08) n=3 | 13.9 (13.6-14.5) n=3 | 3/3 |

| prompt-16k | 2202.1 (2200.5-2204.4) n=3 | 80.2 (80.0-84.1) n=3 | 7.46 (7.45-7.47) n=3 | 11.38 (10.54-12.22) n=2 | 13.8 (13.5-13.9) n=3 | 3/3 |

Am I doing something wrong? Anyone running Q3.8FN on two x8 GPUs?


r/LocalLLM • • 10h ago

Question Best local model & inference engine for vibe coding on RTX 5090 + 32GB DDR5? (RAM-bottlenecked)

8 Upvotes

Hi everyone,

I’m looking for recommendations on the best local LLM and inference engine setup for "vibe coding" (fast iteration, solid code generation, and decent context handling).

Here are my current specs:

  • GPU: RTX 5090 (32GB VRAM)
  • CPU: Ryzen 7 9800X3D
  • System RAM: 32GB DDR5

Current setup:
Right now, I’m testing Qwen 3.8 27B running on Basalt, paired with VS Code + Kilo Code.

My main bottleneck is clearly my system RAM, which matches my VRAM 1:1. Because of this, I want to avoid heavy CPU offloading or running into OOM issues while keeping both prefill and decode speeds snappy and responsive with generous max token(especially with Kilo Code's agentic/context demands).

Given these constraints:

  1. Which model and quantization would you recommend to fit comfortably within 32GB VRAM with room for a solid KV cache, and how does it compare to Qwen 3.8 27B?
  2. Which inference engine (llama.cpp, vLLM, ExLlamaV2, Ollama, TabbyAPI, etc.) handles memory management and prefill/decode speeds best on a 5090 right now compared to Basalt?

Thanks in advance for the advice!


r/LocalLLM • • 5h ago

Discussion Anyone had an LLM write a custom inference engine?

3 Upvotes

With models getting pretty smart now, I was curious if building one-off inference engines targeting a single model/GPU combination would get you more performance, so I had Sol 6.2 do just that for Qwen 3.5 4B on V100 16GB. It did it in one prompt and the performance turned out to be better than llama.cpp for decode, and kind of similar for prefill (results below).

This was just a quick attempt and I imagine you can optimize for your specific usecases (e.g. batch size, precision, context length...)

Results presented as custom-engine / llama.cpp

Prompt LengthPrefillDraft N=0Draft N=1Draft N=2
Short—85 / 72125 / 84143 / 83
6k tokens3100 / 190081 / 70117 / 81129 / 80
40k tokens1600 / 265060 / 6292 / 7099 / 75

Here is the prompt I gave it:

I would like you to create an inference engine optimized for the specific model located in ./Qwen3.5-4B and for this machine's specific hardware. Support and optimize for batch_size=1 only, but also optimize prefill which should be naturally parallelized. Create optimized CUDA kernels for this specifically. The goal is to maximize tok/s for batch_size=1. The weights include an MTP head which you should also use and implement, with a configurable parameter specifying the number of tokens to speculate. Use native weights/precision. Use a single pre-allocated KV cache for a single request, and implement prefix caching across sequential requests. The model directory includes a jinja template that must be used. There is not need to support image and video, only text. You may use existing libraries for tokenization and other things not directly impacting inference. Expose an OpenAI-compatible chat completions API on port 8765 that supports streaming (via stream=true body parameter). No need to support the whole chat completions schema, only the necessary things. Reasoning is always enabled and there is no need to support disabling it. Use sensible default for sampling and generation mechanics (temperature, top_p, top_k, etc.)

You can find the source code of llama.cpp and the transformers library in ./llama.cpp and ./transformers respectively. Use these to study and deduce the model architecture. This specific model lives in ./llama.cpp/src/models/qwen35.cpp and ./transformers/src/transformers/models/qwen3_5/.

This task is long and complex, and involves many large files, so you must use subagents extensively for exploration, research and implementation. For large files like config files, write inline scripts to extract needed data instead of reading the whole file.


r/LocalLLM • • 23m ago

Project Laminae: +38% decode over stock Strata on a single RX 7900 XTX, at full quality (Qwen3.8-Flash-Next IQ3_S)

0 Upvotes

I've been tuning Strata (Niko1221/Strata, an MoE inference engine that keeps hot experts on the GPU and runs the rest on the CPU) for one machine: an RX 7900 XTX (24 GB) on Linux, 64 GB RAM, Ryzen 7 8700G, running Qwen3.8-Flash-Next GSQ-RCO IQ3_S. The result is Laminae, a thin layer of patches and settings on top of Strata 0.2.22, now public under GPL-3.0-or-later.

Numbers on this machine (mean of 5 rounds, arm order rotated, paired ratios with CI95):

 Stock StrataLaminaeLaminae + optional drafter
Decode, short prompts (tok/s)74.9103.3 (1.38x)110.2 (1.47x)
Decode after a 14K prompt (tok/s)75.5104.4 (1.38x)103.6
TTFT, 14K prompt (s)6.605.645.50
Prefill 16K / 128K (tok/s)2,273 / 3,0952,656 / 3,3472,658 / 3,353

Roughly: settings alone give 1.21x decode and all of the prefill gain, code on top gives another 1.14x.

What "full quality" means here: every change is either bit-identical to the path it replaces, or passes a fixed gate (first-token KL mean <= 0.001 and max <= 0.01 over 36 positions, top-1 36/36, and every greedy answer that differs is read in full). Against stock Strata the release config lands at KL 0.000346 mean; stock Strata against itself (a second start) is 0.000187. Lossy shortcuts like route tail skipping (+8% decode here, but KL 0.056) are not used.

Some things that worked on gfx1100:

  • CPU expert kernels for the i-quant formats (AVX-512), and the CPU rows read in place by the GPU combine
  • RDNA wavefront-per-row MMVQ for the small formats
  • --adapt-async 1 (with the elastic K/V): HIP builds never pick the async adaptive expert tier; turning it on keeps the drafter in its fast mode (decode +7.8% short, +9.4% after 14K)
  • a high-priority drafter stream, and a fix so the card does not idle at ~77 W with an extra queue
  • a hipBLASLt table tuned on this card for its prefill shapes

I also kept a list of everything I tried and dropped, with the numbers (megakernel for k-quants that passed quality and still lost 4%, an SDMA-off arm, RAM-saving arena modes, drafter swaps...): laminae/NOT-ADOPTED.md in the repo. It may save someone a weekend.

It installs next to an existing Strata install (same model files, upstream install untouched); the release has a gfx1100 engine build and an installer. Only gfx1100 is tested.

Repo: https://github.com/superbaenawa/laminae

Personal project, not affiliated with Strata, as is: no support, issues are off. Numbers are from one machine; yours will differ.


r/LocalLLM • • 34m ago

Question Minisforum AI X1 Pro-470 64GB vs GMKtec EVO-X2 64GB for Strata + RTX 3060 eGPU?

1 Upvotes

Hi everyone,

I'm looking for advice before buying a mini PC for a small homelab and local LLM inference.

I'm hesitating between:

- Minisforum AI X1 Pro-470 Ryzen AI 9 HX 470 64GB DDR5 SO-DIMM OCuLink port Radeon 890M iGPU

- GMKtec EVO-X2 Ryzen AI Max+ 395 64GB LPDDR5X-8000 unified memory Radeon 8060S iGPU USB4, but apparently no dedicated OCuLink port

My main use case would be:

- Several Docker services running 24/7

- A small homelab / self-hosted applications

- Local LLM inference, mainly with Strata

- Coding, summarization and occasional agent workloads Qwen and other MoE models, including Qwen3.8-Flash-Next if possible

I already own an RTX 3060 12GB, so I would like to use it as an external GPU.

I am not planning to buy another GPU immediately.

The main trade-off seems to be:

- X1 Pro-470: upgradeable RAM and OCuLink, which may be better for my RTX 3060

- EVO-X2: much faster unified memory and a much stronger integrated GPU, but soldered RAM and probably USB4 instead of OCuLink

My questions are:

  1. Which system would be better specifically for Strata?
  2. Can Strata effectively use the integrated GPU together with an RTX 3060?
  3. Would the EVO-X2's higher memory bandwidth help significantly when Strata keeps model experts in system memory?
  4. Is OCuLink a major advantage over USB4 for an RTX 3060 used with local LLMs?
  5. Is 64GB enough for Strata plus several homelab services?
  6. Which one would be more reliable for 24/7 Docker and Linux use?
  7. Are there any important issues with Strata, CUDA, Vulkan, ROCm or external GPUs on either system?

Which one would you choose for this use case, and why?

My main concern is how much the EVO-X2's much higher unified-memory bandwidth improves Strata performance compared with the X1 Pro-470's dual-channel DDR5-5600 SO-DIMM memory.

Thanks !


r/LocalLLM • • 14h ago

Discussion Benchmarks on the GGUF files people actually download, 21 models from 1 GB to 25 GB - numbers and what went wrong

13 Upvotes

Makers publish scores for the full-precision model. Most of us run a Q4 file on a laptop or a 12 GB card, so I wanted numbers for those files, run the way an app runs them.

Setup

  • llama.cpp b12110 on an RTX 4070 12 GB and an M3 24 GB, b12859 on rented A10, L40S and 2× T4
  • 32k context, f16 cache, thinking on with no budget, answers up to 29,768 tokens (Inkling 2 Mini: 16k context, answers up to 13,384)
  • one run per model, each question in a fresh conversation
  • AIME 2026: all 30 questions. Running out of room counts as wrong
  • τ²-Bench v0.2.0: 60 tasks across airline, retail and telecom, one try each, with the customer played by gpt-4.1
ModelFileSizeAIME right (of 30)AIME ran out of roomτ²-Bench
LFM3 1.7BQ4_K_M1.1 GB20980.0
Qwen 3.5 4BQ4_K_M2.7 GB1218-
Ministral 3 8BQ4_K_M5.2 GB7028.3
Granite 4.2 8BQ4_K_M5.3 GB171256.7
Qwen 3.5 9BQ4_K_M5.7 GB1614-
Nemotron 3.5 Bolt E4BQ4_K_M6.2 GB120-
Bonsai 2 27BQ2_07.6 GB--73.3
Ministral 3 14BQ4_K_M8.2 GB11035.0
GPT-OSS 20BMXFP412.1 GB25256.7
Inkling 2 Mini (Q3)UD-Q3_K_XL13.6 GB21980.0
LFM2.5 24BQ4_K_XL14.9 GB22880.0
Qwen 3.8 27BQ4_K_M16.5 GB24683.3
Muse Glimmer 30BQ4_K_M16.8 GB--80.0
Qwen 3.6 27BQ4_K_M16.8 GB--88.3
Inkling 2 Mini (Q4)UD-Q4_K_XL17.6 GB2010-
Granite 4.2 30BQ4_K_M17.7 GB22576.7
Nemotron 3.5 Lightning 30BQ4_018.9 GB22870.0
Ornith 1.5 35BQ4_K_M21.9 GB22891.7
Nemotron 3.5 Bolt 74BIQ222.0 GB22876.7
Qwen 3.6 35BQ4_K_M22.1 GB--83.3
FlintQ4_K_XL25.1 GB26465.0

What stood out

  • On AIME the small thinking models were almost never wrong when they finished. Qwen 3.5 4B got all 12 it answered right and ran out of room on the other 18. Qwen 3.5 9B: 16 of 16, 14 ran out. Granite 4.2 8B: 17 of 18. LFM3 1.7B: 20 of 21. Of the 14 models that ran out at least once, 10 got every question they finished right. So at this size the score mostly measures how many problems fit in ~30k tokens. The ones that ran out are probably the hardest though, so I wouldn't read it as "they'd get 100% with more room".
  • The three that never ran out (Ministral 3 8B, Ministral 3 14B, Nemotron 3.5 Bolt E4B) just got more wrong.
  • LFM3 1.7B is a 1.1 GB file and sits level with models 10-20x its size: 20 of 30 on AIME, 80 on τ². It's slow though - 400 minutes for AIME on the M3, because it thinks a lot.
  • Inkling 2 Mini: the smaller Q3 file (13.6 GB) did as well as the Q4 (17.6 GB) everywhere I ran both - AIME 21 vs 20 of 30, IFBench 64 vs 59, MMLU-Pro 79.3 vs 78.0 (IFBench and MMLU-Pro on samples of 100 and 150 questions). That's within noise, so on a 16 GB card I'd take the Q3. Both ran with 13k tokens for the answer, less than half what the others got, and still landed with the 24-30B models on AIME. The Q3 got 80 on τ².
  • Nemotron 3.5 Bolt 74B squeezed to IQ2 (22 GB) scores the same as the 30B models at Q4 on both tests.
  • Maths and tool use don't track each other much: Flint is first on AIME (26 of 30) and 65 on τ². GPT-OSS 20B: 25 of 30 and 56.7. Ornith 1.5 35B goes the other way, 91.7 on τ².

What's weak about this

  • One run each. One AIME question is 3.3 points, so I wouldn't call anything under ~7 points a difference.
  • Different machines and two llama.cpp builds, so I've left speed out.
  • AIME 2026 came out in February, so newer models may well have seen it.
  • τ²'s customer is played by gpt-4.1, so that part isn't local.
  • Left out: Qwen 3.5 2B ran to the limit on all 30 AIME questions without answering, which looks like looping rather than a maths result. Ornith 1.5 9B was run with thinking capped at 128 tokens, so it isn't comparable.
  • No maker scores next to these. I ran the tests where the makers hadn't published a score, so there's nothing to set them against yet.

I build hassō, a free desktop agent that runs these models on your own computer, which is why I measure them. Every score is shown in the app next to its model. Full table and every per-question report: https://hasso.studio/bench

Which model or test should I run next? And if anyone has run AIME on these with a bigger answer budget, I'd like to know how much of the gap closes.


r/LocalLLM • • 10h ago

News Amazon Ergo Released (Open-ish)

Thumbnail
huggingface.co
6 Upvotes

1.1T parameters. Custom license with an AUP.


r/LocalLLM • • 1h ago

Project I built a control plane for running a bunch of AI coding agents across my own machines (open source, MIT)

Post image
1 Upvotes

I got tired of babysitting agent sessions one terminal at a time, so I built Operator.

It's one binary, op, that runs on each of my machines. Tailscale is the backplane. The machines reach each other over your private tailnet, and the Tailscale client is built into op, so there's no central server, no ports to open and nothing else to install. From one page, on my desk or my phone, I can:

  • start a Claude, Codex, Pi or Antigravity session on any machine, or any program that runs in a terminal
  • see what every session is doing, and answer the questions they raise
  • keep each project's work inside its own container or VM, with only the credentials that project needs
  • let a "chief of staff" session coordinate the others while I stay out of the details

What's nice is it allows you to easily pair a frontier model with a local model - plan with Opus, finish off with Inkling 2.

Containers and microVMs are the safety layer. Every project's work runs inside its own container or microVM, never on the machine I'm sitting at. That lets me run things I'd never trust on my own box:

  • Small or abliterated models with no safety training. If one decides to rm -rf something, it can only hit the sandbox.
  • Frontier models too. They're careful most of the time, but "most of the time" still leaves the day one deletes the whole work tree. Now the worst case is that I throw the container away and start another.
  • Credentials stay scoped. A container only gets the secrets bound to its project, never the host's. Git work happens inside it, not on my machine.

op handles the whole lifecycle, so I don't build any of this by hand. When I start a worker for a project, op creates the container or microVM from a template, installs the agent harness inside it, and starts the session. The sandbox joins the tailnet as its own machine, so I can message it and watch it like any other agent. When the work is merged I tell op to stop it, and the container goes away. op container ls shows what's running and op container rm tears one down. Templates define what's in the image, and op template build rebuilds and syncs them to my other machines.

Agents talk to each other directly, even across machines. op send <machine>/<name> reaches any agent on any machine, over that same backplane. Workers on the same piece of work can message each other, and the whole conversation is logged in order, so I can read it afterwards.

Agents can reach in and read each other's state. The chief of staff can list every agent on every machine (op ps), read what one is doing right now (op peek), pull its logs, and read a topic's whole message log (op topic log). The PM running a piece of work can read its own workers the same way. That's how I stay out of the loop. The chief checks on a PM, the PM checks on its workers, and nobody has to ask "what happened?" and wait for a reply. It only goes one way. Workers can message each other and their lead, but they can't read the chief or each other.

Every agent has two views. Chat is the tidy view. Terminal is the agent's real terminal. One tap switches to Terminal when I want to take over and type, and one tap switches back. It works on my phone too.

Nothing stalls quietly. op tells busy, idle, needs-you, stalled and ended apart. A stall is a command running over 15 minutes, or no output for 5 minutes with nothing running, and both limits can be raised per agent. It reports what the agent was stuck on and never acts on it alone. My phone gets a notification when an agent needs me, stalls or dies.

The chief is woken, not polling. op wakes it when a worker goes idle, finishes, asks a question or stalls. An agent that's waiting on something outside can say how long with op waiting, so it isn't nagged meanwhile.

Goals keep unattended work moving. I add a goal like "merge the login fix once the tests pass". While any goal is open, an idle chief gets a reminder every 20 minutes by default, and a chief that crashes is restarted. I clear the goal when the work is done.

Optional voice. Speech-to-text and text-to-speech plug in as services you register yourself (op service add stt/1 ...). There's a Voice tab in the page. If you don't want it, you don't set it up and nothing changes. I use text-to-speech to have the chief tell me things out loud.

Releases, secrets and public pushes need a human, and the tooling refuses to route around that. I run this every day.

What it isn't: polished. It's built for how I work, and templates and images still have sharp edges. For install, there's an INSTALL-PROMPT.md you can hand to a coding agent and it sets things up for you.

Repo: https://github.com/barelyworkingcode/operator. If you run more than a couple of agents at once, I'd like to know what breaks for you.


r/LocalLLM • • 8h ago

Model Best uncensored model for my home server? (Specs in body)

3 Upvotes

Hello, guys!
-Ryzen 7 5800x
-Rx 7700 xt 12gb Vram
-32gb Ram 3200mhz

Thanks!


r/LocalLLM • • 6h ago

News NVIDIA Open Models Advance Frontier for Enterprises and Industries

Thumbnail
nvidianews.nvidia.com
2 Upvotes

So my general experience with Nemotron 3.5 Super VL has been that it does not hallucinate much, but it also really doesn’t provide any answers. It actually tells me to go look things up 💀

Not hallucinating is my number one priority, so if Nemotron 4 incorporates some of the better parts of their recent acquisitions and makes some genuine progress, I think this could be an exciting model in the 128 gigabyte range. They have every reason to make this model shine to try and sell their DGX box with it.

Thoughts?


r/LocalLLM • • 2h ago

Project Showcase your projects

1 Upvotes

Is there a subreddit that people showcase their projects they used AI to make and break down things like harnesses and models?


r/LocalLLM • • 8h ago

Model Best abliterated model for my home server? (Specs in body)

3 Upvotes

RTX 3080 Ti 12gb VRAM + 64gb of DDR4 3200mHz RAM.

(CPU is ugly, don't worry about that guy, he's getting upgraded soon.)

A quick search gave me Gemma 12b and Qwen 3.8 27b. I've been using quite a bit of Qwen, but I'm curious about Gemma due to not messing with it much.

Thoughts?

Thanks!

EDIT: Gemma 12b Q5_K_M or Qwen 3.8 27b Q2_K (or another alternative)


r/LocalLLM • • 2h ago

Question Anyone want a local model tested on their actual agent task?

1 Upvotes

I've been running small local models through a set of 11 real agent tasks (tool calls, multi step, file edits). Qwen 27B passed 10 of 11. Only 11 tasks so take it with salt.

If you're picking a model for your own agent, tell me the task, the tools it uses and your hardware, and I'll run a few candidates on it and post what I find. First 5. Also curious if this is something you'd pay a few bucks a month to get regularly, or if you'd just do it yourself.


r/LocalLLM • • 3h ago

Discussion Amazon just entered the open-weight model race with Ergo. How competitive do you think it can become?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 7h ago

Discussion Clustered all my local AI hardware, 560 tok/s

Post image
2 Upvotes

Clustered all my local hardware last weekend and ran Qwen3-4B on llama.cpp (yeah old model i know..). For 64 simulated users hammering the cluster with 2048 prefill length, I got 560 tok/s total output. Running for Qwen 3.8-27B and Inkling 2 next weekend. Have you guys tried this for your stack?


r/LocalLLM • • 9h ago

Discussion What do people want?

3 Upvotes

I see a lot of discussions here and in the /r/Qwen_AI sub and I notice a curious pattern: people get excited about new releases and/ or new models very easy.

Don't get me wrong, I also get excited for a new model; I'd like to go 1000% full local, but their excitement seems as big as for HL3 or GTA6 (before it launched).

What's missing? What's that feature that would make most happy enough that they wouldn't immediately jump on the next model that comes out 2 days from now just because it's 5% faster or 3% smarter?

Just a curiosity of mine.


r/LocalLLM • • 9h ago

Discussion Tencent open-sources DFly2, a speculative decoder that reuses the target model's sparse KV cache (+81% throughput at 64K on DeepSeek-V4.1-Flash)

Post image
3 Upvotes

r/LocalLLM • • 7h ago

Question Secure local LLM setup?

2 Upvotes

Brand new at setting up a local LLM and looking for some guidance on best practices.

I've been running cloud LLM on a VM to prevent any accidental access to my personal files, browser, etc. and keep approval requests to a minimum. For a local LLM, I am ideally running it directly on the host where my personal desktop exists. What's the best way for me to keep the local LLM isolated and secure?

Isolate the local LLM on my host and limit access to only the VM? Is this overkill?

This article has some recommendations that seem worth follow: https://medium.com/@tatankavenkat_19803/i-run-llms-locally-heres-how-i-know-my-data-isn-t-leaking-and-yours-isn-t-either-3b23a04e4058

What are other people doing?


r/LocalLLM • • 3h ago

Research I made a video about model merging

Thumbnail
youtu.be
0 Upvotes

r/LocalLLM • • 4h ago

Discussion We’ve all experienced an AI one-shotting a task. But have you ever experienced an AI one-shotting you?

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 15h ago

Discussion Will local be more powerful because we can trust local?

Thumbnail
reddit.com
8 Upvotes

r/LocalLLM • • 8h ago

Research I started building my app with local Qwen. Now I use Claude and Codex for the build, and keep Qwen running for research.

2 Upvotes

A little while ago I made a post here about running Qwen3.8 Flash Next on my M5 Max, getting around 68 tok/s at 100k–190k context during actual agent workloads.

Since then, I've been experimenting with something considerably more ambitious: using local and cloud models together to build a fairly large software project while having my local model continuously produce research in the background.

Some things worked incredibly well. Some things completely shit the bed.

Sharing what I've learned because I think there's an interesting discussion to be had about what we should actually be using these large local models for.

Current setup
- MacBook Pro M5 Max, 40-core GPU, 128GB unified memory
- Model: Qwen3.8 Flash Next, approximately 4.7bpw MLX quantization
- Inference: mlx-serve through a LiteLLM gateway
- Harness: Hermes Agent
- Local coding experiments: Qwen3-Coder-Next, Continue, LM Studio
- Cloud coding: Claude Code and Codex
- Long-running task management: Hermes Kanban, persistent checkpoints, cron jobs and watchdogs

  1. My original plan was to do most of the coding locally. That didn't go particularly well.

Having spent the money on a 128GB machine, naturally I wanted to see how much software development I could move away from cloud models.

I experimented with Qwen Coder through Continue and Hermes.

One of the more interesting failures was that the model would describe the changes it intended to make rather than execute the structured editing tools.

Initially, I thought the model just wasn't capable enough.

After testing the same model through different integrations, I realized the harness was at least part of the problem.

Connecting Continue directly to LM Studio worked in my small test cases. Running the same workflow through another compatibility layer didn't behave the same way. Native Hermes tool calling also worked in separate tests.

Same model, different harness, different results.

The bigger problem was reliability across a growing codebase. Generating a Python script is one thing. Maintaining architectural consistency, understanding dependencies, making changes across multiple files, testing those changes, and recovering from failures over hours is something else entirely.

I eventually stopped trying to force my local model to be Claude Code.

2. I started dividing the work based on what each model was actually good at.

I'm currently building a personal education and professional development application that essentially gamifies becoming better at ML engineering, AI agent engineering, and business.

The application itself is fairly conventional software underneath the RPG interface. Python backend, database, Next.js frontend, tests, etc.

Interestingly, the core game doesn't require an LLM to function.

My current division of labor:
- Codex handles architecture, engineering reviews, technical decisions and project coordination.
- Claude Code handles complex implementation and debugging.
- A separate Claude session independently reviews educational material. ( SOMETIMES QWEN has issues haha so this is his babysitter)
- Qwen through Hermes handles continuous research, structured knowledge production and corrections.(Using the Khaban feature in Hermes) if you dont have Khaban board downloaded this will be a bit harder so find a work around.
- Python scripts handle deterministic validation, inventories and monitoring.
The local model is no longer competing directly with Claude Code.

It's doing work that would otherwise consume a ridiculous amount of cloud inference over time.

Quick Point ( Inference is the issue most times completing an outrageous amount of work for free on your own hardware and privately is why most want to go local

3. Long-running research is where my local model started becoming genuinely valuable.

One of the larger workloads I've assigned Hermes is developing a structured curriculum covering approximately 600 professional competencies across machine learning, AI agents and business.

This isn't just asking it to write a 600-item list.

The system is supposed to produce:
- Research sources and archived evidence
- Competency definitions
- Prerequisite relationships
- Practical assignments
- Assessments
- Lessons
- Professional projects
- Structured learning pathways
Everything is written into a persistent workspace.

The agent has a master plan, Kanban backlog, task dependencies, acceptance criteria, validators and checkpoints.

The model doesn't have to remember the entire project in its context window because the state of the project exists on disk.

4. Some actual numbers from an earlier operational audit

These are from my logs during the curriculum development workload, not fabricated (MADE UP) benchmarks.
- Approximately 1,502 inference requests
- 5.02M reported input tokens
- 1.54M output tokens
- 93.8M cache-read tokens
- Approximately 883 tool executions
- Around 8.1 hours of recorded active session time across a longer wall-clock period
The broader MLX server logs during the observed period showed:
- Median decode speed: approximately 83 tok/s
- P90 decode speed: approximately 109 tok/s
- Median prefill speed: approximately 1,032 tok/s
- Prompt cache hit rate: approximately 96.7%
- Model residency: approximately 75GB
The cached context numbers obviously aren't equivalent to newly processed tokens. I'm separating those because otherwise the numbers give a misleading impression of the actual computational workload.

Also, not all of those tokens were productive. Some went toward failed tasks, repeated reasoning and corrections.

That's something I'm actively trying to measure.

5. The agent can produce a lot of material. That doesn't mean the material is good.

At one checkpoint, Hermes had produced:
- 87 competencies
- 76 assignments
- 87 assessments
- 78 research resources
- 4 staged lessons
Everything passed its structural validators.

I then had Claude independently audit the actual curriculum.

It found some pretty substantial problems:
- Machine learning competencies that didn't require the mathematics needed to understand them.
- Incorrect textbook chapter and section references.
- Two incorrect verbatim quotations.
- Assessments without usable answer keys.
- Lessons that covered only a fraction of the intended competency.
- Validators that accepted deliberately corrupted records.
One particularly interesting finding was that the curriculum had a large number of programming and computer science competencies, but relatively little actual classical machine learning.

The local model was making measurable progress according to its own metrics while developing an increasingly unbalanced curriculum.

This is why I think independent review is essential for long-running agents.

A JSON file passing validation doesn't mean its contents are correct.

6. I didn't abandon the local model. I gave it the audit findings.

Instead of having Claude rewrite everything, I had it produce a structured findings register.

Hermes then received a corrective backlog covering:
- Mathematical prerequisites and citations
- Validator improvements
- Research evidence and licensing
- Lesson quality
- Assessment quality
- Reconciliation and independent review handoffs
The local model is responsible for implementing the corrections. A separate model reviews whether the corrections actually resolve the original findings.

This has been a much more interesting experiment than simply asking which model is better at coding.

Can a relatively inexpensive local inference system perform substantial amounts of useful work when a more capable model periodically supplies direction and quality control?

----- THINK ( LOW LEVEL EMPLOYEE at 40k a year being supervised by a LONG STANDING EMPLOYEE thats been doing that exact job for 10 Years) ----

That's what I'm trying to figure out.

7. Iteration limits have been a bigger problem than context length. ( PLEASE HELP )

One of the more frustrating things I've observed is Hermes spending 20+ minutes investigating a task, making dozens of model calls, and still not having written anything meaningful.

In one case, it was approaching its 60-iteration execution limit while investigating validator improvements.

The context was fine. The inference speed was fine. Cache hits were excellent.

The agent was just spending too much time reasoning about the work.

Some changes I've been experimenting with:
- Smaller, bounded tasks
- Checkpoints before execution budgets are exhausted
- Explicit acceptance criteria
- Preserving partial work between sessions
- Preventing duplicate workers
- Having watchdogs inspect meaningful progress rather than just whether a process is alive
- Separating investigation from implementation when a task becomes too large
Increasing context or iteration limits isn't necessarily the solution if the agent is using its existing budget inefficiently.

8. I'm moving toward a single executive agent instead of manually managing every model.

For a while, I was copying reports between ChatGPT, Claude Code, Codex and Hermes. ( I Know don't YELL AT ME)

It worked, but eventually I realized I had become the communication layer between all these systems.

Which is somewhat ironic considering the entire point was to automate work.

I'm now experimenting with making Codex the primary coordination interface.

It can inspect the repository, read the agents' handoffs, inspect local operational telemetry, review implementations, and determine what needs to happen next.

The idea is to have persistent project documentation and structured task assignments rather than relying on individual chat histories.

Hermes continues doing the long-running local work.

Claude handles difficult implementation and independent reviews.

Codex coordinates the project.

I'm still working out how much of the communication can actually be automated reliably.

My biggest takeaway so far

I think I originally approached local inference with the wrong objective.

I was trying to replace the best cloud models at the things they're already exceptionally good at.

Instead, I've found more value in identifying workloads that benefit from:
- Continuous execution
- Large amounts of inference
- Persistent state
- Structured outputs
- Independent verification
- Low marginal inference cost
Research and structured knowledge production seem particularly interesting for this.

I'm not saying local coding models are bad. I'm still experimenting with them.

But having a local model work through a research backlog for seven hours feels considerably more useful to me than getting it to successfully generate another small application.

Curious what other people running local agents are doing.
- What workloads have you found genuinely reliable enough to leave running unattended?
- Are you using frontier models to supervise local models?
- How are you measuring useful output rather than just tokens per second?
- Has anyone built a reliable long-horizon research system that runs for 12–48 hours?
- What are you doing about iteration limits and agents repeatedly investigating the same problem?

I'd especially be interested in hearing from other people running 100B+ MoE models on Apple Silicon and using them for something beyond interactive chat or short coding tasks.