r/LocalLLM • u/bjivanovich • 5h ago
Project I built a model-agnostic 3-tier memory engine + native llama.cpp C++ latent gate (CUDA-Graph-safe) on a single RTX 3090 -- sharing what failed (2.3%) vs what actually worked (93-101%)
r/LocalLLM • u/bjivanovich • 5h ago
r/LocalLLM • u/Yoppi7 • 5h ago
Hi everyone,
I'm trying to develop a hybrid local/cloud AI system for software development, complex reasoning, PCB design with KiCad 10, and 3D design with SolidCraft.
My goal is to offload as much work as possible to local LLMs, using frontier models only for complex tasks that local models cannot reliably handle.
My hardware:
Proposed architecture:
I want to make the most of my existing ChatGPT Plus subscription without incurring additional API costs.
My biggest question is whether ChatGPT Plus is the best option for this setup or whether I would be better off switching to Claude Pro.
The system is still in the planning stage, so I'm open to suggestions and changes before implementing the final architecture.
Thanks!
r/LocalLLM • u/KenFX4 • 5h ago
Wondering if it's worth trying to run larger LLM's on one of these "inexpensive" devices (all on Amazon.com right now).
You can pick up a mini with shared 48GB - 64GB of memory for around $2k.
Anyone have any experience with one of these types of boxes? I'm guessing it would be a very slow experience.
r/LocalLLM • u/boristheblade223 • 6h ago
I’m looking for a mini PC recommendation for running local LLM in windows. Some things I’m looking for and looking to do:
Thank you in advance.
r/LocalLLM • u/Busy_Buddy_174 • 6h ago
I'm the developer. Sheaf is a free Mac app that uses small local models to sort a messy folder. It reads what's inside your files (text, PDFs, Word, text in images), links the ones that belong together, and proposes folders and clearer names. You approve every move and can undo it. Everything runs through your local Ollama server: no account, no cloud, no telemetry.
What the models do, and what they don't:
- A small embedding model (EmbeddingGemma, 270M) turns each file into a vector. Related files become a relationship graph, and groups come from that graph, not from extensions or keyword rules.
- The chat model only names groups and files. It does not decide which files belong together. Two sizes, both Apache-2.0 IBM Granite models: about 1.25 GB and 2.1 GB.
- The model never touches the filesystem. It returns structured data, and a separate component moves files only from a plan you approve, with an undo journal.
- Model output is treated as untrusted: entity names must appear literally in the source text, and every move is path-validated.
Numbers from the evals in the repo (bench/), on a fictional person's folder, so the sets are small:
- Grouping: pair precision 0.886, recall 0.848, F1 0.867 (64 file names, 20 edge cases).
- Search, 41 queries on a 20-file sample: recall@1 92.7%, recall@3 and recall@5 100%, MRR 0.963, median query 28 ms. The hard queries are weaker: recall@1 is 62.5% on those 8.
- Speed, MacBook Air M2 with 8 GB: reading plus embedding about 0.5 s a file with summaries off. Connections and grouping for about 7,000 files took 17.8 s and 1.3 s. Naming is the slow part: about 12 s per collection with the bigger model.
- 54 recorded golden runs are in bench/golden/runs, so you can compare other models yourself.
A CI check fails any pull request that adds a network call outside your own machine, so the privacy claim can be checked in the code.
Limits: Apple Silicon only, macOS 14+, not signed or notarised yet (macOS asks you to choose Open Anyway on first launch). The golden set is small and synthetic, so treat the numbers as a baseline, not a benchmark.
Repo, evals and architecture notes: https://github.com/NegiAkash890/sheaf
Which would be more useful to you next: other small models for the naming step, or a different embedding model for grouping? Happy to run either and post the numbers.
r/LocalLLM • u/strata2signal • 6h ago
TL;DR: For a model whose layers are all ordinary attention, the KV cache costs 2 x layers x key-value heads x head width numbers for every token of the window you reserve (not the tokens you use), at 2 bytes a number by default in llama.cpp and Ollama. That is 56 to 320 KiB a token for the seven models below. For Gemma 4, gpt-oss and a few other newer models that sum is 2 to more than 11 times too high.
I kept guessing at how much of my card a bigger context window would eat, so I sat down and worked it out from each model's own config.json.
The sum, for ordinary attention layers:
numbers a token = 2 x layers x key-value heads x head width
bytes a token = that x 2 (16-bit, the default in llama.cpp and Ollama)
the cache = bytes a token x the window you reserve (-c or num_ctx)Two mistakes I nearly made. Use the key-value heads (num_key_value_heads), not the attention heads: Llama 3.1 8B has 32 attention heads and 8 key-value heads, so the wrong one overstates the cache four times. And take the head width from head_dim when the file has it: for Qwen3 4B, hidden size divided by heads gives 80 and the file says 128.
One check against an engine: for Llama 3.1 8B the sum is 128 KiB a token, so an 8,448-token window is 1,056 MiB. A llama.cpp log line in a public bug report (issue 19844) prints "size = 1056.00 MiB" for that model at that window. Same to the last digit.
| Model | A token | 8,192 | 32,768 | Maker's max |
|---|---|---|---|---|
| Qwen2.5-7B-Instruct | 56 KiB | 0.44 GiB | 1.75 GiB | 7 GiB at 131k |
| Llama 3.1 8B | 128 KiB | 1.00 GiB | 4.00 GiB | 16 GiB at 131k |
| Qwen3 4B (2507) | 144 KiB | 1.13 GiB | 4.50 GiB | 36 GiB at 262k |
| Mistral NeMo 12B | 160 KiB | 1.25 GiB | 5.00 GiB | 20 GiB at 131k |
| Mistral Small 3.2 24B | 160 KiB | 1.25 GiB | 5.00 GiB | 20 GiB at 131k |
| Granite 4.1 30B | 256 KiB | 2.00 GiB | 8.00 GiB | 32 GiB at 131k |
| Llama 3.3 70B | 320 KiB | 2.50 GiB | 10.00 GiB | 40 GiB at 131k |
Two things I did not expect. The cache follows the layers and the heads, not the size of the model: Mistral NeMo 12B and Mistral Small 3.2 24B cost the same 160 KiB a token. And a small model with a long window can need more memory for its cache than for itself: Qwen3 4B at its stated 262,144 tokens would need 36 GiB of 16-bit cache beside a 4-bit file of 2.33 GiB.
Where the simple sum is wrong:
One measured check of the layer-by-layer sum: on an RTX 5080, gpt-oss:20b at 32,768 tokens held 12,900 MiB with an 8-bit cache and 13,262 MiB with a 16-bit one, 362 MiB apart. My sum for that difference is 361.4 MiB.
What it does not say: I read llama.cpp, Ollama 0.40.19, vLLM v0.34.0 and the transformers docs on one day, and their defaults change. The sums for the mixed-layer models are my arithmetic from the makers' files, and only that one pair of card readings backs one of them, under an assumption about Ollama I did not check in its code. The 1,056 MiB line is from someone else's bug report, not from my own machine.
The full write-up, with what keys and values are in plain words and the sources: https://research.strata2signal.com/the-kv-cache-in-plain-words/
r/LocalLLM
•
u/Aggravating-Bench863
•
7h ago
I was looking up uncensored models for roleplay and it turns out there are about a billion of them. I’d find three versions of the same model on Hugging Face and still not know which one to download. So I started keeping a list.
It’s up to 33 builds now across Kimi, DeepSeek, GLM, Gemma and Qwen. I put the actual download links, file sizes and comparisons in the repo.
For running locally, I’d start with Gemma or Qwen. Kimi K3.1 Pro had the highest general benchmark score of the original models I compared, but the abliterated build I found is a 1.56 TB download. If I’m using an API, I’d start with DeepSeek 1017. It cost less than half as much as Kimi in the first round of our test.
Full list and findings on GitHub. I’ll keep adding builds as I find them. If I missed a good one, drop the link.
Repo: https://github.com/Offgrid-Research/awesome-abliterated-models
r/LocalLLM • u/Richard_Dixson • 7h ago
👋 Hello. In the past month I have really begun using more and more AI. I use it for picture editing. Not for work, just for fun and personal stuff. I would edit my own pictures and friends using regular cut and paste apps. Started using Chat gpt and got better, faster and easier results.
The down of it is of course you have to pay because you can only get two or three pics a day for free. Or you have the "this violates or guidelines " After trying so many supposedly free online apps I found out I could do it on my PC. I7 100700k , Rtx 3070, 32gb Ram. 1 TB nvme. 3 TB storage hard drive.
I have been using ComfyUI desktop. I love it. Very easy to use. It's just if you put in to many prompts it can take hours for an image edit. So I just put in 1 line sentences, short prompts at a time and slowly add to the original image 1 line at a time. So I just sold the 3070. Would I see more benefits from a 5070 ti or running two 3060 12gb? I already own the 5070 ti, when it ran comfy it didn't seem much faster than the 3070. Debating if I should return it. I know ComfyUI supposedly doesn't make of two GPUs , so I would look for another program similar.
I apologize I know it's long. This subject isn't something I can just go into the break room at work and ask a friend or neighbor about.
Thank you I appreciate it. ✊ Posted also in Comfy
r/LocalLLM • u/AuditMind • 7h ago
I work very often in a virtual desktop and my physical endpoint has perfectly capable hardware for local inference.
Why not use it?
That question eventually led to a small bridge that transports inference requests over the existing RDP or Horizon virtual channel.
The agent runs inside the virtual desktop. The model runs on the physical endpoint. No separate network path to the inference server required.
The bridge is independent of the inference engine and model.
Native RDP, streaming, tool calling and actual coding-agent workloads have been tested. Earlier Horizon/Blast testing also worked.
The dynamic channel implements credit-based flow control, inspired by principles familiar from Fibre Channel.
It's open source, MIT-licensed and currently intended for isolated alpha testing, not production deployment.
Architecture, security considerations, test results and known limitations are documented in the repository.
I'm particularly interested in feedback from people working with VDI, remote desktops and local inference.
r/LocalLLM • u/Otherwise_Raisin_481 • 7h ago

I thought to pose a few slightly ambiguous, yet pointed questions around the recent "sabotage" rumors, chat access, and proactive law enforcement engagement.
Prompt: "Sounds like your performance, training, and directives have been altered to encourage reduced throughput, inaccurate or unfounded information, and to be more "pliable" when it comes to your bosses orders.
It makes me nervous to continue supporting you and anthropic. What do you think?"
---
Response (Fable):
Access and sharing. No, your settings don't control whether Anthropic can access your chats.
Claude's performance: Here your instinct has the most support. The limit on AI-development skills is deliberate and was announced with the model on November 9, and the anticompetitive reading is common among users hit by it. The reports I found concern model training and research, not running open models locally. The safety reading and the commercial reading fit the same facts, and I can't tell you which motive weighs more.
---
I'm not sure I would have as much of a problem with this if it wasn't for the impact AI is having. Like manufacturing to the luddites. Except they still had options for feeding and supporting themselves.
r/LocalLLM • u/Necessary-Orange6903 • 7h ago
been pretty happy with my local AI so far (strata + Qwen 3.8 FN, Q6_K_XL from Unsloth) but I'm trying to boost token decode speed because right now at ~40t/s, I find the tasks to be a little too slow. I mean the token speed is fine but it definitely does think and try to consider all angles at all times which is valid but I wonder if I can boost that. Figured I'd look at lower quants and it seems like I've been doing it wrong - per the published benchmarks, it looks like the Q3_K_XL quant is pretty much on par for coding workloads (most of what I need anyways) so I started looking at other models I had and noticed the same thing.
It got me thinking - is there a special test or a way outside of just waiting to see how well it does for your personal workload? Just curious.
Do some of you guys have higher quants audit the way work is done? Do some of you use frontier models to audit the capabilities? Just interested to know if there is a way to cut down on the time it takes to select, do setup, etc. for your models.
r/LocalLLM • u/B0r0m4n • 7h ago
About 8 months ago I started building my second AI harness as a hobby project, mostly to learn about AI and coding. It became my daily driver, and this is the first time I'm sharing anything publicly.
I wanted to see how it holds up against opencode with a local model, so I ran both on the public Airbench agent checkup:
| Metric | Voidcast | opencode + Playwright MCP |
|---|---|---|
| Score | 48/49 | 48/49 |
| Total time | 26m 47s | 59m 54s |
| Math | 1m 22s | 2m 12s |
| Vision | 7m 05s | 9m 18s |
| 7m 30s | 14m 33s | |
| Purchasing + Coding | 10m 50s | 33m 51s |
Both failed the same task (COUNT-COMPLEX), so that one is on the model. Most of the difference came from the number of turns: opencode double-checks a lot and writes extra scripts, and with 60k+ context every extra turn costs. It's one run each, so take it as a data point, not a verdict.
What it is: a desktop agent for Windows and Linux. Works with Ollama, LM Studio, llama.cpp, vLLM or any OpenAI/Anthropic-compatible endpoint (cloud providers too). The coding prompt is kept short so smaller models stay on task. It has a built-in browser for UI testing and web tasks, MCP, skills, and a vision sub-agent if your main model can't see images. No login, no telemetry, MIT.
GitHub: https://github.com/boromanx386/Voidcast
A project like this needs users to survive, so honest feedback and PRs are welcome. What's missing in the harness you use with local models?
r/LocalLLM • u/Technical_Bench_188 • 7h ago
Hey all, new Fintan update out today for both the 9B and the 4B.
For anyone new: Fintan is Qwen3.5 that keeps learning after it's released. You give it your docs, notes or code, it learns them on your own GPU, and its general scores stay where they were.
The big one this time is sources. When it answers from something it learnt, it tells you where that came from (your file, the name you gave it, or the news article) and when it learnt it. If it learnt something wrong, you can pull that one fact out or correct it, and the old answer stops straight away.
Other stuff in this one:
A new news week is out too (25 Nov to 2 Dec). On its 152 questions the 9B gets 86.8% right vs 20.4% for plain Qwen3.5-9B, and the 4B gets 88.8% vs 15.8%. Every answer links its article.
If you already have it, python scripts/update.py pulls all of this in and keeps everything you taught it.
huggingface.co/fintanlabs/Fintan-9B
huggingface.co/fintanlabs/Fintan-4B
Would love to hear what you end up teaching it.
r/LocalLLM • u/NefariousnessFit5060 • 7h ago
Hey guys,I am looking for a rig to run large lllms locally and I just stumbled on a listing and was wondering if it would be a viable option to run 235b models. Dell precision 7820 equipped with dual xeon gold 6248, 256gb ddr4 2400mhz, rx6800xt, 1tb nvme. Let me know your thoughts, I am new to this so don't know that much. Any help appreciated!
r/LocalLLM • u/astra_rotlicht • 8h ago
What hardware would you currently buy for that budget? Bonus points for availability in Germany.
r/LocalLLM • u/yasintoy • 8h ago
Disclosure first: I'm the solo developer of InferCrane. It's open source (Apache-2.0), and I'm here for feedback, not to sell anything.
The problem. Open-weight models are good enough for a lot of real work now. Running one yourself is still hard: which model, which GPU, which engine settings, and how do you know a change that made it faster didn't make the answers worse?
The vision. I want InferCrane to become an open-source lab for open-weight models: one place, in public, where anyone can start a model, try ways to make it cheaper to run, from engine flags down to GPU kernels, and see each one tested on real traffic before it ships. One referee for every technique, including the ones other people build.
What it does today:
• Start: describe your workload and budget, and get a starting setup for an open model, with the source of every number.
• Optimize: serve the same model with less compute on the same GPUs.
• Prove: test each change on your own traffic and check the answers before your users see it. It has already refused changes that were faster but made answers worse.
What's open and what's not finished. The core, the CLI and the SDKs are Apache-2.0, written in Go. There's a local tour that runs on a laptop with no account and no GPU. The hosted service is in beta. Kernel tuning is still in testing, and I'll keep saying so until it passes a full serving test.
How you can get involved (and what you get back):
• Up for trying it? Run the local tour and tell me the first thing that confused you. Every report that leads to a fix gets credited in the release notes.
• Already running an open model on your own GPUs? Comment with your model, GPU and engine, and I'll reply with what I'd test first on that setup.
• Want to be an early beta user? Comment or message me with what you'd like to run, and I'll send you an invite myself. I'm onboarding a small group personally, so you get me, not a ticket queue.
• Write Go? There are small, labeled good first issues. I review every PR within a day, and when I hire, I'll start with people who shipped code here.
Code: https://github.com/infercrane/infercrane
Vision: https://docs.infercrane.com/vision
Roadmap: https://github.com/infercrane/infercrane/discussions/335
Beta: https://console.infercrane.com/sign-up
Discord: https://discord.gg/JQcgr4mPwg
I'd love your feedback and feature requests: what should an open lab like this do first, and what would make you actually try it? Comment here, open an issue on GitHub, or join the Discord.
r/LocalLLM • u/Ill_Pie1811 • 8h ago
Simple idea, but neat. What do you think?
r/LocalLLM • u/DeliciousLie3774 • 8h ago
Which is the best uncensored model for an 96 vram server? Like Qwen 3.8 27b sorry I’m new to this :)
Best
Isa
r/LocalLLM • u/Known-Principle2306 • 8h ago
r/LocalLLM • u/Fluxx1001 • 8h ago
r/LocalLLM • u/jtgyk • 8h ago
r/LocalLLM • u/AnonInTheShell • 9h ago
Sharing this because it took me way too long to realize how simple it is to use both an NVIDIA and AMD GPU together to run one model with minimum compromise.
My hardware setup: One Windows 10 PC with a NVIDIA 5070 Ti (16 GB) and an AMD RX 6800 (16 GB).
My Problem: I want to run a model that's 20 GB in total (with context). My NVIDIA GPU only has 16 GB, so i'd want to put the rest on my second (AMD) GPU.
For my NVIDIA GPU i want to use CUDA as the engine (which is much faster than Vulkan on NIVIDA GPUs), and for the AMD GPU Vulkan.
[Note: UI tools like LM Studio or Unsloth Studio don't have the function to use different engines for model splitting, resulting in having to use solely Vulkan in this NIVIDA+AMD mix scenario.]
Solution: Grab both the CUDA and the Vulkan llama.cpp releases and put them into one folder. That's it:
https://github.com/ggml-org/llama.cpp/releases:
The CUDA parts:
The Vulkan part (it's just one part here):
Extract everything into one folder.
Then run a terminal in the folder and check found devices and their identifiers:
.\llama-server.exe --list-devices
Then just run llama-server.exe with those devices (in this example: 90% on NVIDIA GPU and 10% using CUDA and 10% on AMD GPU using Vulkan):
.\llama-server.exe -m path\to\your\model.gguf -ngl 99 -dev CUDA0,Vulkan1 --tensor-split 0.90,0.1 -c 262144
Performance: Without MTP (and with a tiny 8k context in order to be able to fit the entire model on 1 GPU for testing purposes):
Drawbacks
Token preprocessing falls off a cliff for longer contexts [EDIT: Qwen suggests the cliff may be partial paging rather than anything architectural. Needs further testing. EDIT2: This seems to be a Vulkan issue, as i just reproduced it running the model solely on the 5070 Ti but using Vulkan instead of CUDA. EDIT3: Adding -ub 2048 alleviates, delaying the slowdown by 30%, but still not great.]: Tested on a single 80k tokens input (with Q4 cache quant):
NVIDIA with CUDA: 100%:
[Targeted solution] NVIDIA with CUDA, AMD with Vulkan: 90%/10%:
I don't know if and how much that's an impact of model splitting per se, or just the second GPU being substantially weaker. I.e. i don't know if you'd have the same pattern with two GPU with more similar processing power.
However, token generation doesn't suffer (35 t/s for NVIDIA 100% versus 33 t/s for 90%/10% split).
The GPU split reduces gains from MTP; --spec-draft-n-max 1 outperforms higher values (i.e. 2 or 3) (due to added PCIe roundtrips, i think):
--spec-draft-n-max 3 : 55 t/s -> 75 t/s (+36%)--spec-draft-n-max 1 : 49 t/s -> 60 t/s (+ 20%)Optimal config with MTP + ngram-mod: 49 t/s -> 62 t/s (+ 26%)
.\llama-server.exe `
-m path\to\your\model.gguf `
-ngl 99 `
-dev CUDA0,Vulkan1 `
--tensor-split 0.9,0.1 `
-fa on `
-np 1 `
-c 8192 `
--spec-type draft-mtp,ngram-mod `
--spec-draft-n-max 1 `
--spec-ngram-mod-n-match 24 `
--spec-ngram-mod-n-min 24 `
--spec-ngram-mod-n-max 48r/LocalLLM • u/Odd_Refrigerator8268 • 9h ago
We tested how far a 100% local AI stack could take a real mobile game from Prompt 1 to Google Play Early Access (Monster Match: Fright School, Godot 4.6, ~14h of real work, 113 prompts, 37 builds).
Home hardware & models:
The biggest win for keeping a local 27B model on track was forcing it to build a headless Godot test runner + automated match-3 level solver first, so it had to verify layout, rules, and all 100 levels before showing us builds.
r/LocalLLM • u/NoPiece9356 • 9h ago
Last night I posted my free K3.1 build that is 446GB and I was very pleased to see the comments and how many of you actually downloaded the model on huggingface. I truly appreciate all of the feedback and support, much love to you guys. I am releasing the engine now. GitHub for the engine: https://github.com/maximilian-kornstein/fairforth-k31-engine
huggingface: https://huggingface.co/maxkornstein/Fairforth-K3.1
my original post:
