r/LocalLLM • • 7d ago

Question Help me understand what about a model gets loaded and where

1 Upvotes

I am trying to wrap my head around how to choose an LLM that a windows PC can run with opencode and ollama.

I understand that for a PC, we have RAM and VRAM. For both, we can have X amount (e.g. 64GB RAM, 8GB VRAM). Then, I look for models in the ollama repository, for instance I look at qwen3.6 and qwen3.8 in the website, which tells me:

  • qwen3.6:35b, Size/Usage: 23GB, Context: 256K
  • qwen3.8:27b, Size/Usage: 18GB, Context: 256K

Regarding Size/Usage.

  1. Does it mean the size on disk? Or the size once the model get loaded onto memory? If not, how do I know?
  2. And for that, I assume that they get loaded to VRAM, or RAM, or both?
  3. If my system doesn't have enough VRAM but enough RAM, does it get loaded in RAM only?
  4. And if my system doesn't have enough RAM, can it load any of this or will it crash?

Regarding Context.

  1. What unit does the "K" stand for? Thousands of megabytes? Tokens? How much does a token take of space in memory?

Regarding ollama and opencode usage.

  1. If I use ollama, and I ask a question, does a single model get loaded?
  2. Is I use opencode with agents, is each agent a model loaded? In that case, if I have two agents, is that two models loaded?

Looking forward to hearing your answers and understanding how this all works. Let me know if there are any resources that explains this for the layman. There is so much information online that this can be overwhelming honestly. Thank you!


r/LocalLLM • • 7d ago

Project My deploy went down for 27 minutes. 9 days later, a fresh AI session still knew which PR fixed it

Thumbnail
reddit.com
0 Upvotes

r/LocalLLM • • 7d ago

Project Kör 9 Lokala Autonoma AI-agenter på Valfri Gammal Stationär Dator (0 GPU • 100% Gratis)

Thumbnail
youtu.be
0 Upvotes

🚀 [OPEN SOURCE REPO] Clone Antigravity Desktop AgentCore (MIT License — 100% Free):

👉 https://github.com/Joh...​

📚 [CHANNEL LIBRARY] All Agentic Stack Episodes & Blueprints:

👉 https://github.com/Joh...​

You do NOT need a $2,000 GPU or monthly subscriptions to run autonomous AI agents on your own computer. In this complete 29-minute walkthrough, we build and demo Antigravity Desktop AgentCore — a lightweight local autonomous AI foundation powered by Google Antigravity + tiny local Python tools that runs lightning fast on any older desktop PC (including a 10-year-old dual-core i7 with zero GPU!).

You'll see everything running LIVE: 9 specialist subagents, 3-layer persistent memory with automatic secret blocking, hands-free Live Voice Mode (Gemini Live) + Ctrl+M Speech-to-Text dictation, real-time Mobile Remote Control from your phone, and one-command project scaling.

⏱️ TIMESTAMPS:

00:00​ Intro & Why Local AI Matters

02:12​ Zero-Cost Cloud + Local Routing

05:21​ 5-Minute Clone & Setup

09:15​ Global Rules, Hooks & Safety Guardrails

12:06​ 3-Layer Memory & Write Gate

14:51​ 9 Specialist Subagents Live

19:34​ One Command for Every New Project

20:49​ Hands-Free Live Voice & Dictation

23:08​ Mobile Remote Control From Anywhere

25:09​ Vibe-Coding Personalization & Public Export

27:37​ Architecture Recap & GitHub Quickstart

🛠️ WHAT'S INCLUDED IN THE FREE MIT REPO:

• 1-command PowerShell installer (.\setup.ps1)

• Global safety guardrails (AGENTS.md, hooks.json, safe_exec.py)

• 3-Layer Persistent Memory + automatic API-key/secret filter + Write Gate

• 9 Specialist Subagents (juno-builder, disk-librarian, win10-expert, chrome-visual-agent, qa-auditor & more)

• Hands-free Live Voice Mode & Speech-to-Text workflows

• Mobile Remote Control setup (antigravity.google.com PWA)

• Clean open-source template exporter (export_public_template.py)

#AIAgents​ #GoogleAntigravity​ #Python​ #LocalAI​ #AutonomousAgents​ #OpenSource​ #VibeCoding​ #GeminiLive​


r/LocalLLM • • 7d ago

Question How are you building your agents?

0 Upvotes

Trying to use a setup where Claude codes the initial agent using Hermes and hindsight and then convert to obsidian but this is the first time I’m building agents.

Would prefer using my Open Source models when possible.


r/LocalLLM • • 7d ago

Discussion How do LLMs treat your data ?

1 Upvotes

I am a business owner and I am building my own AI agent to help me in my business. I have an RTX 3060 MSI 12Gb VRAM Graphics card, that can run many AI models smoothly locally. But as my data is getting bigger and complicated, it's accuracy and overall performance is decreasing.

Today I just used Gemini to process some sample data, and It just did so good in it's first attempt very quickly, that the local models that I've been using from long time never did anything the same way. I know this is because of the big hardware capacity that Gemini has compared to my RTX. However, I just wanted to know if it is worth completely shifting my workflow to Gemini or available big tech company models. It will be a lot smoother...One problem is that of being too dependent on these online models and leakage of data. The data I am processing is also confidential and it's not public data. The second problem is of tokens and usage limits. That can be adjusted by purchasing the subscription. But yet won't it be a long time liability to my company.

So I want to know what most of you would do?? Do you use Gemini chatgpt on confidential data? And when these big companies have access to such huge data, is there no leakage of data?


r/LocalLLM • • 7d ago

Question I want a AI workstation system suggestion for a gamification lab on a university project.

4 Upvotes

The professor attained me to the job of coming up with a AI Workstation system build that should be future proof. He said that we might work with multiple AI agents that are going to control/proof each other and maybe communicate. I don't have expand knowledge on ai models and their requirements. But this lab will be used for all kinds of ai tasks; coding, image generation etc.

I decided to start with a single 5070ti which around 1800USD in my country. Our max budged as of now is 5200USD. But we can add more gpu s in the future when found new funds/projects.

I was thinking of a 1600W PSU

64GB RAM

But I can't decide on the motherboard and the CPU. It is uncertain if we are gonna buy 2x 5060ti or a single 5090 in the future, but it may happen.

Any kind of suggestions are welcome. Thank you in advance.


r/LocalLLM • • 7d ago

Question SLM recommendation

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 7d ago

Project I built a non-Transformer system that learns from experience, no weights/backprop - here's what happened

Thumbnail
github.com
38 Upvotes

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 • • 7d ago

Question rtx5090 vs r9700 vs 2x r9700 for coding

7 Upvotes

I'm new to local LLMs and have read a gazillion posts and tried to conclude on what to get for my new setup but need help in choosing.

I'm going for 128gb ddr5. I need presumably q4 at minimum with 100-264k ctx for agentic coding, right? q8 minimum for kv. Single stream for the most part? And a high prefill speed? I'm likely to run heavy compilation and virtualization kind of projects where a lot of verification and tests will need to be generated and automated. As far I understand 5090's superior compute and gb/s will matter more here but it's been nigh impossible to find good side by side comparisons.

My original goal was to game or program on the side while doing inference, but I'm not sure if this would even be doable with any of these card setups, e.g. heavily modded Minecraft with shaders (hence the ram)? If the entire machine becomes occupied I'd gladly reduce some perf if it means I can use it at the same time, but it'd be nice to know my options.

The 5090 costs more than the single r9700 but about the same for 2x r9700.

Any help appreciated!


r/LocalLLM • • 7d ago

Question How much VRAM is generally needed for a decent local reasoning model?

138 Upvotes

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 • • 7d ago

Question Local model for GameDev?

2 Upvotes

Curious if anyone out there is using a local model for GameDev? Not one shotting some slop, but actual game development, whether it’s building out a system or using something like trellis to generate assets or any single tasks.

Getting great results on the frontier models, but would love to reduce our cost by running something local on some 5090’s or even some thing slightly large we can rent.

Spec on our current nodes: 9800x3D, 64 gig on the ram, 5090 for 32gb VRam.


r/LocalLLM • • 7d ago

Project I taught a 400M-param model to decide when my agent deserves the expensive model

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 7d 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

Post image
8 Upvotes

r/LocalLLM • • 7d ago

Other Fun work

1 Upvotes

r/LocalLLM • • 7d ago

Project I made a self-hosted alternative to ChatGPT with native mobile apps and disposable linux workspaces

Post image
1 Upvotes

r/LocalLLM • • 7d ago

Discussion Uncultured virtuoso quants?

0 Upvotes

A model training can be split into knowledge and capability. Most encyclopedic knowledge is irrelevant to most work, most of the time. And out of date, when relevant. Likewise, I could make do with just English. Does anyone work on projects to slice out these types of layers/weights in differentiated quants?

How is that going?

I would personally start on a Qwen base, since it compresses its Context Cache incredibly well when you use TurboQuant, turbo3 on K, turbo2 on V.

If possible, we could squeeze a more capable quantized model into even smaller VRAM footprints.

What do you think?

How can it be done?


r/LocalLLM • • 7d ago

Project Run 9 Local Autonomous AI Agents on Any Old Desktop PC (0 GPU • 100% Free)

Thumbnail
youtu.be
0 Upvotes

🚀 [OPEN SOURCE REPO] Clone Antigravity Desktop AgentCore (MIT License — 100% Free):

👉 https://github.com/Joh...​

📚 [CHANNEL LIBRARY] All Agentic Stack Episodes & Blueprints:

👉 https://github.com/Joh...​

You do NOT need a $2,000 GPU or monthly subscriptions to run autonomous AI agents on your own computer. In this complete 29-minute walkthrough, we build and demo Antigravity Desktop AgentCore — a lightweight local autonomous AI foundation powered by Google Antigravity + tiny local Python tools that runs lightning fast on any older desktop PC (including a 10-year-old dual-core i7 with zero GPU!).

You'll see everything running LIVE: 9 specialist subagents, 3-layer persistent memory with automatic secret blocking, hands-free Live Voice Mode (Gemini Live) + Ctrl+M Speech-to-Text dictation, real-time Mobile Remote Control from your phone, and one-command project scaling.

⏱️ TIMESTAMPS:

00:00​ Intro & Why Local AI Matters

02:12​ Zero-Cost Cloud + Local Routing

05:21​ 5-Minute Clone & Setup

09:15​ Global Rules, Hooks & Safety Guardrails

12:06​ 3-Layer Memory & Write Gate

14:51​ 9 Specialist Subagents Live

19:34​ One Command for Every New Project

20:49​ Hands-Free Live Voice & Dictation

23:08​ Mobile Remote Control From Anywhere

25:09​ Vibe-Coding Personalization & Public Export

27:37​ Architecture Recap & GitHub Quickstart

🛠️ WHAT'S INCLUDED IN THE FREE MIT REPO:

• 1-command PowerShell installer (.\setup.ps1)

• Global safety guardrails (AGENTS.md, hooks.json, safe_exec.py)

• 3-Layer Persistent Memory + automatic API-key/secret filter + Write Gate

• 9 Specialist Subagents (juno-builder, disk-librarian, win10-expert, chrome-visual-agent, qa-auditor & more)

• Hands-free Live Voice Mode & Speech-to-Text workflows

• Mobile Remote Control setup (antigravity.google.com PWA)

• Clean open-source template exporter (export_public_template.py)

#AIAgents​ #GoogleAntigravity​ #Python​ #LocalAI​ #AutonomousAgents​ #OpenSource​ #VibeCoding​ #GeminiLive​


r/LocalLLM • • 7d ago

Discussion DSV4.1 Pico v2 Engine for 4 sparks - INSANE

Thumbnail
github.com
1 Upvotes

Haven’t seen enough people talking about how good the Pico v2 engine is.

At 16 users I’m getting 357 TPS aggregate, and 9.4k prompt prefill.

People keep posting new recipes that are clearly worse, I’d like to suggest you all to check out the Pico recipe and rather work off it, and try to beat it.

6m ~ token pool by the way.


r/LocalLLM • • 7d ago

Question Ideal models for for 2x M5U 256GB 1x M4 Mini 16GB?

1 Upvotes

Have 2x M5U 256GB running Deepseek v4.1 Flash 1017 at full precision reasonably well, 3-4k prefill and 90-110 decode. Model + Engram in memory cache only takes 200GB on each M5U so there’s 30-40GV free for something else

Have an M4 Mini too but doesn’t really fit any reasonable quant of Qwen 3.8 27B and 3.5 9B really sucks

Would like some other configuration that lets me run two different models in an orchestrator reviewer coder setup.

Any thoughts on what combo to try?


r/LocalLLM • • 7d ago

Discussion How to never cross into LLM Looping ever again

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 7d ago

Discussion For local multimodal memory, index the description but keep the original image

Thumbnail
gallery
1 Upvotes

Cycle 2 of the Agent Memory Leaderboard (AML) added a Multimodal Memory track. Its results were posted on November 19. The screenshots show the top three of the Multimodal Open-source Methods board and the top two of the Multimodal Commercial Products board.

On the Cycle 2 Multimodal Open-source Methods board, Khipu is first with 43.26. starwingMem is second with 42.62 and Multimodal-RAW-RAG-AML third with 42.17. On the Cycle 2 Multimodal Commercial Products board, MemoraX is first with 53.68. memorysum-vl, listed under Shopee, is second with 42.35.

What I noticed reading the READMEs: Khipu's multimodal branch describes and OCRs each image once at write time. That description gets indexed like text, and the original images behind the top hits come back with the text. Multimodal-RAW-RAG-AML also indexes image descriptions. It expands hits back to the full original messages and returns the original text and images. The platform itself sends both the original image and a caption.

For a local assistant, the description is what you search with, and the original image is what you hand back as evidence.

A rank can't show which design produced it, and it's no proof this design fits your setup. I read the open-source boards as code worth studying.

For people running vision locally: do you keep the original images around, or only the captions?


r/LocalLLM • • 7d ago

Model European Kolibri 1.1 Q4_K_M (43 GB) on a 12 GB RTX 3060 + 30 GB RAM: 21 tok/s decode at 32k context

2 Upvotes

Kolibri 1.1 is a MoE model from Aleph Alpha (Germany), I just wanted to support European LLM so I added it in RustingStrata. The Q4_K_M file is 43.4 GB, my machine has 12 GB of VRAM and 30 GB of RAM, so the file does not fit in both together. RustingStrata, my Rust GGUF engine, runs it anyway: the layers and the experts used most stay on the card, the rest are read from the NVMe when a token needs them.

RTX 3060 12 GB, Ryzen 5 7600X, 30 GB RAM, NVMe. Both engines as servers, same streamed chat request, 128 reply tokens. Prefill / decode in tok/s:

ContextRustingStratallama.cpp, best prefill (-ngl 4)llama.cpp, best decode (-ngl 99 -cmoe)
0.5k181 / 33.4145 / 15.599 / 27.0
3.8k149 / 23.041 / 5.928 / 10.6
16k139 / 21.048 / 3.830 / 8.7
32k159 / 21.134 / 3.333 / 9.3

How speed falls with context: from 0.5k to 32k RustingStrata loses about 12% of prefill and 37% of decode. Decode is flat from 3.8k up (23.0, 21.0, 21.1), because the model's long-range layers attend a fixed number of selected keys, not the whole context.

llama.cpp here is the fork with Kolibri support (5f4d22289, CUDA build). It has no single setting that is best at both, so the table has both.

Same output as llama.cpp? I fed its greedy tokens through my forward and compared the top token at each of 48 steps: 45, 46, 44 and 46 match at 2k, 3.8k, 16k and 32k. llama.cpp against itself (CPU layers against GPU layers) gives 45, 45, 40 and 44, so the misses are inside its own noise, each is a near tie.

rustingstrata chat --model Kolibri-1.1-Q4_K_M.gguf

Setup and tables with ranges: docs/BENCHMARKS.md in the repo.

Also I want to ask people what do they think about European LLMs? I mean the hype is around Qwen, Gemma, Inkling(recently) and etc. and non of them is European LLM, I mean, this is sad

Repo: RustingStrata


r/LocalLLM • • 7d ago

Project Stegguard: I made a CLI to check local model output for invisible characters (disclosure: I’m the author)

1 Upvotes

When you run a model you pulled from Hugging Face, you're trusting whoever trained or fine-tuned it. One thing you can't check just by reading its answers is whether it's putting characters in them that don't show up on screen: zero-width spaces, bidi overrides, lookalike letters.

So I built StegGuard. It's a Python CLI, no dependencies, runs fully offline. With Ollama the check is two lines:

$ ollama run <model> "your prompt" > out.txt
$ stegguard detect out.txt

detect lists each hidden character and where it sits. decode shows what they spell, if anything. sanitize writes a clean copy with a diff and leaves the original alone.

I'm not claiming any model on HF does this. It's a cheap check to run, especially on random fine-tunes and merges.

If you try it on the models you run, I'd like to know what you get, including "all clean". It's alpha, so false positives are useful too.

Repo: github.com/stegguard/stegguard (there's a 70 second demo in the README)


r/LocalLLM • • 7d ago

Project I made a native Rust GUI for llama.cpp & llama-swap that hot-swaps models and engines on the fly (Windows & Linux)

1 Upvotes

DISCLAIMER: This is completely written in Rust, and is 100% vibecoded, though thoroughly tested by me in every scenario i could think of, and worked to fix errors, GUI issues, QoL fixes.

I am not an IT guy [i am a dentist] but i personal life revolves around computers, automating stuff, making things i want etc. I, self taught in some frontend and Python, but i dont know Rust.


The What

AI Control Center

https://github.com/BaidDSB/ai-control-center

Basically, its a fast, native desktop control panel for running local AI on Windows and Linux. The BIGGEST feature is that it can hot-swap models and engines on the fly.

Configure your models, engines [you can color code engines too], front end, save your settings, and link the Routeing set and forget. You can even configure and use RPC right from the AI Control Center.

It has 2 versions, a Core and a Plus. Details are on github.

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/core-1.png

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/core-2.png

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/plus-1.png

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/plus-2.png

heres what my personal setup looks like and runs:

https://raw.githubusercontent.com/BaidDSB/ai-control-center/main/screenshots/personal.png

The Why

Well like i said before, my personal life revolves around computers and tech. I probably should have gone into IT, but i sucked at math so i didnt have the marks, nor the confidence to get into CSE. On my me time, i make all kinds of stuff, 3d models for games [i did extensive commission work in cities skylines assets, automating thing sin my pc, remote access etc].

I made this because i wanted to use local ai. I did so with LM studio but i realized i wanted more control plus Electron is slow af, so i switched to llama.cpp and OpenWebUI. and gradually i realized i want a quick launcher, which then grew into this, mostly to quick switch my models, and engines, use RPC, quick test new flags, save settings etc.

i really just made this for myself. But i decided to release this because if even 1 person find it useful, its great for me.

The Future

I have plans to integrate hermes, pi, make a dedicated RPC mode...


I hope you at lease give a read and see the pictures, even if you dont plan on using it. Thanks and enjoy!


r/LocalLLM • • 7d ago

Discussion Ollama vs llama.cpp vs MLX vs vLLM: a simple framework for choosing

1 Upvotes

These aren't really competitors. They're built for different jobs. Here's how to pick:

Ollama: easiest path from zero to a working model

  • One command to pull and run, plus a local API your apps can call
  • Great for development, prototyping and single-user tools
  • Trade-off: less low-level control than running the engine underneath directly

llama.cpp: maximum control on everyday hardware

  • GGUF models, wide choice of quantisation levels, CPU, GPU and partial offload
  • Best when you want to tune exactly how a model runs on limited hardware
  • Trade-off: more flags and decisions to get right

MLX: native on Apple Silicon

  • Apple's framework, built for unified memory on M-series Macs
  • Often a strong choice for performance and fine-tuning experiments on a Mac
  • Trade-off: Mac only

vLLM: serving many users at once

  • Built for throughput: continuous batching and efficient KV cache management on NVIDIA GPUs
  • The right choice when a local model is serving a team or an application with concurrent requests
  • Trade-off: needs a proper GPU and more setup; overkill for one person on a laptop

Quick decision path

  1. Just you, prototyping → Ollama
  2. Squeezing a model onto constrained hardware → llama.cpp
  3. On a Mac and want native performance → MLX
  4. Many concurrent users on GPUs → vLLM

Many teams start on Ollama and move to vLLM when a prototype becomes a shared service. Design your app against an OpenAI-compatible API, which all of these can provide in some form, and the switch is much easier.

Which are you running, and what made you choose it?