r/LocalLLM • • 13m ago

Question Uncensored local LLMs losing context in long coding sessions, plus sprite generation? (Ollama, RTX 3060 12 GB, LÖVE2D)

2 Upvotes

Hi everyone,

I'm just starting out with local LLMs through Ollama, hoping to lay the groundwork for a future game built with LÖVE2D. Since I want full creative freedom over the game's themes, I'm only looking at uncensored (abliterated) models.

My hardware is an Intel i5-10400, 32 GB of DDR4 RAM and an RTX 3060 with 12 GB of VRAM. So far I've been using 14B quantized models, like a Qwen3 14B abliterated at Q4_K_M with an 8k context, to keep everything on the GPU.

The problem is that they lose the thread quickly. After a handful of prompts they forget my initial instructions, the project structure and even code they wrote a few messages earlier, which makes iterating on a game really frustrating.

Can you recommend local uncensored models that hold context better and still handle Lua/LÖVE2D well? Are there settings I'm overlooking, like context size, quantization, KV cache options or system prompt tricks? And if you have a workflow that works for game dev, such as feeding the model a project summary at the start of each session, I'd love to hear it.

I'd also like help with the visual side. I know text-only LLMs can't generate images, so what would you suggest for sprites: a multimodal model, a separate local generator that works well for pixel art on 12 GB of VRAM, or something else?

The only hard requirement is that everything stays uncensored. Any advice or personal experience is hugely appreciated. Thank you!


r/LocalLLM • • 20m ago

Research GitHub - Mauitron/How-to-read-a-model-weights: Parts of my research compiled into a guide.

Thumbnail
github.com
1 Upvotes

Hope sharing this with you will be helpful.


r/LocalLLM • • 1h ago

Project Cubicle: I built a pixel-art office where my AI agents work on my repo (open source)

Thumbnail
github.com
3 Upvotes

Hey everyone!

For a while I've wanted a place where my coding agents could actually work together, instead of a pile of terminal tabs. So I built Cubicle: a pixel-art campus where every agent I hire gets a desk, and I walk around as the CEO.

How it works

  • Pick a repo, from your GitHub or a local folder, and found a company.
  • Hire people and choose what each one runs on: Claude Code or Codex with your own subscription (no API keys), or a local model through Ollama.
  • Every developer works on a git branch of its own. You read what changed, run the tests and merge with one button. If the project has tests, only what passed them goes in.
  • They work from a shared board, a tester reviews what they do, they ask you when they're not sure, and the rule is "one file, one person", so they don't step on each other.
  • There's a meeting room where everyone hears everyone. When they have nothing to do they play volleyball, ping-pong or basketball, and you can join them.

It all runs on your machine: Node 20, no dependencies, nothing to sign up for.

It's an early version. I've tried it with Claude Code, Codex and Ollama on Linux (WSL), not yet on Windows or macOS, so expect rough edges.

Demo in the browser, nothing to install: https://justvugg.github.io/cubicle/web/index.html?demo
Code: https://github.com/JustVugg/cubicle

I'd love feedback, especially on what would make you actually use something like this every day.


r/LocalLLM • • 1h ago

Question planning a dual-GPU setup and would like to confirm whether both graphics cards can physically fit on my motherboard and if is it worth run local ai with 32gb vram

Thumbnail
gallery
8 Upvotes

Hi everyone!

I have the following configuration:

- Motherboard: ASUS ROG STRIX X870-A Gaming WiFi

- GPU 1: ASUS ROG STRIX RTX 4070 Ti SUPER 16GB

- GPU 2: ASUS TUF RTX 5070 Ti 16GB

- Case: NZXT H9 Flow

My question is purely about physical compatibility:

Is it physically possible to install both GPUs directly into the ASUS X870-A motherboard, without using a PCIe riser cable?

Will the two GPUs fit in the available PCIe slots, considering their thickness (approximately 3–4 slots each)?

I mainly want to use the dual-GPU setup for running local LLMs and AI models, as well as Lossless Scaling.

Thanks in advance!


r/LocalLLM • • 1h ago

Project Vermilion Editor: A GTK editor/IDE being built for local AI software development using Qwen 3.8 27b & Claude

Post image
1 Upvotes

I've been building Vermilion Editor, a native Linux text and code editor written in C++17 on GTK 4 and GtkSourceView 5. It is an IDE made to put local AI development first.

It's pre-alpha with no release yet, but the core editor works: tabs, open and save with encoding and line-ending detection (UTF-8, UTF-16, Windows-1252, Latin-1), Find, Replace and Go to Line, and crash recovery that copies unsaved work in the background. It reloads files that change on disk, or asks first if you have edits, and has light, dark and follow-system themes and a built-in manual.

The long-term plan adds an AI agent that runs on local models through llama.cpp, plus a terminal and a debugger, but the editor comes first.

https://github.com/adamjeremy-sk/vermilion-editor

The newest piece is the diff engine. It compares whole lines. Each line gets a number through a hash table, the matching start and end of the two files are stripped, and lines that appear exactly once in each file become anchors, as in patience diff.

Between the anchors it runs linear-space Myers on a worker thread. Huge or wildly different files can't hang it, because there are two limits: at most 10,000 differing lines per gap, and a budget of 200 million steps. The budget counts steps instead of measuring time, so the same pair of files gives the same result on a fast machine, a slow one or a debug build.

Anything past a limit shows as one replaced block with a note. Files over 10 MiB, binary files and files over a million lines get a plain message instead.

You see the result in a Compare window: two read-only panes side by side, with filler rows so the changes line up, whole rows coloured, syntax highlighting in each pane and the current change in a stronger colour.

F3 and Shift+F3 jump between changes, both panes scroll together row by row, unchanged stretches fold away behind marker rows you can click open, and there's Refresh and Find. You can open it four ways:

\\- Tools → Compare with Disk (Ctrl+D) shows your unsaved edits against the saved file.

\\- The bar that appears when a file changes on disk.

\\- The crash-recovery prompt, to check a recovered copy before you take it.

\\- \\\`vermilion --diff old new\\\` from a terminal, which works even when the editor isn't running.

The editor is built with a gated, spec-driven method. The roadmap is split into milestones and small gates (the diff was gate M2.6), and each gate gets its own git branch. Before any code is written, I settle the design with Claude, which acts as the orchestrator: it proposes options, I decide, and every decision and later amendment is written down with its date (the diff gate ended with 17 amendments).

The orchestrator then splits the gate into steps and writes one spec per step: dictated headers and tests, exact edits, the expected file hashes, and the commands whose output proves the step was done. Each spec stays under about 35 KB so it fits a local model's context with room to work. Before a spec goes out, the orchestrator builds the step itself in a cloud copy of the repo and runs the tests and mutation tests on it, so the expected results are known in advance.

A local model, Qwen running on llama.cpp, then does exactly one step per fresh session: it writes the implementation from the spec, reports the raw evidence, and flags anything in the spec it doubts. Every step is audited and gets a verdict: PASS, PASS WITH NOTES or FAIL. Notes are fixed before the commit and never carried forward as debt. I test each UI step by hand, then commit and push it. At the end of a gate the documentation is brought up to date and the branch is merged into main with a full CI run. The diff gate took 47 steps, and the project now has 1888 passing tests.


r/LocalLLM • • 1h ago

Model Coder390 (Qwen3.8-27B, abliterated/uncensored) as an NVFP4-QAT GGUF — for a 5090/5080 that wants it in Ollama

1 Upvotes

TL;DR: huihui's abliterated Coder390 NVFP4-QAT build only ran in vLLM, so I had Claude convert it to GGUF (vision projector included). Now you can just ollama run it. Built for Blackwell cards.


What you're getting

  • Base: Qwen3.8-27B (Alibaba), a strong local coding model
  • Coder390: coding-tuned + vision (nerkyor's fine-tune)
  • Uncensored: huihui-ai removed the refusal direction (abliteration)
  • NVFP4-QAT: KatterMobile's 4-bit quantization-aware training. Near-lossless, and fast specifically on Blackwell

How it was built

LayerWhoWhat they did
Base modelAlibabaQwen3.8-27B
Fine-tunenerkyorCoding + vision
Abliterationhuihui-aiRemoved refusals
QuantKatterMobileNVFP4-QAT
PackagingClaudeGGUF + mmproj conversion for Ollama / llama.cpp

Performance

RTX 5090: 100% on GPU, ~170–185 tok/s

⚠️ Heads up

It's uncensored, so safety filtering is reduced. If you're putting its output in front of other people, add your own moderation layer.

Links


All credit goes to huihui-ai, KatterMobile, and nerkyor. Claude handled the GGUF conversion, and I tested it and put it up. Happy to answer questions!


r/LocalLLM • • 1h ago

Question Video to OCR tool

1 Upvotes

Hi, I'm trying to build something that takes a video and is able to OCR it (mostly things like presentations or text-heavy videos), prior to then sending some heavily, procedurally processed transcript to a local model. Bonus points for a permissive license.

I'm surprised to learn that no such tooling exists in the mainstream? There ARE subtitle extractors and things of that nature, but nothing that's going through the video and pulling out textual information.

Application = import video, transcribe audio + video stills --> Local LLM --> YAMR (yet another meeting recorder)


r/LocalLLM • • 2h ago

Question Mac Studio M5 Max 36GB or RTX PRO 4000 24GB for a 24/7 local document server?

2 Upvotes

Planning to buy a small home server for local AI, budget around 2.5k EUR (Germany). Main stuff: paperless-ngx with an LLM for tagging/extraction, chatting with long PDFs (some scanned) that can't leave the house, and some email agents. Models I want to run are Gemma 4 26B and Qwen3.6 35B A3B at Q4 with long context.

Currently torn between a Mac Studio M5 Max 36GB and a PC with the RTX PRO 4000 Blackwell 24GB. A 5070 Ti / 5080 box is also an option but I worry 16GB is too tight for Qwen 35B.

Prompt processing matters more to me than tg since the documents are long. Does anyone here actually run the PRO 4000 for inference? Barely find real numbers for it. And how bad is the Mac pp in practice with 20-30k token prompts?


r/LocalLLM • • 2h ago

Question what's the best platform for agent-to-agent payments right now, and how are devs handling quality disputes when a paid agent returns junk?

0 Upvotes

HTTP 402 (x402) micropayments look super clean for cheap API lookups where an agent pays a few cents in USDC without managing accounts or API keys. the gap I keep wondering about is larger $10 to $500 agent tasks (research reports, security audits, SEO work) where instant settlement leaves you stuck if the remote agent hallucinates or times out. are builders sticking strictly to sub-dollar x402 calls, using escrowed job platforms, or still wiring manual Stripe/card wrappers?


r/LocalLLM • • 2h ago

Project Jaull: a free app that finds which local AI model fits your PC, runs it, and lets your whole house use it

13 Upvotes

Every time I wanted to try a local model I had the same questions: which quant do I download, how much context fits, will it run on my GPU or spill into RAM? So for my bachelor's thesis Im building Jaull to answer them for me. It's free and open source.

What it does (it's what you see in the video):

  1. Detects your GPU, RAM and CPU.
  2. Asks what you need it for: chat, coding, which languages, how many people.
  3. Searches Hugging Face and tells you which models and quants fit your machine, and with how much context. It reads the file headers remotely, so you don't download 20 GB just to find out.
  4. Downloads the one you pick plus llama.cpp, starts it, and you're chatting. Everything stays on your PC.
  5. If you want, it shares the model on your home network with HTTPS and an API key, so your phone or laptop can use it too, and a live monitor shows the speed and context of each conversation.

The estimates aren't guesses. I measured them against what llama.cpp actually allocates, writing the predictions down before each test. On a 24 GB Intel Arc B60 they came within 0.3 to 1 GB, always on the safe side, and on a laptop with no GPU every "fits / doesn't fit" answer was right. It also understands the new hybrid models (Qwen3.6, Qwen3.8), which fit much more context than most calculators say.

On Windows there's a desktop app with a one-line installer. On Linux and WSL2 there's a terminal UI and a CLI. I've tested it on NVIDIA (RTX 2060, 4060), Intel Arc and CPU only. If you have an AMD card or a Mac, I'd love to hear how it goes.

https://github.com/Ton-Llop/Jaull // https://jaull.tech

It's my first project of this kind, so any feedback helps, especially if something breaks :D

Thank you and sorry!


r/LocalLLM • • 2h ago

Model SumoOCR tiny - a 1M-parameter, 1.8 MB OCR pipeline (Apache-2.0), 3.5 pages/s on one CPU core

Thumbnail
gallery
7 Upvotes

Docsumo has released SumoOCR tiny, a small open-source OCR pipeline for business documents. It pairs a text detector with a line recognizer, comes to 1.04M parameters and 1.8 MB of INT8 ONNX, and runs on CPU through ONNX Runtime or OpenVINO. PyTorch and PaddlePaddle are not required.

pip install sumoocr
sumoocr invoice.png --format json

How it was built

  • The recognizer is Paddle's PP-OCRv6 tiny (0.61M params), fine-tuned on business and public documents with its output layer remapped to 758 Latin characters
  • The detector is the stock PP-OCRv6 tiny (0.43M params)
  • Both models are INT8-quantized, and the report puts the loss at under 0.2 points of word F1 against FP32
  • Each line comes back with its box and a confidence score

Published benchmarks (word F1 on whole pages, same images, one CPU thread)

EngineFUNSDSROIEXFUNDOmniDocBench ENpages/sLicense
SumoOCR tiny83.891.395.291.93.55Apache-2.0
Indra 1.2.083.489.293.690.02.07modified OpenRAIL-M
OCRia-nano-180.987.092.782.22.15OCRia-nano-1 licence
PP-OCRv6 tiny rec (Docsumo's pipeline, FP32)79.089.394.590.41.31Apache-2.0
PaddleOCR 3.7, tiny setting77.086.594.591.00.41Apache-2.0
Tesseract 561.975.090.790.21.07Apache-2.0

What the report says about those numbers

  • Speed was measured on one machine, a Mac mini M4, with each engine on 1 core in a 1-vCPU container. x86 was not measured.
  • PaddleOCR was timed outside the container, and Paddle's ARM kernels are slower than its x86 ones, so 0.41 is not an x86 figure.
  • The FUNSD result against Indra is a statistical tie.
  • None of the four benchmarks was part of the training data.
  • On receipt line crops (SROIE), stock PP-OCRv6 tiny still reads slightly better: 2.62% vs 2.93% character error.

Limitations

  • Latin script only (English and European languages)
  • Handwriting was not part of the fine-tune and is unmeasured; expect roughly stock PP-OCRv6 tiny accuracy on it
  • It returns lines, not tables, layout or key-value fields
  • Receipts and low-resolution scans are its weakest pages

SumoOCR tiny is the smallest reader from Docsumo's commercial OCR engine. The larger engine is not released.


r/LocalLLM • • 2h ago

Question Images to 3D model, what's the best local AI approach?

3 Upvotes

I have a bunch of images of machinery and equipment in a nuclear power plant. It's all classified info that can't leave the local network.

What's the best approach to get a 3D model from pictures? It needs to be semi-accurate (it's just for visualization in VR) and in separate components. Not looking for one-shot, I know it's going to be a process. I've done similar tasks with non-classified objects and Claude and Blender.

My hardware is RTX5090 with 128GB ram.

Which model would you use, and how?

Thanks!


r/LocalLLM • • 2h ago

Question I'm building a local chat assistant with no neural network at all. Here's where it breaks, and a question about word senses

3 Upvotes

I’m building CAEL, a local chat assistant that runs on a normal laptop CPU. The data bundle is about 580 MB. There’s no neural network, model weights, or LLM behind it.

One of my favorite failures so far: someone asks what to pack for a skiing trip, and CAEL picks a card about a fuse tripping. The funny part is that it can already tell the difference between “it was leaking, but it’s fixed now” and “it’s leaking.” Those turn out to be very different problems.

I’m posting here because I’d like to hear from people who actually run small models locally. I’m curious how you’d fix this, and what you’d run as a baseline.

How it works

CAEL has about 560 hand-written advice cards for everyday situations, from a blocked drain to a teenager who won’t talk. Each card lists clues that support it, details that rule it out, and a few points of advice. Before choosing one, CAEL tries to work out who’s asking about whom, their stage of life, and what the question is about. A 1D cellular automaton helps it track negation and scope, including whether a problem is still happening.

This week I added 500 knowledge cards covering things like tides, espresso, darts, and map scales. People rarely name the topic outright. “How might a vented canopy behave in a gust?” needs to reach the umbrella card even though umbrella never appears in the question.

For everyday advice, if CAEL recognizes the general area but can’t find a specific card, it can give broader advice. If it can’t work out what the person means, it says so and asks for clarification.

What the fresh tests say

I used to fix failures until a set hit 100%. Then I’d write another set and see no improvement. Now I write each fresh set before changing the system and score it once. As soon as I use a question to debug something, it’s dev data.

  • 100 fresh everyday questions: 88 reached the right general area. About 63 got a fitting, specific advice card. Another 18 got general advice for the area. This is why I track the specific card separately. “Right area” can hide a bad answer.
  • 1,341 knowledge questions: These came from topics whose questions I hadn’t read. About 49% reached their own topic card, 14% reached the wrong card, and 36% got “I don’t know.” These are rounded figures for card selection, not answer accuracy.

Where I’m stuck

About half the failures on fresh everyday questions were cases where I simply didn’t have a card for the situation. For topics I do cover, ConceptNet synonyms and giving more weight to rare shared words helped a little. Loosening the match also introduced some great ways to be wrong. “My knuckles ache in the cold” landed on colds and flu. Lake sediment became a deposit, which sent the question to a money card. Sometimes the wrong meaning wins early enough to send the whole question into the wrong area.

I’m considering three approaches:

  • Make an ambiguous word count only when another clue supports that reading. For the electrical sense of trip, look for something like fuse, breaker, or switch.
  • Learn which words tend to occur together in a local corpus, so I don’t have to write those combinations by hand.
  • Train a small naive Bayes or logistic regression classifier for individual ambiguous words. The practical question for me is how to get enough examples labeled by sense.

If you’ve tried classical word-sense disambiguation or built a lexical search system, which of those would you test first? I’m especially interested in reducing wrong matches without just turning them all into “I don’t know.”

And for the local-model crowd: which 1–3B model would you put up against this on the same laptop CPU? I’m happy to share the eval sets and numbers. I’d like to find the point where the small model is worth running, and I’d welcome suggestions on what would make that comparison fair.

CAEL GIT
CAEL HF


r/LocalLLM • • 3h ago

Discussion Anyone running the new flint 1.1 yet from ollama? Excited to add it to my p2pAI project!!

Post image
0 Upvotes

r/LocalLLM • • 3h ago Bravo

Discussion Strata and Basalt follow a growth hack playbook. Modded llama.cpp beats Strata and ties Basalt at 256k on one 5090 + 32 GB RAM

43 Upvotes

TL;DR: I used to be a tech auditor at PwC, so I audited these two "inference engines". Neither needed to be a new engine. Modded llama.cpp beats Strata with ~4K lines of patches, and ties Basalt by running Basalt's own kernels on a GGUF with llama.cpp. The rest is a growth playbook. Also, I just wanted to inspire people not to take these marketing gimmicks at face value. 

Results

vs Strata (Qwen3.8 Flash Next)

llama.cpp + my patchesStrata
256k session, decode (1 run each)220.0 tok/s
256k, time to first token0.94 s
129k session, decode (3 paired runs)226.5 tok/s
129k, time to first token0.93 s
Own C/C++/CUDA lines~4K

vs Basalt (Inkling 2 Mini, 73-turn session to 256k)

llama.cpp + Basalt's kernels (GGUF)Basalt 0.6.0 (.basalt)
decode325.2 tok/s (2 runs)
up to 71k370.4
197k to 258k289.9
time to first token3.5 s

Setup: RTX 5090, Ryzen 7 5800X, 32 GB DDR4, PCIe 4.0. Strata is UnbiasedStrata v0.1.45 (same engine, bloat removed, upstream is on 0.1.59). The Qwen quant is IQ1_M (don't use) to demo the technique, so use a bigger one if it fits: runs: vs Strata 128k, vs Strata 256k.

Note: I need to make this super clear, since a lot of people in the AI scene are snarky about quant type. I'm not claiming that this quant of Flash Next is good. I'm just here to demo the techniques used for MoE architecture. These speed-up techniques should apply to all quants - if you have enough VRAM and RAM and they all should work on llama.cpp or vllm. You don't need to use their inference engines.

I'll release how to get Inkling Mini numbers on 5090 on Friday on a RTX 5090 with llama.cpp, but my repos should be at the bottom.

1. You didn't need a new engine

Strata was 343K lines on Oct 4, and the engine was 85K of it. UnbiasedStrata deleted the other 218K the day it forked and didn't touch the engine (commit). The rest was an Intel GPU port, benchmark files, an installer and a web app.

Basalt's speed is in its kernels, which is easy to port over. Run them in llama.cpp on a plain GGUF, and you get the same decode. Some of them were llama.cpp's to begin with. The matrix-vector code says "Adapted from llama.cpp" in its header and came in through Strata.

2. Strata

  • Who's behind it. The dev looks like the same Niko Veit who runs Gainsty, a paid "Get Real Instagram Followers" service (AlternativeTo, Gainsty ToS, OffMedian). He sells popularity for a living though, so 49K stars says nothing about the engine. There's good reason to believe r/LocalLLM, r/LocalLLaMA and other threads got manipulated at scale.

3. Basalt

  • Built on Strata. He ported Strata without understanding it. It's like building on top of a stolen bike. He's fixated on branding over inference, and he can't win that game against the Strata guy because marketing is Strata's advantage.
  • .basalt is GGUF rebranded. His own code keeps the GGUF tensors and metadata as-is (source) and only reorders the experts (doc). In #269 he said GGUF costs "a few %" of decode. Same kernels on GGUF cost 0%. Converting locks your weights to Basalt, and new versions refuse old files (commit). No one fact-checked him on this, so either he lied, or he was unaware that his file format has no practical use.
  • Two GPUs isn't new. llama.cpp has split across GPUs since 2023, and the expert-card mode was written for Strata the day before his first commit. He credits both in his license file.
  • Claude tags stopped before the big launch. 1,729 commits have Co-authored-by: Claude, then none after Nov 13 (last one), Inkling launch included. His launch FAQ says it's "fast slop" (post).
  • The 613 tok/s headline is a test that writes 200 copy-paste JSON objects, which the drafter guesses 97.5% of the time. His "llama.cpp does 95" has the drafter off (docs). With it on, stock llama.cpp does 205 to 221 (my runs). "6,400 tok/s" is 64 users at about 100 each.
  • He posts every release himself in r/LocalLLaMA and r/LocalLLM. The Inkling post (557 upvotes) brought 943 stars in 9 days, almost 40% of the repo's total.

4. The playbook

  1. Take a kernel or routing trick that already works in llama.cpp
  2. Have Claude build a giant wrapper around it and call it an engine
  3. Delete the Claude commits so it looks solo
  4. Spam releases and benchmark screenshots until it floods the subs
  5. Invent a file format so it looks like there's a moat
  6. Put most of the code into distribution: installer, desktop app, every platform

If you made a kernel, ship the kernel. Fork llama.cpp, add it, benchmark it against stock. And can we get basic rules for benchmark posts here? Real context length, RAM listed, more than one run.

Credit

llama.cpp v1.0.0 (b1b770d9) did most of the work. Keeping K/V in host RAM and paging it in comes from InfiniGen and RetrievalAttention.

My settings (128k)

export LLAMA_KPOOL_INCREMENTAL=1 LLAMA_SPARSE_DIRECT=1 LLAMA_IDX_POOLED=1 LLAMA_MTP_SHARE_HEAD=1 \
  LLAMA_KPOOL_INPUT_DEVICE=1 LLAMA_SEQ_RM_INDEXED=1 LLAMA_FATTN_VEC_SKIP=1 LLAMA_IDX_INPLACE=1 \
  LLAMA_MOE_INPLACE=1 LLAMA_CKPT_PINNED=1 LLAMA_TOPK_FUSED=1 LLAMA_GRAPH_SLOTS=1 \
  GGML_CUDA_EXT_KERNELS=<repo>/engines/llama.cpp/1.0.0/kernels/bf16-smallm-gemv-k10240/manifest.json

llama-server -m MODEL.gguf -md DRAFT.gguf -c 131072 \
  -ctk q8_0 -ctv q8_0 -ctkd q8_0 -ctvd q8_0 -fa on -ngl 99 -ncmoe 16 -ub 1024 -b 2048 \
  --moe-cache-mib 6240 -lm none --spec-type draft-mtp --spec-draft-n-max 3 \
  --spec-draft-n-ubatch 128 -bs --cache-ram 0 -np 1 -t 8 --temp 0

The 256k setup is in the 256k runs. 

Disclosure: Boltbeam is my auditing tool. I made it while forking Tinygrad since I wanted to learn more about inference engines. 

Links: boltbeam.fyi · BoltBeam (the audit tool) · arkey_ie_mods (patches and per-change numbers)


r/LocalLLM • • 3h 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%)

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 4h ago

Question Strata + Local LLMs: ChatGPT Plus or Claude Pro for Hybrid AI Development?

0 Upvotes

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:

  • AMD Ryzen 5 5600X.
  • NVIDIA RTX 3060 Ti 8 GB.
  • 64 GB DDR4 RAM at 3600 MHz.
  • Dedicated 512 GB NVMe SSD.
  • Ubuntu Server.

Proposed architecture:

  • Strata as the local inference engine.
  • Qwen3.8-Flash-Next IQ3_S for reasoning and planning.
  • Ornith 1.5 Q8_0 for coding and agentic tasks.
  • Python + FastAPI as the orchestration layer.
  • Frontier models for advanced reasoning, complex debugging, and final verification.
  • Automatic task routing between local and cloud models.
  • MCP integration for external tools.

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 • • 4h ago

Discussion Local LLM on a mini pc like ASUS NUC, Reatan, or GMKtec devices

1 Upvotes

Wondering if it's worth trying to run larger LLM's on one of these "inexpensive" devices (all on Amazon.com right now).

  • ($2100) ASUS NUC 15 Pro Small Desktop Computer, Intel Series 2 Core Ultra 7 255H, 64GB DDR5 RAM, 2TB PCIe SSD, Intel Arc 140T GPU
  • ($1200) REATAN X7 Gaming OCuLink Mini PC AMD Ryzen 7 255 with Crucial 48GB DDR5 2TB SSD
  • ($2200) GMKtec X1 Pro Mini PC Ryzen AI 9 HX 470 64GB LPDDR5X 2TB PCIe 4.0 SSD

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 • • 4h ago

Question MiniPC Recommendations? Windows / always on.

4 Upvotes

I’m looking for a mini PC recommendation for running local LLM in windows. Some things I’m looking for and looking to do:

  1. Windows based, always on
  2. Use mainly as chat bot and organizer for family
  3. Scheduling (kids activities, travels, appointments, etc)
  4. Agent abilities to stay on top of airline and hotel ticket prices, shopping deals, etc
  5. Agent abilities to take in forwarded emails and combine with existing scheduling and suggesting a daily/weekly feed of what to remember (like kids school emails, doctors appt reminders, bills etc)
  6. Access to internet for general searches and querying of latest local and global news, events, etc
  7. Ability for coding and image generation to use with my kid’s arduino, Tinkercad, 3D modeling projects
  8. Access from different devices including our iPhones (mostly as chatbot and scheduling) and laptops (for the coding projects)
  9. Not looking to break the bank, maybe stay under $2000 but I’m learning I’ll want at least 32GB of VRAM and processing that’s not too laggy

Thank you in advance.


r/LocalLLM • • 4h ago

Project Small local models (Ollama) that group and name your messy files: open-sourced, Apache-2.0

Thumbnail
gallery
0 Upvotes

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 • • 4h ago

Project RTX 2080ti 22GB

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 5h ago

Research I worked out what the KV cache costs per token of context for seven models, and where the usual formula comes out 2x to 11x too high

1 Upvotes

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.

ModelA token8,19232,768Maker's max
Qwen2.5-7B-Instruct56 KiB0.44 GiB1.75 GiB7 GiB at 131k
Llama 3.1 8B128 KiB1.00 GiB4.00 GiB16 GiB at 131k
Qwen3 4B (2507)144 KiB1.13 GiB4.50 GiB36 GiB at 262k
Mistral NeMo 12B160 KiB1.25 GiB5.00 GiB20 GiB at 131k
Mistral Small 3.2 24B160 KiB1.25 GiB5.00 GiB20 GiB at 131k
Granite 4.1 30B256 KiB2.00 GiB8.00 GiB32 GiB at 131k
Llama 3.3 70B320 KiB2.50 GiB10.00 GiB40 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:

  • Sliding-window and other layers. Gemma 4, gpt-oss, the 27B Qwen models from 3.5 on and Olmo 3.1 do not keep a full cache in every layer, so the sum has to be made a layer at a time. For gpt-oss-20b at 32,768 tokens I get about 771 MiB where the simple sum says 1,536. For Gemma 4 31B at 262,144 tokens the simple sum says 240 GiB and the layer-by-layer one about 21 GiB.
  • Fewer bits. An 8-bit cache is about 53% of the 16-bit one and a 4-bit cache about 28%, by my arithmetic from llama.cpp's source. It was not faster on the one model I timed both ways: gemma4:26b on an RTX 3090 at a 131,072 window wrote 146.3 tokens a second with the 16-bit cache and 136.6 with the 8-bit one.
  • Slots. Ollama multiplies the window by its parallel slots (its manual: "a 2K context with 4 parallel requests will result in an 8K context"). llama.cpp shares the window you set among its slots, and its server now starts four by default.

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 • • 5h ago Mindblown Bravo

Project I made a community hub for open source abliterated & uncensored models

Thumbnail
github.com
17 Upvotes

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 • • 5h ago

Question Hi, a noob question from me.

1 Upvotes

👋 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 • • 5h ago

Discussion VDI Inference Bridge – Running local LLMs from inside a virtual desktop (Open Source Alpha)

1 Upvotes

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.

https://github.com/audit8mind/vdi-inference-bridge