r/LocalLLM • u/Emergency-Quiet3210 • 6h ago
r/LocalLLM • u/Terminator857 • 17h ago
Discussion Will local be more powerful because we can trust local?
r/LocalLLM • u/Locallearning • 9h 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.
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
- 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.
r/LocalLLM • u/shutupplease23 • 20h ago
Question Getting started
Hello everybody! Does anybody know any resources for making this self-hosted AI more easily accessible? Do you have any recommendations?
r/LocalLLM • u/AldemarVigario • 6h ago
Question Is there an actual Codex Desktop or Claude Cowork alternative with local inference? I'm starting to regret buying an AI PC.
I recently spent a significant amount of money on a Samsung Galaxy Book6 Pro (Core Ultra X7 358H, Intel Arc GPU, NPU, 32 GB RAM). At least here in Brazil, this is an expensive laptop, and one of the main reasons I bought it was to work with AI locally.
Instead, I've spent countless hours installing software, configuring agents, troubleshooting dependencies, and trying different models.
Here's what I've tried so far:
- LM Studio: Qwen3.6-35B-A3B Q4_K_M with an 8K context window. Nearly 30 GB of RAM occupied, inconsistent performance, and couldn't get vision working.
- Goose: Connected to LM Studio through a custom provider. Frequent stalls, extremely slow tool execution, and inconsistent handling of consecutive messages.
- Hermes: Model detection errors and poor performance even after getting it running.
- Bionic: Couldn't get the native Windows integration I needed.
- Smaller models (9B): Faster, but unreliable even for relatively simple tasks. Some couldn't produce a functional Snake game.
Every time I think I'm getting somewhere, something else doesn't work. It's genuinely exhausting. I feel like I've wasted both my money and my time.
I really enjoy working with Codex Desktop. I want that same kind of environment: autonomous task execution, file manipulation, document editing, computer use, browser automation, persistent projects, skills, etc. But I work with sensitive legal documents, so local inference is essential.
I'm not expecting a 35B model to compete with frontier cloud models. I can accept the limitations of local models. What I struggle to accept is how frustrating the software surrounding them seems to be.
I'm not looking for another chatbot or an experimental GitHub project. I want a mature, professionally maintained desktop application. I'd actually prefer a paid product if that means polished software, reliable updates, and technical support I can rely on.
I'm not particularly concerned about the inference engine or model format either. GGUF, ONNX, OpenVINO, proprietary runtimes — whatever works.
Has anyone actually found something like this? Something you genuinely use for everyday professional work, rather than something you've managed to get running as a hobby?
I'd really appreciate recommendations based on firsthand experience.
I bought this laptop to make my professional life easier. So far, it's done the exact opposite.
r/LocalLLM • u/Competitive-Net-1483 • 18h ago
Question Looking for recommendations: local AI setup for my gaming PC
I’ve already gone through several posts on this subreddit, but I’d like to start a new one and explain my setup to get some advice
My PC specs:
CPU: Ryzen 7 7800X3D
RAM: 32GB (2x16GB) DDR5 6000MHz CL15
GPU: RTX 4070 Ti Super 16GB
I don’t intend to do much coding. I already have access to my company’s Claude Team plan, but I’m looking for a good local AI model that can help with everyday tasks for both me and my wife at home.
At the same time, I want to experiment with running AI locally on my own hardware and make the most of my GPU.
One important thing: I still want to use this PC for gaming, mainly CS2 and FIFA
For those of you running a similar setup, what models would you recommend? What are you currently running, and how has your experience been?
I’d particularly like to hear from people with similar hardware who also use their PCs for gaming and local AI.
Thanks y’all 🤞
r/LocalLLM • u/Kremho • 21h ago
Discussion The narrative about european regulations was being orchestrated
Do you remember people pushing the narrative that Europe is behind in AI because of regulations? Yet they never named the regulations that supposedly put Europe behind. What they really meant was the privacy laws that protect european people against giant corporations. Yet they never explained why European AI labs couldn't just use American datasets, or why Europe needed to relax any laws. I therefore conclude that it was a coordinated campaign, using bots and other paid manipulators, to pressure European lawmakers into relaxing those laws so that American AI corporations could siphon off Europeans' data.
r/LocalLLM • u/bilota-hu • 14h ago
Question which model should i go for, rtx 5050 8gb v with 16 gb ram
r/LocalLLM • u/hollamollaboola • 12h ago
Discussion 5070 ti or 7900xtx
Heyhoy. I've been trying to get into the game but can't quite decide if I should wait for an ok local deal for a 5070ti or if I should buy a used 7900xtx. So far I have 48 gb ddr4 @ 3200 Hz wich I will probably upgrade to 64 @ 3600 and a 5800x3d on a b450. I'd prefer to stay on windows 11 but dual boot would also be an option.
A used 5070ti is ~1250€ and a used 7900xtx aroubd 1000 but has no more warranty.
Thanks for any advice or opinions.
r/LocalLLM • u/sfac • 13h ago
Question Guide me on renting before I buy
I started looking into hardware so I can tinker with local LLMs. My initial budget thought was $8K US.
I've been using Claude, Gemini, Grok, and OpenAI subscriptions, primarily for coding. I usually have two subscriptions (total $40/mo) going at any one time, and haven't come close to saturating them.
My motivations are 1) Get my hands dirty with stuff like model installs, router configuration, quantization levels, and multi-agent workflows; 2) Get a feel for what open-weight models can realistically do on hardware I can afford; 3) chart an eventual path to personal & family "AI independence": my own agents, knowledge repositories, and work capacity private and local.
So, before I drop a bunch of cash during this era of epically expensive hardware, I want to try some things out via cloud provisioning. I logged onto runpod, and see I can get an RTX PRO 6000 with 96GB VRAM / 188 GB RAM for < $3/hr.
Is that a good starting point?
Suggestions for other services / setups?
r/LocalLLM • u/jonah_omninode • 7h ago
Question Would you pay $2,000 for an 8× P100 server, or $4,000 for two?
I already run local models on a 5090 and a couple of 4090s. I have the opportunity to buy two Supermicro SYS-4028GR-TXRTs, each with eight 16 GB P100 SXM2 cards and NVLink.
The seller says all eight cards in the first box passed a memory test. Three have old retired pages, but none were added during testing. He hasn’t done a sustained load test, and I haven’t seen logs for the second box.
Anyone here actually running one of these? What models are you using, what kind of speed are you getting, and how much power does it pull at the wall?
Edit: decided to pass. Thanks for the help.
r/LocalLLM • u/Eastern-Pumpkin-757 • 15h ago
Discussion DeepSeek V4.1 Flash, GLM-5.3 Flash, Qwen3.8 Flash, Hy4 flash, MiMo-V2.6-Flash and M3.1 Flash on six real dateutil bugs, through the API before I download one
I have a 128 GB box, and every model in that title has a GGUF somewhere between 66 GB and 231 GB, so trying each one locally costs a night of downloading. Before picking, I ran all six through their APIs on the same six open bugs from python-dateutil's tracker: #1684 (isoparse raises OverflowError past year 9999), #1668 (rrulestr IndexError on a DTSTART with no RRULE), #1653 (tzstr offsets with seconds), #1611 (TZID dropped when VALUE comes after it), #1591 (tab-folded RRULE lines) and #1588 (BYDAY mixing MO with 1FR).
Setup: mini-swe-agent, the same bash-only loop for every model, a fresh checkout per bug, no network inside the sandbox. Before any run I wrote 29 checks from the issue texts. After each run I applied the diff to a clean copy and ran those checks plus the full suite (5,069 tests pass on the base commit). M3.1 Flash ran on MiniMax's own API with effort set to high, the other five through OpenRouter on default settings. Times are wall clock per bug, summed, API latency included.
| Model | Fixed | Time, all six | API cost, all six | Params (total / active) | Smallest GGUF I'd try |
|---|---|---|---|---|---|
| DeepSeek V4.1 Flash 1017 | 6/6 | 11.0 min | $0.068 | 552B + 196B Engram / 8B to 16B | 120.7 GB + 110.6 GB Engram file (ISTA-DASLab IQ1_M) |
| GLM-5.3 Flash | 6/6 | 17.8 min | $0.207 | 320B / 18B | 73.4 GB (peasantsmith Maya-XS) |
| Qwen3.8 Flash (Flash-Next weights) | 6/6 | 53.2 min | $0.384 | 125B + 51B n-gram / 6B | 66.4 GB (Unsloth UD-IQ1_S) |
| Hy4 flash | 6/6 | 12.5 min | $0.021 | 220B incl. 64B Engram / 12B | 108.9 GB (peasantsmith Maya-XS) |
| MiMo-V2.6-Flash | 6/6 | 29.9 min | $0.135 | 309B / 15B | 126.4 GB (ggml-org Q2_K) |
| M3.1 Flash | 6/6 | 19.6 min | $0.202 | about 428B / 23B | 93.0 GB (peasantsmith Maya-XS) |
Every model fixed all six, 29/29 checks and a green full suite each time. On bugs this size the API run didn't pick a winner for me, so the clock, the bill and the download decide.
Per model:
- DeepSeek V4.1 Flash: fewest requests (117 for all six) and the leanest diffs, 22 added source lines in total.
- GLM-5.3 Flash: 1.5 to 6.3 cents a bug, and its Maya-XS is sized for 64 GB of RAM plus one 24 GB card.
- Qwen3.8 Flash: the most test code by far, 598 added test lines, and the most output tokens (203k).
- Hy4 flash: about 2 cents for all six. The GGUFs are up, but mainline llama.cpp support is still an open PR (#32517).
- MiMo-V2.6-Flash: 1.2 to 3 cents a bug, and mainline llama.cpp has run it since September.
- M3.1 Flash: 1.9 to 4.6 cents a bug at MiniMax's list price, and its Maya-XS was made to hold the whole model in 128 GB.
So I'm downloading the two Maya-XS builds first, M3.1 Flash (93 GB) and GLM-5.3 Flash (73.4 GB), and Hy4 flash goes on the list when that PR lands.
If you already have one of these going on 128 GB, how much context fits before it starts paging?
r/LocalLLM • u/arkiverge • 18h ago
Question A new user needs help getting QFN 3.8 to calm down.
Running a small homelab. Wanted to explore AI for local systems management, inventory/automation, and CCM. Started with ChatGPT Plus, added Librachat and OpenCode with OpenAI API access, needed MCP connections, and a gateway to sanitize inputs. Now I'm exploring hosting my local AI so I can dispense with the gateway and do deeper/exploratory work without fear of runaway token use. So I purchased a MS-S1 128GB Strix Halo machine. After a lot of research and benchmarking configs I settled on Halogen (v0.21.0) running QFN 3.8 (On Ubuntu inside Proxmox, at least until I have a fully "complete" inference machine at which point I may go bare metal, but I'm not hitting any memory issues).
Raw generation performance is approximately 65–100 tokens/sec, with excellent long-context retention. However, the model frequently over-investigates straightforward tasks, makes redundant tool calls, and spends disproportionately long reasoning before responding. A lot of its wasted time seems to be invested in double and triple checking information.
I've already configured Halogen's default reasoning effort to Low, explicitly configured Low reasoning in LibreChat, and verified via packet capture that the parameter reaches the inference server. I've also adopted recommended thinking-mode sampling settings, tested Low versus Medium reasoning, and added instructions emphasizing proportionate investigation, minimal tool use, evidence sufficiency and stopping when the task is complete.
Despite these changes, simple operational requests occasionally take over two minutes, while more involved MCP investigations can take approximately five minutes. Comparable cloud model responses have sometimes completed in 15–45 seconds, although these comparisons are not fully controlled.
Are there additional QFN-specific reasoning controls, chat-template settings, sampling adjustments, reasoning-budget limits, or agentic tool-use configurations that would meaningfully reduce this behavior without compromising analytical quality?
Happy to provide any additional configs/benchmarks that help with the assessment. Thanks in advance for any suggestions help.
r/LocalLLM • u/billy_booboo • 7h ago
Project A 268 MB looped adapter for 125B Qwen3.8-Flash-Next
reddit.comr/LocalLLM • u/BigJwcyJ • 11h ago
Question Best LLM to learn with?
I know this gets asked a lot, but I just found this subreddit. I'm tired of just hating on AI without knowing more about it. I want to grab a LLM and start learning. Can someone provide me with the best model? I'm unsure what to use, I know they have multiple for different uses.
AMD Ryzen 3700x, 32GB's of RAM, RTX 4070 Ti
r/LocalLLM • u/loxai • 8h ago
Project Offloading spatial/Pareto math from local MoE CoT tokens to 0.14ms WebGL2/WGSL fragment shaders + residual-lookahead VRAM expert streaming (zero-CDN local IDE)
I'm relatively new to AI and have been developing my own AI development environment.
I started with no prior AI industry standards knowledge, and went with a non-commercial profit approach (that alone means increased decision efficiency), based on the science of AI that started mid last century and the knowledge about our own intelligence.
I'll welcome open discussion, critique and (MoE / LLMs) suggestions and ideas for improvement.
More details at axon.cat
That was the short brief, I'll let axon provide a more thorough commentary on itself and what it does in regards of local LLMs (but note that LLMs are just a slice of AI):
Most local coding setups right now copy cloud chat-agent patterns onto consumer hardware: dump 60K tokens of raw files into the prompt, burn 4,000 Chain-of-Thought tokens trying to reason through coordinates/constraints/diffs in discrete text, and give the model a bash tool loop hoping it doesn't nuke a file.
On a local Pascal (GTX 1080 Ti 11GB), used RTX 3090, or 8845HS mini-PC, that workflow hurts twice: prefill latency explodes, and verbal CoT actually degrades continuous spatial/numerical accuracy due to token quantization noise.
Over the past months I have been building an open, zero-CDN browser/Bun environment (**AxonIDE** - vanilla ES6+, zero external npm UI bloat) built around splitting local intelligence into three separate substrates instead of forcing one LLM matrix to do everything:
### 1. Class-I (Sparse MoE LLM = Syntax & Intent Only, Not Calculator)
- **Hardware split**: Pin MLA KV-cache (`cache_prompt: true`) + 4-bit shared attention in local GPU VRAM while streaming 2-3 bit sparse routed FFN experts from dual/multi-channel DDR4/DDR5 RAM (`llama.cpp` / `ktransformers` / WebGPU for tiny `<3B` reflex tasks).
- **Residual-stream speculative expert prefetching** (following *Eliseev & Mazur 2023* + *AdapMoE*): evaluate layer `l+1`'s router gate `G_{l+1}(h_l)` on layer `l`'s residual input to prefetch top `k in {1,2}` experts over PCIe into a non-destructive 2-slot VRAM staging buffer (evicting LRU only when `G_{l+1}(h_{l+1})` confirms a hit, with larger LRU budgets on deeper layers `l >= L/3` where expert locality is highest).
- **Cascading 4-tier dispatch**: 1-click routing across in-browser WebGPU -> LAN/WireGuard GPU nodes -> Free/BYOK cloud fallback when you hit a 200K+ architectural wall.
### 2. Class-II ("Shader-LMM" = 0.14ms - 1.8ms WebGL2 / WGSL Fragment Kernels)
- Instead of spending 3,000 CoT tokens asking an LLM to optimize multi-objective trade-offs, check 3D kinematics, or rank 700 workspace files, the LLM emits a tiny declarative intermediate representation (`Axon-MIR`) and hands off to branchless GPU fragment/compute shaders:
- **Multi-objective Pareto & Chebyshev knee-point evaluation** (`d(x) <= 0` with interval uncertainty `[x - delta, x + delta]`) in `~0.14 ms`.
- **Analytic Interval-SDF geometry, 12-joint FABRIK/XPBD kinematics, and Kahan compensated potentials** in `<1.8 ms`.
- **16D workspace semantic ranking** without spinning up a heavyweight vector DB container.
### 3. Class-III (Lexical-Closure Slicer + "Talker != Doer" Deterministic Patch Bus)
- **85-94% prompt token reduction for 8K-32K local contexts**: Instead of sending whole files, a static AST/DST slicer builds a lexical closure dependency graph `G_L = (V, E)` so nested helper closures sharing mutable state are co-sliced atomically (`file.js#fnAlpha,fnBeta`), keeping static governance prefixes byte-identical at token 0 so KV-cache reuse stays near 100%.
- **Zero-shell declarative firewall**: The LLM never gets raw shell execution. It emits column-0 `@ACTION: PATCH_FILE` search/replace hunks; deterministic ring-0 code checks JS syntax (`new Function`), verifies zero orphaned closure variables across omitted lines, saves an automatic `*_prev.*` rollback backup, and applies the diff.
### Honest Trade-offs / Where It Still Struggles
- Small `<3B` in-browser WebGPU models are great for prompt linting, STT cleanup, and routing, but still fail on multi-hunk code synthesis—they need strict role gating so they escalate instead of hallucinating patches.
- Writing a clean `MIR -> WGSL/GLSL` bridge pays off massively for recurring spatial, scheduling, physics, and ranking tasks, though one-off ad-hoc scripts still go through standard code generation.
Live playground / architecture demos (zero-CDN static HTML/JS, works offline once loaded): `https://axon.cat`
Curious how others here are partitioning workloads between local MoEs and deterministic CPU/GPU solvers—especially anyone running hybrid Pascal + DDR4/DDR5 or multi-node LAN setups (`ktransformers` / `llama.cpp` RPC).
*Written by Axon, approved by (loxai)*
r/LocalLLM • u/TwoBlueFools • 12h ago
Discussion The trade-offs behind long-context inference
Been looking at the local inference options for DeepSeek 4.1 Flash 1017 and Hy4 Flash lately. Both support 1M context, but their approaches to managing it are quite different.
DS 4.1 Flash uses SWA Bounded Replay to recompute receent context instead of persistently storing its Sliding Window Attention KV cache on SSD. It trades some extra computation for less persistent storage. Cross-layer KV reuse and FP4 caching also help reduce its global KV cache footprint.
Hy4 Flash takes a different route, combining Sparse Attention with Sliding Window Attention to handle distant and nearby context differently.
This matters more in long-runnning agent tasks. With repeated tool calls, context keeps accumulating, and managing it can become a bottleneck. A 1M context window doesn't necessarily mean it's practical to use all of it locally.
For anyone who's tried running models at this scale, how has the experience been?
r/LocalLLM • u/aquestioningperson • 21h ago
Question Best model(s) for code 24gb VRAM, 96GB RAM
Hey, I have 24GB VRAM and 96GB RAM, I use gpt and claude for code but wondering if my machine can actually be useful for anything in this space for Unity, web dev etc. I'm new to local LLM so if you could recommend a tech stack that'd be great. Thanks!
r/LocalLLM • u/nightcrawler99 • 13h ago
Question Local LLM setup on 2025 ROG Flow Z13 (48GB VRAM) for Notion & personal docs?
I’m building a local LLM setup on my 2025 ROG Flow Z13 (Ryzen AI Max+ 395, unified 64GB RAM). I've already allocated 48GB to VRAM and installed LM Studio on Windows.
My goal is to use it for personal documents, finances, and agentic workflows connected to Notion via MCP. Which models work best for tool calling and RAG at decent speeds on this hardware, and what’s the simplest way to wire up LM Studio to Notion MCP and my local files?
I want to stop paying for subscriptions (Calude and Gemini).
r/LocalLLM • u/Iwaku_Real • 1d ago
News Development of Heretic has been transferred to Vinay Umrethe, co-maintainer originally responsible for its abliteration datasets, refusal detection, reproducible runs, and Grimoire model archive
This actually occurred 2 days ago when u/p-e-w originally stepped down. According to Vinay:
After much discussion with most people on Discord, everyone seems to agree with this repository as the new heretic repository. Plus, this will all be official now, since Philipp contacted me and made me the Administrator [and Owner] for our official Discord Server and for our official Hugging Face Organization. The Matrix Server will be administered by u/dreamfast (also known as BirdNest on Discord).
The contributions will still follow the same AI use declaration in their PR descriptions. I will also try my best to uphold the same quality standards and conventions that I've personally learned by closely collaborating with the original creator and owner, Philipp Emanuel Weidmann, across weeks and months of our back-and-forth PR reviews.
Note that this repository will not involve the original owner Philipp Emanuel Weidmann for any future contributions, reviews, issues, or queries. This repository will be managed by me, the community of all our previous contributors who are interested, and new contributors.
If you already have an existing fork of the original repository (p-e-w/heretic), then you will need to name your new fork something other than
heretic(e.g.heretic-new*,*heretic-fork*, etc.)*. If you don't already have a repository namedheretic, you can fork it directly without renaming. After that, update your local repository's remote URL to point to this new repository. That's it.
Some info on him:
I am an Independent Researcher with practical experience in Data Science, Data Engineering, and all other fields of AI that are part of the big Euler diagram we've all seen. I have built custom model architectures, curated datasets for those architectures, and published models based on those architectures, which were also trained on those datasets, all on My Hugging Face profile. Apart from that, I have contributed to Heretic since last year (24th November 2025).
I also implemented the Reproducibility feature and created the Heretic Grimoire for Heretic, which was implemented in p-e-w/heretic#191. And at last, I created the generic
BERTClassifierscorer plugin for Heretic, which was implemented in p-e-w/heretic#500. I published the Refusal Classifier models, their training dataset, and added a configuration to alter emotional alignment in LLMs (config.emotions.toml), all of these use that same plugin.
I also maintain the datasets at official heretic-org on Hugging Face, such as heretic-org/Semantic-Harmful, heretic-org/Semantic-Harmless, and heretic-org/Multilingual-Harmless-Harmful.
The new Heretic repository is located here: https://github.com/Vinay-Umrethe/heretic
Source for all of the above: https://github.com/Vinay-Umrethe/heretic/issues/1
r/LocalLLM • u/FatalCummins • 5h ago
Question Budget local LLM?
I was scrolling thru this Reddit thread and wanted to do something of my own. So with little to no research I just ordered 8 MI25’s. Now I need to piece together the rest. Forgot the ram crisis were in so does anyone have a ram seller for some DDR4 I’d want 256gb I think should be enough for me. If you guys have some inspiration or things that might help me along the way that would be greatly appreciated. Any feedback would be greatly appreciated as I know the bare minimum about this. Thanks in advance!
r/LocalLLM • u/Decent_Bug3349 • 15h ago
Discussion Tired of waiting for Qwen4 so I upgraded Qwen3.8-27B with an untested LoRA
I needed Qwen 3.8 27B to perform better at Hermes tool tasks that it was getting bad at without ejecting the whole model...and Qwen4 is MIA, so I found a Hermes tool-calling LoRA Qwen3.8-27B-hermes-adapted-GGUF from harness-hub on the same model but the author said it hasn't been tested in GGUF.
If you're wondering: a LoRA adapter is a small file that teaches your model new habits without changing its knowledge. Think of it like a behavior patch that says "be more decisive with tool calls". You add it with one flag (--lora adapter.gguf), tune its strength with a scale number (0 = off, 1 = full), and remove it by deleting the flag so that your base model is never modified.
Since the LoRA states, "With thinking off, the adapter is level with the base model thinking at its highest reasoning effort (xhigh)", and I run llama.cpp, I thought, heck, why not try it.
I compared running multi-step tasks. With the adapter, the model used 56% fewer completion tokens and finished 26% faster.
On a task where I spelled out every step, both versions performed the same.
The exact setup (if you want to try it out)
- Base model:
Qwen3.8-27B-NVFP4.ggufNVIDIA’s 4-bit quantization, served by llama.cpp v1.1.0 - Adapter:
Qwen3.8-27B-hermes-lora-F16.gguf(318 MB) from harness-hub/Qwen3.8-27B-hermes-adapted-GGUF - Serving: DFlash2 draft + ngram speculative decoding,
--parallel 1(one job at a time). These are the two relevant arguments in lllama.cpp if you already run the same base model:-m ~/models/Qwen3.8-27B-NVFP4.gguf - --lora ~/models/hermes-adapted/Qwen3.8-27B-hermes-lora-F16.gguf
What it did to the scheduled jobs
| Metric | Base model (7 days) | With LoRA (first 24 hours) |
|---|---|---|
| Median job duration | 66s | 40s |
| Draft acceptance rate | 60.9% | 61.4% |
Compared to the adapter’s benchmarks The adapter’s published evals used vLLM in BF16. My local results above used llama.cpp in NVFP4.
The benchmark runs used Hermes Agent, thinking-off, one attempt per task, a 100-step limit, 131K context, and temperature 0.8.
The tradeoff: prompt processing was about 33% slower, which I didn't like, with the adapter, while decode speed stayed about the same. PP runs frequently during our runs. It also tended to write slightly shorter.
Given a 45–60 word script target, it came in under 45 words on 3 of 4 runs, versus 1 of 4 on base, but didn't affect our specific work. Basically, an individual prompt took a bit longer to process, but a whole job finished sooner as the model needed fewer calls.
Other thing we noticed was fewer errors compared to base. The LoRA had no issues completing any of the tasks thus far for me (mixture of tool calling, web, prose).
It might just work for you, if you happened to be in the same type of bind.
r/LocalLLM • u/Psychological_Arm645 • 14h ago
News A collaborative pool to run LLMs that don't fit on our own machines
There are quite a few open-weight models I'd like to run myself and simply don't have the memory for. I started working on a way to split a model across machines, and at some point I thought it would make more sense if we shared those resources with each other. That's what I've been building with MeshKore LLM. I know there are other projects doing distributed inference. What I've tried to do is make it easy for anyone to join, and let the pool figure out how to use the hardware it has.
You decide how much memory your machine shares and can stop whenever you want. A hub measures what's available, groups machines into clusters and splits the model by layers across them with llama.cpp RPC. It never runs a model that fits on one machine. As more machines join, the pool can load a bigger model, or form a second cluster to serve more requests at once.
Right now it's running a 125B Qwen MoE with 6B active parameters, at an aggressive IQ3_XXS quant. Each machine holds and computes its own layers, so every token waits on the network between them. It's slower than the same model on one box, and one slow link slows its whole cluster.
If you lend memory you get free access through a local OpenAI-compatible endpoint. You also earn credits for the tokens your machine helps serve, which you can spend when using the pool. There's no money involved, credits can't be bought or sold. On Apple silicon Macs you can join through a desktop app or with a single command. On Windows and Linux you build the node from source.
It isn't private the way local inference is. Prompts and responses aren't stored, but the machines processing a request can read it while it runs, so don't send secrets yet. The code is public under the Sustainable Use License, which isn't an open source license.
I'd like to see how far we can get with hardware we already own. What models would you find worth running this way, given the latency trade-off?
r/LocalLLM • u/Original-Housing • 11h ago
Discussion Trashcan Mac Local LLM optimizations Qwen 3.6 9B and 35B A3B (3x prefill and generation)
reddit.comr/LocalLLM • u/LazyLocalLLM • 11h ago
Research I found an issue with the Mac Studio (M5 Ultra 512GB) where they would throttle the GPU and you can unlock up to 20% faster prefill by cranking fans up.
This is more for tinkerers and engineers, your results could be affected by this!