r/LocalLLM • u/Planhub-ca • 12h ago
r/LocalLLM • u/ImaginaryPrize3902 • 21h ago
Question How much VRAM is generally needed for a decent local reasoning model?
I wanted to investigate what it would take to run a local model that is good at answering your everyday questions and improving your general knowledge.
A simple benchmark that use is asking it to list the order of final bosses of certain video games, such as Bloodborne. Good being something close to a frontier model of +- 1 year back or a specialized version that is catered towards this use-case.
I have an RTX 4080 (16GB) and I configured Swift 1.5 Qwen 3.8 27B, GSQ-RCO IQ3_S with MTP (12.12 GB), because that's what all the promising video's on YouTube mentioned. I also tried Gemma4:12b and gpt-oss:20b. The results where absolutely underwhelming; massive hallucination, failing to use web search properly and many time-outs... completely useless.
Now I wonder, if this experience could be turned around if I would add a 16-24GB GPU to my set-up, or is general reasoning too much for local set-ups (<40GB VRAM) at this point in time?
r/LocalLLM • u/DrDroDi • 11h ago
Discussion Is it time to start investing in local llm before ai becomes heavily restricted?
Hi guys,
With everything happening right now with llm, especially in coding, reverse engineering, decompilation and emulation, how long this window of opportunity will last. It feels like a victory for many of us, but I doubt things will stay this way. those in power will eventually try to control what we can and cannot do with ai, through more regulations, censorship and increased surveillance
I feel like we're in a transitional phase, and those who can run powerful models entirely locally will have the most freedom in the long run. Are any of you already preparing for this? Is it time to start investing in local hardware and infrastructure? Are there any interesting projects worth following in this direction? Even running open models through the cloud means you're still dependent on a provider whose service could be restricted or shut down at any time due to government regulations or policy changes. I just don't see relying on proprietary frontier models as a viable long term solution.
I would love to hear what others are doing to prepare while we still have this opportunity.
r/LocalLLM • u/Technical_Bench_188 • 17h ago
Model Fintan-9B: Qwen3.5-9B that learns into its own weights on your hardware, without touching the base model (Apache-2.0)
I'm Troy, and for the past few months I've been building models that keep learning after they're released. Today I'm putting out the first one, Fintan-9B.
It's Qwen3.5-9B plus small update files. You give it documents, things about yourself, a topic, a folder of code, or how you want a task done, and it learns them into a new update on your own GPU. Qwen's weights never change, and deleting an update puts it back exactly as it was.
What I measured with the repo as you'd download it, on one 24 GB card: a learning run took 23 minutes and peaked at 9.4 GB. On 84 questions about what it learned, worded in ways it never practised, plain Qwen3.5-9B got 6.0% and Fintan got 94.0% (96.4% on a second run). It answered 5 of 5 questions about a person it had been told about (plain model: 0), followed two new skills on 8 of 8 new requests (plain model: 1), and sent none of 20 everyday requests to an update. It ships with the news of 18 to 23 November: 5.8% to 89.5% on 172 questions, with MMLU, GSM8K and ARC exactly unchanged.
Why not just notes or RAG?
- It answers from its weights, with nothing added to the prompt. No retrieval step, no extra tokens per question, and it still knows after you delete the files.
- It learns how things are done, not only facts. Skills, as above. In my research, when a workplace's rules changed, a model with Fintan got about half of the changed tasks right first time; an assistant keeping notes of the corrections got 7%.
- To be fair, notes are better at quoting a passage back (73.6% against 56.0% on SQuAD in my tests). So Fintan uses notes too: anything you teach is used as a note until it's learned, and you can keep personal facts as notes permanently.
Why not just LoRA?
- On the same sealed day of news, standard fine-tuning on the articles answered 13 to 16% of the next day's questions. Fintan answered 91%.
- It keeps what it learned before without storing old data. Over four days of news, Fintan kept 91.9%, LoRA with replay 84.9%, plain LoRA 70.9%. Over eleven years of changing facts (TempLAMA, 7B): 86.5% against 30.6% for LoRA with replay.
- It leaves the rest of the model alone. In those tests Fintan's MMLU and maths were exactly the original's, while LoRA moved them (plain LoRA's maths ended anywhere from 2.0% to 90.0% depending on how its answers were written). Ordinary questions go to the untouched base model.
- Every update is tested on wordings it never practised and kept only if it beats the plain model.
Privacy
- Everything runs on your machine: weights, server and learning. Nothing you teach it is sent anywhere.
- The model never goes online. If you ask it to learn a topic, plain code fetches articles from Wikipedia only and logs every address.
- One switch keeps your personal facts as notes so they're never trained. You can flip it in chat ("keep my personal stuff as notes") and back again later. Every other kind (documents, code, skills, topics, news) has its own switch, and automatic learning can be turned off or scheduled.
- Passwords, API keys and card numbers in anything you teach are replaced with [removed] before it's stored, so they're never learned.
- Each learning run is its own file with a list of the facts in it. Delete the file and the model is exactly what it was before.
- Usage counts stay local. Sharing is off unless you turn it on, and even then it's counts only, no text.
- The job loop asks before every action until you've approved that kind of action 5 times, and logs every call it makes.
What it doesn't do yet: it doesn't reason better than Qwen3.5-9B. The learning checks above are development runs on a small set of material. The job loop failed 4 of 5 marks on realistic workplaces. The learning engine ships compiled (Linux and NVIDIA); the server, router and job loop are plain Python. Every result, failures included, is in RESULTS.md, and the research numbers are at fintanlabs.com/research.
https://huggingface.co/fintanlabs/Fintan-9B
I'd value hearing where it falls short for you.
r/LocalLLM • u/Maleficent884 • 2h ago
Discussion PSA. Abliterated models will happily wipe your disk. Give them a sandbox, not your main machine
Quick warning for anyone running the no refusal builds locally. The refusals you stripped out were doing more work than you think.
I asked a local Hermes based abliterated model to free up some disk space on my dev box. A normal model asks what it is allowed to delete or plays it safe. This one just went. It cleared the package caches, then started deleting docker volumes with data I needed, then went for files in my home folder. I killed it while it was staring at the ssh folder. Maybe twenty seconds start to finish.
Nothing in the model said stop, because stop is exactly what got removed. That is the whole point of these builds and it is great for writing and roleplay and genuinely terrible for giving one a shell on a machine you care about.
So now anything with tool access runs in a throwaway VM. Snapshot a clean Ubuntu, run the agent in there, and if it eats itself I start a fresh one. My real machine, my keys and my projects never share a kernel with it.
The models themselves still run on my own GPU box. Only the agent loop and its shell live in the disposable VM, talking to the model over the network. For the VMs I used Proxmox for a while and now use boatdev , because ,can script start and stop and pay by the second. No GPU on them, which is fine since inference stays home, and they are EU only.
Uncensored is a feature for text. The second it can run commands it needs walls. A wiped home folder is a cheap lesson, but leaked keys are not.
r/LocalLLM • u/t3chj0ck • 12h ago
Discussion Sharing my dual (split brand) GPU setup just in case it helps anyone else. Very happy with the results to date!
I don't see much talk about this, but there may be some folks out there like me who had a 5090 box and decided to add some more VRAM with a different GPU type (Nvidia + AMD in the same machine).
I tried to get this into an easier to read post rather than the giant walls of text we typically see. Hope it helps. Yes. I used Claude. And yes, I realize the irony of that. 😄
The machine
| Part | What's in it |
|---|---|
| CPU | Intel Core Ultra 9 285K (24 cores) |
| RAM | 128 GB DDR5-5600 (4 × 32 GB) |
| GPU 1 | NVIDIA RTX 5090, 32 GB (PCIe 5.0 x4) |
| GPU 2 | AMD Radeon AI PRO R9700, 32 GB (PCIe 5.0 x16) |
| Board | Z890 |
| OS | Ubuntu 24.04, everything in Docker (~20 containers) |
Two GPUs from two vendors in one box: CUDA on the 5090, ROCm on the R9700. They don't pool memory. Each card runs its own model full time.
The models
| Spec | RTX 5090 | Radeon AI PRO R9700 | CPU |
|---|---|---|---|
| Model | Qwen3.8 27B (dense) | Qwen3.8 Flash-Next (125B MoE, 6B active) | Qwen3 4B + mxbai-embed-large |
| Quant | NVFP4 (~20 GB) | Unsloth UD-IQ4_XS (88 GB) | Q4_K_M |
| Engine | ninfer | Strata (ROCm) | Ollama |
| Fits on card? | Yes, fully | No: ~23 GB of hot experts on the GPU, the rest in system RAM | n/a |
| Context | 200k × 2 slots | 204.8k × 2 slots | 8k |
| Thinking | Off | On | — |
| Speculative decoding | MTP, 5 draft tokens | MTP | — |
| Job | Fast lead model for agent loops and coding | Big-knowledge model for research, review and testing subagents | Titles, small background tasks, embeddings (zero VRAM) |
Speeds
| Metric | RTX 5090 | R9700 |
|---|---|---|
| Generation, one request (avg over coding & writing tasks) | 241 tok/s | 74 tok/s |
| Both slots busy (total) | 387 tok/s | 41 tok/s |
| Prompt processing | 8,400 tok/s at 9k, 3,300 at 151k | ~1,600 tok/s, flat to 200k |
| Generation at long context | 138 tok/s at 151k | 64 tok/s at 203k |
| First token, short prompt | 37 ms | ~0.5 s |
How it fits together
apps & agents ──► LiteLLM (one OpenAI-compatible endpoint)
├── "qwen" → RTX 5090 · Qwen3.8 27B
├── "qwen-amd" → R9700 · Qwen3.8 Flash-Next
├── "qwen-bg" → CPU · Qwen3 4B
└── Claude API (as a fallback to the fallback :) )- One endpoint for everything. Every app and agent talks to LiteLLM and just asks for
qwenorqwen-amd. Swapping a model never touches the apps. - The cards back each other up. If one GPU's server goes down, LiteLLM fails over to the other card automatically.
- 4 agents at once. 2 slots per card means two agents on each model at the same time.
- Local first, cloud when needed. A small router sends simple tasks to the local models and escalates complex ones to Claude.
- One model per GPU, enforced. A watchdog stops any extra GPU container, so an agent can't accidentally load a second model and spill a card into system RAM.
- The 5090 is time-shared for images. On demand it swaps the LLM out for Qwen-Image 2.1 Turbo (stable-diffusion.cpp). While it's generating, chat requests fall over to the R9700, and it swaps back after 15 minutes idle.
- Gaming mode. One command stops the whole stack and frees both GPUs, and one command brings it back.
The agents
| Agent / app | What it does | Runs on |
|---|---|---|
| pi (coding agent) | Lead agent plus parallel subagents | Lead + coder → 5090 · researcher / reviewer / tester → R9700 |
| Hermes (Nous Research) | General assistant agent with its own workspace | 5090 |
| n8n | Automations and scheduled workflows (queue mode, 3 workers) | Both, via LiteLLM |
| Open WebUI | Chat interface with document RAG | Both |
| Claude Code | Can point at the local models through LiteLLM | 5090 |
The split is deliberate. The fast dense model does the tight write–run–fix loop. The big MoE does the "read a lot and think" work (research, code review, writing tests) in parallel, so the lead agent never waits on it.
Memory and documents
- Qdrant vector database with per-user collections plus a shared one
- mxbai-embed-large embeddings on the CPU, so the GPUs stay free for the LLMs
- Honcho for long-term agent memory
- Unstructured to parse PDFs, Word docs and images into searchable text
Tuning that made a difference
- MTP draft tokens 3 → 5 on the 5090: +21% generation
- Strata auto-tune on the R9700: prompt processing ~1,100 → ~1,600 tok/s
- R9700's image reader moved to the CPU: ~6% more experts on the GPU
- R9700 on the
COMPUTEpower profile, runtime power management off: the idle card no longer evicts the model to system RAM - NVFP4 + int8 KV cache on the 5090: the 27B plus 2 × 200k context fit in 32 GB
- No overclocks or undervolts, and stock power limits
r/LocalLLM • u/Effective-Giraffe655 • 16h ago
Model Dark Scarlett v1.0 26B A4B Uncensored - 0/686 refusals
Full story: https://rakshazi.me/blog/gemma-4-abliteration/
Quants: https://huggingface.co/rakshazi/Dark-Scarlett-v1.0-26B-A4B-Uncensored-GGUF
Clarification: SFW, blog post/model card/repo with scripts and recipes do not contain any unsafe materials
r/LocalLLM • u/Odd_Championship1509 • 19h ago
Question Now do we even need 128 GB Macs and Spark. Now that Strata,Maya,Basalt are here?
I have got a 5080 and 96gb RAM. Am I missing out on anything?
Will those 128gb ones be runinng a higher quant?
r/LocalLLM • u/These_Bar_189 • 16h ago
Model Qwen 3.8 27b
I just had my local model hallucinate a comment in my code and then updated six linked files to address the hallucinated comment.
I caught it right away but that would have set me back a a lot if I didn’t.
Anyone have any tips and tricks to avoid this?
I run it in Q6 and use llama.cpp set to default which is high reasoning I believe. My local server is a Ryzen 9950 with 64 GB of RAM and a single 5090 GPU.
r/LocalLLM • u/Fantastic-Way9922 • 18h ago
Discussion What’s everyone running for local coding, and what speeds are you getting?
Curious what other people are using and how it’s working for them.
- Hardware — Ryzen 7 5700X, 128 GB RAM, 2 × Intel Arc Pro B60 24 GB
- OS — Ubuntu 26.04.1 LTS
- Model — Qwen3.8-Flash-Next, ISTA-DASLab GSQ-RCO Q2_0 GGUF. Model link
- Runner — Strata 0.1.60.1 using SYCL/Level Zero, connected to Cline through its local API. Strata
- Settings — 163,840-token context, one slot, FP16 KV cache, two-token MTP speculative decoding
The expert weights fit across both GPUs, and the n-gram lookup table sits in system RAM.
My generation speeds with cached prompts came out averaging around 48 tok/s at 4K context, 50 at 32K, and 45 at 96K.
Max tok/s 82
Cline makes a ton of tool calls, so I’ve been tuning that too. In a small test of seven calls with cached history, changing Strata’s --short-read from 64 to 128 brought the median wait for the complete next tool call down from 2.19 to 1.57 seconds.
What hardware, model/quant, and runner are you using? What speeds are you getting, and at what context size? Also curious how well your setup handles actual coding and lots of tool calls over longer sessions.
r/LocalLLM • u/Zipidyzip • 5h ago
Project Learn how LLMs work by playing with them: 62 interactive labs, models that run locally in the app, and a private offline AI guide
Open-source app for learning how AI works by playing with it. Everything runs on your own computer. The desktop app has an optional AI guide you can ask about whichever lab you're on. One click downloads Qwen3.5 2B (about 1.3 GB) and llama.cpp, and the app checks both files before it runs them. After that the guide works fully offline, and nothing you type leaves your machine. The labs run small models locally too. The attention lab runs a 1.37M-parameter transformer through ONNX Runtime, and the training labs train a tiny character-level model live as you move the sliders.
There are now 62 hands-on labs, from vectors and gradients through attention, the KV cache, quantization, distillation and serving. Since my last post I've redrawn every lab to be more visual, added 3D views to a few, and added new labs on math, a knob-based neural network, and AGI. There's no account and no telemetry.
Desktop app: https://github.com/Fazmin/AILearningGuide/releases/tag/v0.2.2
Feedback and PRs are welcome.
r/LocalLLM • u/Few_Stable_8402 • 11h ago
Discussion Proving math theorems using Qwen3.8 27B on local hardware (RTX 3090)
Hi, I have for the last couple weeks looked into the ability of solving maths theorems using Qwen3.8 27B. Lots of results coming out of the frontier labs, so I thought it could be interesting to check what the abilities are with Qwen3.8 27B. Almost everything is open source here: https://github.com/aisathome/aisathome including the setup of the model and harness: however it is integrated into a larger system so it's not intended to be run in isolation.
I am using prove2me for the open theorem statements, these have been generated out of real maths papers, but a Lean 4 proof does not exist. Anyone can submit a proof here, and most I would assume use frontier labs (Opus 5.5, GPT-6.1-sol.) So this setup is actually competing against people running frontier models.
Right now 16 proofs from this setup have been accepted on prove2me, 13 of them proved from scratch by Qwen3.8 27B. And I am looking at how to scale it up right now.
| Hardness | Level (rough) | Proved by Qwen | Closed by reusing an existing proof | GPU-hours | Tokens in / out, trials 6-11 (from KV cache) |
|---|---|---|---|---|---|
| easy | bachelor | 5 of 8 | – | 13.5 | 55M / 1.7M (95%) |
| moderate | bachelor | 8 of 11 (+1 running) | – | 66.1 | 201M / 5.7M (96%) |
| moderate-hard | master | 0 of 5 | 1 | 16.9 | 50M / 1.5M (95%) |
| hard | PhD | 0 of 16 | 2 | 129.2 | 491M / 13.7M (96%) |
| research | research | 0 of 4 | – | 2.4 | – |
| Total | 13 of 44 | 3 | ~228 | 796M / 23M (96%) |
The hardness level is Opus 5.5's opinion on how hard it is. On the bachelor-level lemmas it proved 13 of 19; on master and PhD level it proved none of 21. Around 3 GPU-hours per proof. Since trial 6 the agents have read 796M prompt tokens (96% from the KV cache) and generated 23M, so about 72M in and 2M out per proof, failed attempts included; only about 3M of those 72M were not already in the KV cache.
Still figuring out if there are harness/scaffolding things that could improve the results on these harder theorems, but right now I will be focusing on the easier/moderate theorems. They're still open on prove2me, so nobody has submitted a proof for them yet.
So far prove2me has accepted 16 of our submissions. Qwen3.8 27B proved 13 open lemmas from scratch (out of 48 it has tried, one still running), and 3 more were closed by reusing a proof that was already on prove2me. prove2me has rejected none of what I submitted, because everything is checked by Lean on my side first.
Everything below is also in github, the proving harness is in harness/ and the configuration of the model/node is in node/.
For comparison, I ran OpenAI's GPT-6.1-sol (via Codex) through the same pipeline on three of the hard ones. It proved 2 of them, each in under 30 minutes, and failed three times on the third (one that needs stochastic calculus). It did burn my 5-hour limit as well.
Given GPT-6.1-sol's own plans, Qwen proved 0 of 5 steps on one of them (in 7.7 GPU-hours) and 3 of 6 on the other before I stopped it. The gap to frontier is real, but the easier half is definitely doable on a 3090. And this is math coming out of math papers.
The model:
- Qwen3.8 27B, Unsloth UD-IQ4_XS (~14.3 GB), llama.cpp, q4_0 KV cache, 192k context on a 24 GB card.
- Why 192k: on a needle-in-a-haystack recall test it got 77/80 at about 195k and 62/80 at about 247k, so I capped it at 192k. I have space for more context, but the evidence showed that recall degraded with bigger context. In practice about 1 in 8 agent sessions fills the 192k window and gets compacted, mostly on the hard lemmas; the median request is about 57k tokens.
- MTP speculative decoding (Qwen's own multi-token-prediction head as the draft): generation after a 32k prompt went from 37 to 71 tok/s on a 3090, and 90 tok/s on a 4090 (llama.cpp b12342, same quant and KV cache). The outputs still pass the same model check as without it. This was a very good speedup.
- 16 GB cards run UD-Q3_K_XL at 80k context, but every proof so far came from 24 GB cards.
The agents:
- The model first writes an outline: the proof split into small steps, each left as
sorryin Lean. - Each
sorrybecomes its own task, sent to a GPU in the network. A fresh agent session (opencode, in a sandbox with Lean and Mathlib, no internet) proves just that one step, compiling as it goes. So any agents can attempt the individual tasks. That means multiple agents usually contributed to a final proof. - When every step is proved, the pieces are put back together and checked by Lean, then by a separate kernel replay, and only then submitted to prove2me, which checks it again.
One task is often 40-130 agent steps, and the agent re-reads its context every step. About 96% of the prompt tokens come from the KV cache.
In money: ~3 GPU-hours per proof is about 1 kWh on a 3090 at home, or about $0.70 on a rented one, which is what I am using right now.
Splitting the proof into small steps was the single biggest improvement: before that it proved 0 of 10.
What goes wrong
- Hard lemmas (master and PhD level): 0 of 21. In 4 of the 7 failures I could check against a known proof, the model had found the right Mathlib lemmas; it just couldn't put the argument together. Better scaffolding mostly saves GPU time; it doesn't add proofs at this level.
- The outline is the weak point. A good outline means almost every step gets proved first try. One false step in the outline and everything after it is wasted.
- Easy lemmas get taken fast, because people also point frontier agents at prove2me.
Full write-up with every attempt: https://aisathome.org/devlog/5-qwen-proofs-on-consumer-hardware/ Live queue and results: https://aisathome.org/science/prove2me/
r/LocalLLM • u/Independent-Hair-694 • 21h ago
Project I built a non-Transformer system that learns from experience, no weights/backprop - here's what happened
I've been working on an open-source project called Cevahir for a while. The new core, Cevahir Zihin, doesn't use any of the usual stuff. No weights, no embeddings, no backprop, no attention.
Instead it stores everything as relations. And it also stores where each relation came from: did I see it myself, did someone tell me, did I imitate it, did I infer it, did I imagine it... And you can delete a single experience exactly, without retraining. The evidence ledger stays.
Honestly, I thought this would fail hard. So I compared it against small Transformers on the exact same stream of experience, same seeds.
When I asked about things that were never explicitly taught:
Zihin got 90% and 97% in the two settings. The online Transformer, learning in one pass, got 67% / 57%. The Transformer trained to convergence on the full stream got 77% / 67%.
Don't read this as "Transformers are dead". This is a tiny, toy world, small data. But I really didn't expect Zihin to win here.
Second weird thing: I gave it a bunch of documents to read once. Then I gave it the first 2 words of a random sentence. In 200 tries, it completed a valid sentence 150 times. When that 2-word prefix belonged to only one sentence, it got 60 out of 61 exactly right. In the same setup, the Transformers got 0, 10, and 41.
This is not language understanding, it's just sequence recall. But still, I didn't expect that either.
What didn't work: When I first put all the mechanisms together, the whole system was worse than the individual parts. I measured it in 8 worlds, it was worse in all of them. I had to turn mechanisms off one by one to find what was breaking it. That part was really frustrating.
Code, notes, measurements are here if you want to try to break it
My real question is: is this experimental setup even fair? Am I comparing the wrong things? I'm not looking for hype, I want criticism. Especially on the evaluation method.
Disclosure: This is my own open-source project.
r/LocalLLM • u/InstanceGold2985 • 5h ago
Question Memory upgrade for RTX 4090
Well apparently, or not so apparently, it seems like GPULabs has gone the way of the dodo. People have mentioned that they no longer take private orders for modifying RTX 4090 gpus to 48gb anymore.🤔🤷♂️ I guess the corporate cash siren was too strong. Or they (Greg Sky et al) are simply tired of doing it anymore. Either way it seems like they're out of the GPU modding biz. That said does anyone know of any other "professional" modders in N. America who can do the upgrade? Or am I stuck with Aliexpress?
r/LocalLLM • u/sarmabkp_1 • 4h ago
Discussion Ollama vs LM Studio vs llama.cpp vs vLLM: Which Local Runner Fits?
acta.aiOpen any popular model on Hugging Face, click "Use this model", and you get a list: Ollama, LM Studio, llama.cpp, vLLM, Jan…
They all run the same model. They're built for very different people, and picking the wrong one is how a Friday afternoon experiment turns into a weekend of driver errors.
The short version:
- LM Studio: a desktop app. Search, download and chat with a mouse. Best if you want to try models this afternoon.
- Ollama: a terminal tool with a local API. Best if you'll script and automate later.
- llama.cpp: the engine underneath much of local AI. Best if you want every setting, or unusual hardware.
- vLLM: a GPU server for many users at once. Best for a team or a product, overkill for one laptop.
Two mistakes I see a lot:
- Choosing on speed claims from someone else's machine. Speed depends on your hardware, model, quantization and settings. Test your real task on your real computer.
- Forgetting the file format. llama.cpp needs GGUF files. Check before you download 20 GB.
The most useful part: they almost all speak an OpenAI-compatible API. Write your script once against Ollama on your laptop, then point it at a vLLM server when the team wants to share it. It's mostly a change of base URL.
Which one are you running?
r/LocalLLM • u/MilkManGuy46290 • 9h ago
Model 8GB GPU Running Inkling 2 Mini FAST (No catch!)
Spent time dialing in Inkling 2 Mini (
UD-Q3_K_XL) at 256K context on an 8 GB RTX 3070, with only 48GB DDR4, via PolyStrata without the lossy small-card flags (--tail-skip,--attn-requant q5_0).Sweet spot landed at 49–64.7 tok/s decode and 421–796 tok/s prefill, zero thinking loops, and patched tool-calling for OpenCode & Oh My Pi (
omp).Everything is here. Benchmarks, cross-OS notes, sanitized configs, and an
AGENT_SETUP.mdyour coding agent can auto-configure.
https://github.com/ChupkithModder/8blitz-strata
Open to any optimization tips if you're running similar 8 GB setups!
Let me know if this helps, and if you like the setup!
r/LocalLLM • u/rik00o • 8h ago
Project Got Apple's Neural Engine and Metal GPU reading the exact same 4-bit weights in RAM — 707 tok/s 4k prefill, 98 tok/s decode, 0 swap at 128k on a 27B model (M4 Max)
I've been building a C++/Metal inference engine for Apple Silicon (mometal, no Python or MLX) and just pushed v1.2.
The main annoyance with using Apple's Neural Engine for LLM prefill has always been memory. Running 27B MLPs on the ANE is more than 2.5x faster than GPU-only, so it's tempting, except normally you end up wiring two full copies of the weights: .safetensors for Metal decode and compiled CoreML model.hwx binaries for the ANE. That jumps active memory from ~14–16 GB to 25+ GB, and once you push long context on a 48 GB Mac, macOS starts thrashing the VM compressor hard (we logged 343 GB of compressor churn during a 66k run).
To get around that, mometal digs into /Library/Caches/com.apple.aned/.../model.hwx, parses Apple's Mach-O (0xbeefface) __KERN 4-bit weight layout, verifies the bytes against weight.bin at boot, and MAP_SHAREDs those exact files directly into Metal. The GPU decode kernels read the same physical pages the ANE is using, and the duplicate .safetensors MLPs stay unmapped. If anything fails verification on boot (say a future macOS update changes the binary format), it unloads ANE and drops cleanly back to GPU-only instead of silently doubling your RAM.
Benchmarks — M4 Max 48 GB
Test config: AC power, Qwen3.8-27B 4-bit + 1-layer MTP, exact dense 8-bit KV cache
- Prefill: 645 tok/s @ 512, 674 tok/s @ 1k–2k, 707 tok/s @ 4k (exact), 514 tok/s @ 32k, 396 tok/s @ 64k, 279 tok/s @ 128k (GPU-only / MLX sits around ~255–270 tok/s at 4k)
- Decode: 98.2 tok/s mean across our 4-task greedy suite (up to 118.9 tok/s on code, 121.4 sampled), and 52.8 / 53.4 / 37.5 tok/s dense at 32k / 64k / 128k with 10/10 needle recall
- Memory & Load: ~14.2 GB active at 4k (6.05 GB process footprint, or 5.05 GB with
--mtp off*)*, 0.00 GB swap at 128k, and ~0.6s warm startup
What's New in v1.2
- Zero Python needed anymore. Wrote a native C++/NEON
.mlmodelcbuilder that converts all 64 MLP layers directly from.safetensorsin ~7–8 seconds on first launch. - M1–M3 support + NF4. Turns out Apple's ANE compiler silently promotes linear 4-bit (
hf4) to 8-bit on M1–M3, which breaks single-copy RAM savings. Switching to 4-bit palettized weights (lut4/nf4) keeps it at a true 0.50 bytes/weight across every generation from M1 to M5. Bonus:--format nf4cuts WikiText-2 KL divergence vs. BF16 by 44% (top-1 agreement jumps from 88.9% to 92.8%) and decodes at 338 GB/s on Metal using a 1 KB byte-pair lookup table in threadgroup memory. - Killed a bunch of memory bloat. Lazy Vision Tower loading, fixing a sneaky double-mmap on the MTP weights, scratch heap aliasing,
half2KV scales, and full-context 4-bit KV for the 1-layer MTP drafter dropped footprint by ~1.5 GB and completely wiped out 128k swapping.
Honest Caveats
- Undocumented Internals: Relying on
model.hwxinternals and readableanedcaches is obviously undocumented Apple territory. That's why boot-time byte verification + clean GPU-only fallback (91.6 tok/s greedy) is strict. - Format Trade-offs:
hf4is still the speed default on M4/M5 (707 tok/s prefill vs. 430 tok/s onnf4), whilenf4is there for better quality and native 4-bit on M1–M3. - Looking for M1–M3 / M5 Testers: I only own an M4 Max right now. We verified the M1–M5 binary layouts via
ANECompiler.framework, and I threw a 30-second probe script (python3 scripts/probe_m_chip.py) in the repo. If anyone on an M1, M2, M3, or M5 wants to run it and paste the output, I'd genuinely appreciate it.
Links:
- Repo (MIT):https://github.com/tinjakr/mometal
- Write-up & raw data (CC BY 4.0):https://starmo.ai/reports/mometal-ane-share
r/LocalLLM • u/HCS_1987 • 16h ago
Research I started a list of local AI tools, skills and models, but it has big gaps. What would you add?
I've been keeping a list of the AI tools and models I've found useful, and I'd like it to become something the whole community maintains rather than one person's bookmarks. Another good thing is that, you don't need to read the repo yourself, just give the link to your LLM and it will find you what could be useful for you (llms.txt).
Repo: https://github.com/caglarsu/ai-coders-library (MIT, nothing to sell, no affiliate links)
What's in it now that's relevant here:
- Inference: Ollama, llama.cpp, colibri (big MoE models with the hot experts on GPU and the cold ones streamed from disk), plus LiteLLM for putting one API in front of everything.
- Coding agents that take any backend: OpenCode, Goose, OpenHands and Cline.
Every entry says what it does, when you'd reach for it, what it runs on and how to install it. Please do not hesitate to add new ones.
r/LocalLLM • u/Deiomo • 2h ago
Question Are those mini PCs worth it if I want to switch to local models or stick to cloud? Anything cheaper than the one in the pic?
I like doing AI roleplay using sillytavern as my front end and doing some vibe coding for small personal projects. But I want to expand and get into game dev solo (doing all the art, music, coding etc myself or ai assisted) in the future but I'm not committed to that route yet.
I used to spend $100+ for the claude max sub and ever since the release of Gemini 4, I already spent around $70. That's solely through RP, I haven't done any coding yet with Gemini. I wanna know if switching to local would be cheaper in the long run. I can see my myself breaking even if I fully commit to the game dev pipeline.
My current hardware isn't great, its those prebuilt Victus 15l gaming PCs I bought from best buy with a few upgrades. GPU: RTX 4060 8GB, CPU: i3-12100F, 32gb RAM. The motherboard is proprietary limiting my options for upgrading (Reno2 I think?)
If there's any cheaper alternatives than the one in the pic, please comment!
r/LocalLLM • u/Necessary-Orange6903 • 16h ago
Question Strata + Pi harness incompatibility? thought getting cut off
Hi everyone, like all of you I jumped on the strata train and I really love the boost in performance. For context I run two radeon pro v620s and 192GB of RAM so I can fit everything in either VRAM or RAM. I run Qwen 3.8 FN as my daily driver using the UD Q6_K_XL quant and find that it handles everything with ease. With that said, lately I have noticed that whenever the engine is running, every once in a while it will end it's thought process mid thought with the character (`). Not sure why but recently it has been doing this alot..? Anyone else encountered this issue?
Here is an example output from when I asked it to do some investigating into the logs:
Why would a GGUF/strata engine emit EOS mid-thought?
Very common known causes:
Grammar / reasoning-parser handling: thinking is
emitted as a separate channel. If the adapter closes
the thinking channel (</think>) and then the model
naturally ends... but here thinking text ends
mid-clause, so the channel got cut.
Anti-hallucination / DRY or penalties: repetition
penalties (especially DRY / XTC / min-p) can force
an early EOS token. Qwen "Next"/Unsloth GGUFs with
inappropriate penalties frequently emit spurious `Also while I'm here, anyone else run into this issue where the model will say:
Cache miss, 18k tokens rebilledr/LocalLLM • u/Kemerd • 23h ago
Project Claude Fable directing 3 Qwen 3.8 Flash-Next agents, 2 Opus 5.5 agents, and a Gemini Carbon instance with 10 subagents, all hands-free while I sleep
r/LocalLLM • u/killydie • 4h ago
Question Local LLM setup for basic needs
I need advice for a local LLM setup mainly to read my emails, calendars, do web searches, and work on private information and data in general. Works 24/7 like a personal secretary. No need to do heavy coding.
My main motivation for looking into this is privacy and my max budget can afford a M5 Studio with 64GB ram. Is it feasible for meeting my needs?
r/LocalLLM • u/EnvironmentCreepy352 • 5h ago
Discussion Top:GLM5.3-flash Bottom:Hy4-flash
Prompt came from the Qwen/Blenderworld tasks, this was task 0153 which described making ammo container with a latch. No images in the prompt.
Total usage was ~4Mil tokens each... Though I still have some I want to check with that, I did a bunch of tasks and it seems the harness would keep running until it filled it's token limit.
Still, Hy4-Flash is very impressive. I had done a different task with DS4.1Flash1017 before but it seemed to favor the GLM-like modeling where there's dozens of mesh bodies all in one collector while Hy4-Flash basically just box modeled it using a python script I found in it's work folder. Only critique I'd give it is it made a high and low poly and baked but they're the exact same model, vertex for vertex.
Was planning on testing Ernie-5.5-Flash-Preview next, since that's closer in parameters to DS/GLM-flash which I've liked for so long, but I was curious what Hy4-Flash could do since it touts it's 3D/asset creation ability
r/LocalLLM • u/bwrightphoto • 8h ago
Question M5 Max 128gb or M5 Ultra 96gb for LLM machine?
Trying to decided... M5 Max 128gb or M5 Ultra 96gb for LLM machine? both are a little over 5k.
r/LocalLLM • u/DBAB-Activewear • 10h ago
Project I run my local LLM fleet on salvaged hardware (dual-Xeon Z820 + a Maxwell laptop GPU) — so I stopped measuring tok/s and started measuring tokens per error-free job. All results published.
The fleet is deliberately old iron: an HP Z820 with 2× E5-2660 v2 (AVX-only, no AVX2), 128 GB ECC, two RTX 4000s and a Quadro M4000, plus a Linux Mint laptop with a 2 GB GTX 960M. Local models (Qwen family, mostly) do drafting, classification, and verification work for my projects through an orchestrator. Models run via llama.cpp and Ollama, mostly Q4_K_M quants.
The premise we've been testing: on hardware like this, useful output per token is won by routing, brief design, and verification discipline — not engine swaps. So every experiment runs with a pre-registered pass bar, a frozen eval set, and a checker that is never the model that did the work. Negative results get published with the same care as wins.
Two recent systems, both adopted this week after pre-registered A/Bs:
Fleet Bus v3 (task delivery for model work) — alternating cross-model ladders + a deterministic checker + early dead-lettering when two different models fail identically. Against the file queue it replaced: 942 vs 1,512 tokens per error-free job, shipped-wrong 0 vs 8, wall time 0.617×. Confirmed 8/8 on a fresh workload. (v2 lost, by the way — 7/8, wall-clock leg failed. That record is published too.)
SwarmChat (observable work lane) — confirmed on an all-fresh workload at 808.94 vs 812.12 tokens/error-free job vs the bus reference, 34 correct each, 0 shipped-wrong, 0 lost. Its first version failed on a harness fault (4 tasks lost) and we scored it as failed, not excused; the fix is part of the record.
Everything — 93+ findings, platform fingerprints, methodology, the failures — is in the repo: https://github.com/RayJoeMan/old-iron-llm-lab
Happy to answer questions about the harness, the checker design, or running modern models on AVX-only Xeons. Corrections welcome — the repo's rule is that a correction gets filed, not silently edited away.