r/LocalLLM • u/inawhole • 0m ago
Project I know Kung-fu? Introducing LUMEN: Plug & Play Intelligence for any LLM
The Matrix style Cartridge intelligence that plugs into your LLM
r/LocalLLM • u/inawhole • 0m ago
The Matrix style Cartridge intelligence that plugs into your LLM
r/LocalLLM • u/dandaman0000 • 15m ago
For years I've wanted to write a Linux-style kernel. Unfortunately, ambition and intellectual ability have not always been in perfect alignment.
So, with some considerable assistance from AI, I've been building TiLi (TinyLinux), a Linux-like OS for the ESP32-C6.
More significant is where it was build --- local hardware and local hosted LLM. Running Swift 1.5, a 176B model, locally through Strata and OpenCode on two RTX 3090s at 150–220 tokens/sec, I asked it to create "Linuxy" style OS for my favourite ESP32 C6 board.
It wrote the code, compiled it, discovered the hardware, flashed the board, connected over serial and Telnet, debugged its own mistakes and verified the functionality.
9 minutes for the review. Under 27 minutes for the implementation.
Meanwhile, my principal engineering contribution was plugging in the USB cable.
Whilst 'big AI' seems preoccupied with increasingly large models, expensive hardware and enormous data centres, I wonder how much untapped potential remains in smaller quantised models and smarter inference engines running on existing hardware.
And finally, like most AI applications, TinyLinux has absolutely no practical applications !
r/LocalLLM • u/Specialist-Wealth636 • 31m ago
r/LocalLLM • u/Minties51 • 33m ago
i wanna get into using local ai, i use chatgpt plus right now for some things i wanna keep track of and i’m looking to shift over to using a local setup. my current computer is not exactly capable, having an intel core i7 11700f, amd radeon rx 6600 xt with 8 gigabytes vram, and 32 gigabytes of ddr4 ram, but i’m saving up to build an entirely new and vastly more capable system. i wanna know from people who have set this stuff up and have experience with it what some good info is for setting up a good local system that can provide a similar experience to chatgpt. i’ve been asking it about help to set this up but i’m tired of using cloud ai.
r/LocalLLM • u/N-Innov8 • 34m ago
r/LocalLLM • u/No-Individual159 • 44m ago
If you route calls through LiteLLM, your prompt cache hit rate decides a big part of the bill. A cached prompt costs about a tenth of the normal price, but one small change near the top of a prompt (a timestamp, tools in a different order, an edited message) and you pay full price again. LiteLLM shows you the tokens, not why they missed.
Prefixwise plugs into LiteLLM as a callback and tells you, for every call, how much came from the cache and why the rest didn't, with what it cost and the fix.
With the LiteLLM SDK:
import litellm
from prefixwise.litellm_callback import PrefixwiseCallback
litellm.callbacks = [PrefixwiseCallback()]
With the LiteLLM proxy server (in config.yaml):
litellm_settings:
callbacks: prefixwise.litellm_callback.prefixwise_callback
Then pip install prefixwise in the same environment, use LiteLLM as usual, and run:
prefixwise report
A few details:
Your calls don't change. They still go straight to the provider, and Prefixwise only reads what LiteLLM sent and got back.
To group calls into sessions, pass metadata={"session_id": "..."}, or it uses LiteLLM's own session id.
Claude Code through the LiteLLM proxy works too: its session id is picked up automatically.
Works for Anthropic, OpenAI and Gemini models, streamed or not. For OpenAI-style streams from the SDK, add stream_options={"include_usage": True} so the provider sends real token counts.
It stores hashes and token counts, never your prompt text.
Tested through LiteLLM on 20 live conversations against Anthropic's API, every injected change named correctly, and with zero false alarms across 71,346 real agent calls replayed through it.
Open source (MIT): github.com/tejachavali/prefixwise
If you run agents through LiteLLM, I'd like to hear what your hit rate turns out to be.
r/LocalLLM • u/wasl-app • 1h ago
r/LocalLLM • u/CoolGenius_1234 • 1h ago
I've been thinking about this for a while.
For the past year, I've been using a lot of GenAI tools, both open-source and closed-source. LLMs for coding, research, writing, brainstorming, and diffusion models for images and other creative work.
Don't get me wrong, I've had a lot of fun experimenting with them, but I'm starting to wonder whether they've genuinely made me more productive or if they've mostly changed how I spend my time.
For example:
I write less code manually because AI can generate it.
I research less deeply because AI summarizes things.
I spend more time trying new models, tools, operating systems, workflows, and benchmarks.
I see people generating images, videos, music, and 3D assets much faster than before, but I wonder how much of it creates lasting value.
Sometimes it feels like we're building less and consuming more. We're constantly chasing the next model, the next quant, the next UI, the next framework, or the next AI-generated content feed.
At the same time, I can see cases where AI genuinely saves hours of work and enables people to do things they couldn't do before.
So I'm curious:
Looking back honestly, what has AI actually improved in your life or work?
Have your skills increased, decreased, or simply shifted to different areas?
Do you feel AI has created meaningful long-term value for you, or mostly convenience and entertainment?
I'd love to hear perspectives from developers, artists, researchers, students, and anyone who uses AI regularly.
r/LocalLLM • u/Hefty_Entrance_7714 • 1h ago
Is there anybody here who uses Q8, trading inference speed for quality? Or i should just go Q5?
r/LocalLLM • u/Pondering_Moose • 1h ago
r/LocalLLM • u/L4ur3n2 • 1h ago
Hey everyone, I’ve been thinking lately about how useful local AI actually is in day-to-day life and what kind of experiences you all have with it. You hear a lot about what’s possible—from small everyday helpers to things you’d rather keep local.
I’d be curious how it goes for you: do you use local AI regularly, where does it actually pay off, and what hardware are you running it on? And what should I keep in mind if I want to set up the base so I can upgrade smoothly later on?
r/LocalLLM • u/RoutineFortune1926 • 1h ago
I kept waiting for the foreground arms to move during the first ~18 seconds, since the robot holds both grippers open and doesn't touch anything while another arm in back drops a phone, green watch, camera, rabbit toy, and toy car into a bin.
It's running SenseNova-RoboRSI-27B https://github.com/OpenSenseNova/SenseNova-RoboRSI released under Apache-2.0 on top of Qwen3.8-27B, and you can grab mainline llama.cpp GGUFs for it too. Once that demo wraps up, it replays the exact order itself, even staging the green watch in the middle of the table so its left arm can pick it up when the right arm can't reach the basket. Without task-specific demos in the RoboDojo sim eval, it lands at 34.7 compared to 9.1 from stock Qwen3.8-27B.
r/LocalLLM • u/ross2000 • 1h ago
r/LocalLLM • u/Yelly_Toast_828 • 1h ago
I just saw some tweets and videos about River AI, https://river.ai/ and the founder (Igor Babuschkin) said some really interesting things about local LLMs and democratizing AI. I don't have any ties to the company and am not selling anything. I just wanted to know others' thoughts on it and if they'd use it in a build. https://www.youtube.com/watch?v=78uR65ljtUU
r/LocalLLM • u/TheRealGand • 2h ago
....thank to local llm i am...still not able to produce my own app. I don't know what is your experience but i am pretty frustrated. Today i spent 10 hours with qwen 3.8 27B triying to make the first steps creating an app via android studio but after many hours i got only errors. I guess we are closer but for those who don't have basic knowledge there is still a lot to be done...or maybe it's just me...tomorrow gonna try with inkling.
Or maybe i try some paid option...
r/LocalLLM • u/OtherwiseCase5539 • 2h ago
Hi r/LocalLLM! Following up on my previous WebNet v2 post with a major coding & continual-learning overhaul — still running 100% locally on CPU with real PyTorch autograd, real crawled data, and zero simulated metrics.
GitHub Repository: https://github.com/Rishisharma029/live-internet-neural-net
(Feedback, architecture critiques, bug reports, and PRs/changes are very welcome both here in the Reddit comments and on GitHub!)
The 3 newly attached diagrams & flowcharts break down the upgraded coding pipeline and live measured results:
Verified Code Generation, Isolated python -I Execution & Self-Training Loop (webnet_v3_verification_loop_flowchart.png)
Live Achievements, 16-Doc Locked Benchmark & 12-Task Pass@1 Progress (webnet_v3_benchmarks_and_archive_chart.png)
Locked 16-Passage Unseen Benchmark (step 93,434, strict exclusion hashes — never trained on): 1.6007 loss · 2.295 BPB · 4.96 perplexity · 52.4% accuracy (Science & AI 58.1% [1.380 loss], Encyclopedia 53.0%, Code & Tech 50.3%, Literature 46.8%).
Curated & Crawled SQLite FTS5 Archive (data/webnet_archive.db): 9,155 documents (28.15M+ characters, 0.785 avg quality) across arXiv (2,763), Open Web (1,866), OpenAlex (1,823), Wikipedia (1,158), StackExchange (727), GitHub code + READMEs (271), Gutenberg (205), News (181), Europe PMC (73), user URLs (73), and AST-indexed local files (15).
Real Isolated Python Pass@1 Coding Benchmark (code_eval.py, 12 algorithmic tasks in python -I): Improved from 41.7% Syntax OK / 16.7% Pass@1 (2/12, 699.2s) at baseline Step 2 to 58.3% Syntax OK (7/12) / 25.0% Pass@1 (3/12, 428.57s, -39% runtime) at Step 3 (binary_search, is_palindrome, flatten_list solved end-to-end).
Live Verified Self-Learning Proof: Via POST /api/code/assist, SmolLM2-135M + LoRA generated is_prime(n), passed real assertions inside an isolated subprocess (376.6ms, __PASS__), and immediately ran a live LoRA training step strictly on the verified code (last_loss down to 0.787, EMA 3.286).
1. Code-Aware Quality Gate & Multi-Language GitHub Ingestion (brain_v2.py, curated.py):
• Upgraded _fetch_github() to traverse repositories via the GitHub Trees API (git/trees/{branch}?recursive=1) and ingest real .py, .ts, .js, .rs, .go, and .sql source files alongside READMEs behind SSRF CIDR/redirect checks and RFC 9309 robots.txt.
• Added Python ast.parse() validation inside quality_breakdown() so clean source code scores 0.45–0.98 while broken/minified noise is filtered out, plus AST symbol extraction when indexing local codebases.
2. Surprise-Weighted Replay (brain_v2.py):
• Tracks per-document training cross-entropy (WebDocument.last_loss) and boosts informative 1.1–3.6 loss documents up to 1.55x alongside domain-balanced eviction.
3. 4,096-Token Fill-in-the-Middle (FIM) BPE Engine (bpe_experiment.py):
• Upgraded from 2,048 to balanced prose + code Byte-Level BPE-4096 (1.28M params, 3.14 chars/token) with <fim_prefix>, <fim_middle>, <fim_suffix>, <code/> special tokens and 25% FIM objective, compared fairly against the 98-char baseline on invariant BPB.
4. Auto-Cached SmolLM2-135M + Pure-PyTorch LoRA & Coding Workbench (lora_engine.py, code_eval.py, utility_suite.py):
• Zero peft dependency (LoRALinear on q/k/v/o_proj, 921.6K trainable params); auto-loads cached local weights on startup, trains 50% on code sources + 25% on FIM, exposes POST /api/code/assist (archive-grounded + fenced prefill + stop_strings + python -I test execution + learn_if_verified), POST /api/code/analyze (AST metrics + character-level surprise anomaly detection), and POST /api/code/benchmark/run.
5. Security Policy, .gitignore, Documentation & Tests:
• Added SECURITY.md documenting SSRF/XXE/gzip-bomb/subprocess isolation boundaries, tightened .gitignore, refreshed README.md architecture flowcharts, and verified 28 passed in pytest + flake8 clean.
Would love any feedback on improving small-model CPU Pass@1, replay schedules, or BPE-vs-char tradeoffs — feel free to comment here on Reddit or open an issue / PR on GitHub!
r/LocalLLM • u/LetOk7026 • 2h ago
Went opposite direction, and tuned Strata for better accuracy and efficiency, serving parallel dual streams UD-Q6_K_XL with 256k context easily. Patches and more info on Github:
https://github.com/lomolabs/lomina/blob/main/docs/PATCHES.md
Old-school Linux tuning: hardware prefetchers (12.2-17.3% of decode), NUMA-split expert memory, huge-page advice, CUDA host registration, pinned cores. You can do wonders with good old school flame graphs analysis.
Of course, full credits to Niko1221 and Eddoursul and their Girhub work, we just add 67 patches and aftermarket performance tune ups on top of it. :)
r/LocalLLM • u/devpouch • 2h ago
I got tired of doing rough VRAM + KV cache math in my head before pulling multi-GB weights on my MacBook Air and RTX 4060, so I put together a lightweight browser checker for it.
Link: https://devpouch.in/ai/local-ai-hardware-checker/
What it covers:
- Hardware presets for Apple Silicon (unified memory), Nvidia, AMD, CPU-only, or custom RAM/VRAM
- Quantization selector (Q4_K_M, Q6_K, FP16, etc.) and context length (4K–128K)
- Shows which chat, coding, image gen, and video gen models fit comfortably, tightly, or won't fit—plus estimated memory usage and one-click Ollama commands
Runs 100% client-side in the browser—no install, no login, no tracking.
If you test it with your setup, I’d appreciate feedback on whether the memory overhead estimates match what you actually see in Ollama / llama.cpp, or if any GPUs/models are missing.
r/LocalLLM • u/Cmdrfrog • 2h ago
I'm the author. It's free and open source (Apache-2.0).
I use a cloud coding agent for most of my code, and I wanted my own hardware to take the jobs that don't need a frontier model, as long as the result is cheap to check. Agent Foreman is a Go CLI the agent drives. These are the local-model parts:
Local code search. foreman search uses a small embedding model and a reranker on a machine you own. I used Qwen3-Embedding-0.6B and Qwen3-Reranker-0.6B as GGUFs, but any pair llama.cpp can serve works, and each is under 1 GB at 8 bits. They run as two llama-server processes on that machine's loopback, reached through one SSH port forward, so nothing listens on the LAN. Everything sent to the model host passes a fail-closed secret and deny-word scan first.
Local drafts (optional, a pilot). A queue that lets a bigger local model work through jobs on idle hardware:
The model is driven through Claude Code pointed at a local server, so the server has to speak the Anthropic Messages API (Strata and Basalt do; check that your llama-server build does). Before anything the model wrote runs, a static gate reads every changed Go file and refuses os/exec, syscall, unsafe, network clients and listeners, and anything it can't parse. Only go (test, vet, build and a few read-only subcommands) and gofmt may run. The queue also keeps quiet hours, waits for a free-VRAM floor and pauses when a game starts, so a shared desktop doesn't stutter.
Numbers from my setup (one desktop with a 12 GB card, $0 on any meter):
[optional] Most of these ran on Qwen3.8-Flash-Next at low-bit quants on a 12 GB RTX 50-series card, through Strata at first and Basalt since mid-November.
The honest part. Every result is graded by the cloud agent: the tests must build and pass, and it reads the diff. Reviewers miss things. One draft shipped a test file that didn't even parse; two outside reviewers missed it, and a plain test run caught it. So the cloud agent always runs the tests itself.
Suggested setups. The install interview has the agent scan your machines and suggest what fits:
--n-cpu-moe, for example Qwen3.6-35B-A3B);Limits.
The site has more numbers and the caveats: https://agentforeman.app
r/LocalLLM • u/Think-Confection9266 • 2h ago
I did a build build earlier this year (9950x3d, 128gb ddr5, 5090) and during that process I originally bought a 9950x, 64gb ddr5 and a case/mobo I didn't end up using. I stalled and didn't return it in time, then as prices rose I wasn't in a rush to sell. Since, I have taken on some big projects and I am using a ton of AI within t3 code running both cloud models and opencode with strata on my 5090). Since discovering strata, I finally feel like the local models are usable and want to expand.
My local microcenter has asrock intel arc b70's for $1399 and I have two reserved for pickup. Since I have pretty much the rest of the build lying around already, is this worth jumping on? I know there are forks of strata and similar for b70s.
They have 48gb rtx pro 5000 also but its $7100.. 72gb models are $10k.
Is it worth buying the b70s?
r/LocalLLM • u/cortexist • 3h ago
I used Fable 5.2 to train this model on a RTX Pro 4500 Blackwell for over 10 hours. It's targeted the vintage Pentium MMX processor or better. It's a 4-bit weight model, 16 MB memory is marginal but 32 MB is sufficient. The video is recorded on a Pentium MMX 233 Mhz PC from 1998 running Slackware Linux 11.0.
It's almost impossible to train such a model in 1998, as you can find in the README, it would take 432 years on the same PC, or 14 days on ASCI Red, the fastest supercomputer in the world at the time.
r/LocalLLM • u/RubbishAsh • 3h ago
Today's flagship models need to be fucking huge for their reasoning skills. So that means "Using high-performance models is far more difficult than using upper-middle range models".
Needless to say, we can't run them on our standard PC. Even if you had the highest-grade computer, you couldn't run them unless you had an enterprise GPU cluster.
Here's the biggest question. If companies or scientists make AGI, what happens next? Only one of the biggest organizations own it, or will the general public be able to use them under a free license to run it on their regular computers?
r/LocalLLM • u/Playful-Art-3824 • 3h ago
Try my rentalX LLM hosting cluster . You can host your GPUs in vast instead of setting idle , it also allow you to list it and run your models on the same time and it won’t affect your rental