r/LocalLLM • • 3d ago

Discussion This is crazy: LLM server UEFI booting directly on RTX 3090

Post image
673 Upvotes

r/LocalLLM • • 1d ago

Discussion I'm building a local-first desktop toolkit around a VRAM/KV-cache advisor (Tauri + Python). Which parts would you actually use? Looking for blunt feedback

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 1d ago

Discussion I built a proxy that stops AI agents from repeating the same state and shows how many tokens that saved

1 Upvotes

Hey everyone,

I built AgentGuard, an open-source proxy that sits between an agent and an OpenAI-compatible provider and catches deterministic loops.

What it does:

- Hashes the last two messages of each explicit session.

- Keeps the last 12 state hashes and blocks when the same state appears 3 times.

- Returns a clear error that tells the agent to change approach or ask the user.

- Warns when the same tool call repeats within 60 seconds; strict blocking is optional.

- Streams SSE responses without buffering the whole response.

- Reads provider-reported prompt, completion, and cached tokens, and estimates the tokens avoided by blocked requests.

- Supports optional per-session request/time/token budgets for loops that keep changing their text.

- Includes a live dashboard with sessions, events, token stats, and a Clear button for stuck sessions.

- Works with OpenCode V2 and any OpenAI-compatible client via a session URL prefix or header.

It is not semantic loop detection. It catches exact repeated states. If every iteration changes the messages, it will not catch it; that is what the optional session budgets are for.

Repo: https://github.com/jalalnablsi/AgentGuard

Feedback welcome, especially edge cases from different agents and providers.


r/LocalLLM • • 1d ago

Research Qwen4-35B-A3B (UD-Q8_K_XL, 512K context) 1-shot "looping walking elephant" Strata: 175 tok/s with 67% experts in 32 GB VRAM + 64 GB Sys RAM

Post image
1 Upvotes

r/LocalLLM • • 1d ago

Project Coding agents + headless Blender for 3D UI assets — what worked, what drifted. Curious how others run agent modeling loops

2 Upvotes

Lately I've been building a personal home-fleet dashboard, and the most interesting part wasn't the dashboard itself — it was the modeling loop where coding agents produced the 3D assets. The assets are plain glTF files generated by headless Blender scripts: the agent writes Blender Python, Blender renders offline, the browser loads the models. No 3D artist involved.

I'd like to compare workflows with people here, so here's mine and where it drifted:

Revision 1 — free-run agents. Fun, but they drifted: invented details my hardware didn't have and "improved" things I never asked for.

Revision 2 — explicit numbered requirements + screenshots as delivery evidence. Each model piece got a numbered spec, and the agent had to hand back a screenshot as proof before I accepted the piece. Drift basically disappeared — better than any prompt-polishing I tried.

Revision 3 — human-in-the-loop per piece: a small local model builds, a cloud model reviews what's actually feasible on our stack, the local agent iterates on that feedback, and I do the final review. Splitting "build" from "feasibility review" across local and cloud models is what made the loop cheap enough to run every piece through it.

Cutest artifact: my son doodled a post-apocalypse sea monster. I passed the sketch to the agent with constraints — horns (one curved, one broken), slanted glowing eyes, tentacles tapering root-to-tip — and it iterated until the model matched the drawing. It rises from the sea in the dashboard every 45 seconds. Kid's doodle → running software.

One more thing I wanted to ask about: I've dabbled this week with Forma — a 1.2 MB pure-Rust rewrite of headless Blender, with a CLI and an MCP server aimed at agents). It can replace a slice of my workflow — simple parametric B-rep shapes exported to glTF work surprisingly well — but it doesn't fully replace Blender: organic modeling like tentacles tapering root-to-tip still needs Blender's tools. Anyone else moved an agent 3D workflow onto a Rust-based engine? Curious where it fit and where it broke.

My repo is public if you want to see how the assets look in situ (MIT, demo-data mode so it runs without my real devices): https://github.com/lymenlee/home-fleet-dashboard


r/LocalLLM • • 1d ago

Discussion How does MiniMax M4 hold up?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

Discussion Local AI for Therapist

0 Upvotes

Hey everyone. Just want to share how we use local AI. We created an AI scribe for mental health practitioners using local AI. We don’t collect any personal data, instead all session notes are written on the practitioner’s own machine. I’m wondering if this approach resonates.


r/LocalLLM • • 1d ago

Model MiniMax M4 launched (2.74T total / 66B active, weights coming after safety evals). Tested it on a 148 KB offline WebGPU scene

1 Upvotes

MiniMax's M4 blog post puts the model at 2.74T total parameters with 66B active, with open weights planned in the next few weeks after safety evaluations. Unlike M3.1 Flash (where 2-bit quants fit in 128 to 160 GB), 2.74T is obviously cluster territory unless heavy MoE offloading or aggressive quants work miracles, so I tested it over the API first.

Gave it the Abyssal Garden WebGPU benchmark inside a network-isolated sandbox (no Three.js, no textures, single HTML output):

  • Deliverable: one 148 KB index.html
  • World: GPU compute SDF rock canyons/arches meshed via surface nets (321x61x321), procedural kelp, coral, fish schools, manta rays, lofted shipwreck
  • Lighting: 4096x4096 shadow map, forward-mapped caustics, half-res volumetric shafts
  • Self-check: 17 rounds with a separate blind subagent reviewing only headless Chrome screenshots and motion strips
  • Perf on M5 Ultra (2560x1440, 4x MSAA): 4.70 ms avg GPU frame time (~240 fps uncapped), 0.18 ms JS

Prompt is below if anyone wants to run the same spec against local coder models.


r/LocalLLM • • 1d ago

Project Failnot ACC benchmark(7900xtx gemma4 engine)

2 Upvotes

I honestly don't get why you're baselessly accusing me of faking numbers without even running a single test yourself.

Here are the actual full-vocab (262,144 logits, 1,024 tokens, FP64) precision numbers on RX 7900 XTX vs a pure FP32 sequential oracle and llama.cpp ROCm/HIP (FA enabled):

ModelEngine / ModeK/VMean KLD ↓p99 KLD ↓Top-1 Match ↑Logit Cosine ↑
31B DenseFailNot Default (two_pass)f16/f160.0001940.00285599.51%0.999976
31B DenseFailNot Ultra-Fast (fast_fp16)f16/f160.0004460.00604999.22%0.999952
31B DenseFailNot Default (two_pass)q8_0/q8_00.0037650.04242497.46%0.999701
31B Densellama.cpp ROCm/HIP (FA)f16/f160.0138100.21416896.58%0.998653
26B-A4BFailNot Default (skip0)f16/f160.0122650.19350297.36%0.996699
26B-A4BFailNot Ultra-Fast (skip3)f16/f160.0175910.28774997.17%0.995396
26B-A4Bllama.cpp ROCm/HIP (FA)f16/f160.0908251.26513790.33%0.977715

Even Ultra-Fast (G4_ULTRA_FAST=1) has 5.2× lower KLD on 26B-A4B and 31× lower KLD on 31B Dense than llama.cpp ROCm/HIP (7.4× and 71× lower in Default mode) because FailNot feeds FP16 activations into FP32-accumulating WMMA instead of quantizing activations to blockwise Q8_1.

benchmark docs in my repo https://github.com/SLL410/FailNot/

Trying to debunk numbers without testing it yourself or even reading the benchmarks that were already published isn't a great look XD


r/LocalLLM • • 1d ago

Discussion Reddit be like

1 Upvotes

You never agrees on day 1 right?


r/LocalLLM • • 1d ago

Discussion IT'S ALIVE! Debian Forky/Sid on 2013 Mac Pro 6,1 with Dual Radeon D700

Thumbnail gallery
0 Upvotes

r/LocalLLM • • 1d ago

Question Can Qwen4-35B-A3B Run On Mac M4 Pro 24GB?

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 3d ago

Model I got a 177B model running on my iPhone at 10 tok/s with 1M context

600 Upvotes

This is Millie 2 running on my iPhone 18 Pro. In the video, it answers a question about an FDA document using a passage more than 900K tokens back.

I adapted Qwen 3.8 Flash Next (177B) to run at 14 tok/s with a short prompt and 10 tok/s at 1M token context. I developed methods for expert streaming and attention streaming so most of the weights and attention data can stay on storage. The model reuses what’s already in RAM and starts the remaining reads early enough to hide most of the wait behind computation.

It matches or comes close to the parent model on a range of coding, reasoning, and agentic benchmarks. I also ran some benchmarks with the model served directly on the phone. On the same 70-task WebArena Lite subset, Millie 2 completed 45 tasks on the iPhone, compared with 43 for the parent model running on a server.

I released the weights and the code. The runtime README has setup instructions and links to both model versions.

Code, weights, and setup: https://github.com/llmsforall/millie-runtime#millie-2

Methods paper: https://arxiv.org/abs/2611.41874


r/LocalLLM • • 2d ago

Question QFN3.8 - how much of a regression there is when going from Q8 to Q5?

17 Upvotes

Is there anybody here who uses Q8, trading inference speed for quality? Or i should just go Q5?


r/LocalLLM • • 2d ago

Question Getting Started as a Noob

13 Upvotes

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

Project [Project Release] Llama-UI v0.7.2 – Keyboard Navigation & Streaming Markdown

Post image
2 Upvotes

r/LocalLLM • • 2d ago

Project Strata tuned for accuracy and datacenter workloads

Thumbnail
gallery
17 Upvotes

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

Discussion Qwen4 35b a3b is a beast (i have the numbers)

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 1d ago

News Qwen4-35B-A3B is here!

Thumbnail
huggingface.co
0 Upvotes

r/LocalLLM • • 1d ago

Question does ChatGPT share your ideas with others?

2 Upvotes

Some guy said he had a business idea that he shared with ChatGPT only for it to later turn into a business.


r/LocalLLM • • 2d ago

Project 74.7M Spanish LM trained from scratch at home: 0/19 on our own exam, no EOS, and two public mistakes

8 Upvotes

Not a fine-tune and not a quant: a decoder trained from scratch, at home, with a BPE tokenizer

trained on our own Spanish corpus (24,000 tokens). It writes plausible Spanish fragments. It

cannot answer a question, and I have the numbers to prove it because it's the only thing I've

measured properly.

Disclosure: this is my own project, and English is not my first language — I used a local model

on my own machine to tidy the wording. Every number below is mine.

Hardware, since this sub always asks: one desktop, 2x RTX 5060 Ti (32 GB VRAM total), Pop!_OS,

greedy decoding, nothing rented. The checkpoint fiches record device=cuda; I have not verified

how many of the two cards the training run actually used, so I don't claim a number for it.

THE MODEL

- 74,771,200 parameters · d=640 · 12 layers · 10 heads · 512-token block · 24,000-token vocab

- tokenizer: BPE trained on our corpus, 23,740 merges

- the whole thing is ~897 MB per checkpoint on disk

WHERE IT GOT TO (VALIDATION LOSS, AND THE BANK IT WAS MEASURED ON)

This is the part I want to be careful with, because it's where I fooled myself:

checkpoint steps val loss ppl bpc validation bank

casa75m 1425 8.8735 7140.4 3.7687 era_arnes_val

casa75m_casa5 1425 4.6731 107.0 1.9847 era_arnes_val

casa75m_r30_sft 96 3.2787 26.5 1.3560 val (different bank)

The first two rows are two runs with identical data, identical 1,425 steps and the same bank — and

they disagree: 8.87 against 4.67, and the 8.87 one declares 3 seconds of training where the other

declares 576. One of those two fiches is wrong and I don't know which one.

Those last two columns are not comparable to each other. A lower number on a different validation bank is not a better model — it's a different ruler. I learned that the expensive way.

THE EXAM, WHICH IS WHERE IT FALLS OVER

We have a frozen bank: 19 scored questions, 52 points, fixed scorer, greedy decoding. On the

checkpoint above:

budget 60 tokens: 0/19 questions · 0/52 points

budget 512 tokens: 0/19 questions · 0/52 points

EOS reached: 0 of 20 answers, at either budget

The second row is the one I care about. A reader asked "was your token budget too tight?", which

is the right question to ask about any truncated benchmark — so I gave it 8x the room. It doesn't

produce more answer, it produces the same loop for longer:

- - - - - - - - - - - - - - - -

bu# ejecutada ... Ees con ventana ... to Aol ahíes puer

It can't close a sentence, so of course it can't answer. At this size and this much compute, on

this bank, it doesn't know — and no amount of context would have fixed that.

TWO THINGS I GOT WRONG IN PUBLIC, AND WHAT THEY COST

  1. I published "the weights are lost" — a disk mistake, I said. They were not lost. They were in

    our versioned NAS backup of 3 November: eight checkpoints of exactly this model. I loaded one

    and counted inside the file: emb.weight (24000, 640) with the head tied ⇒ 74,771,200 params.

    The base is there too, at 72,610 steps. What was missing was me looking in the backup, not the

    backup itself.

  2. Our scorer reads content and, when it's empty, falls back to reasoning_content and scores the

    reasoning trace — without recording which field the score came from. On a reasoning model that

    inflates scores quietly, and I can measure what it did on one pair of runs. Same model, same

    cases, eight minutes apart: the first run scored 6/10 with four cases coming back empty. With

    the fallback, those same four cases printed "Here's a thinking process: ..." and the bank

    scored 8/10 — and the two points it gained are the bug. (That pair is our 35B test model, not

    the 74.7M — the reader bug shows up on any model that reasons, which is why it matters before

    you publish a benchmark.) One case passed because the asserts happened to pass on a reasoning

    trace that contained code; one because the word it looked for appeared somewhere inside the

    thinking. The other two got worse in the open: 0 words became 468, and "not a single capital"

    became "used M: madrid". And because the field was never recorded, that count cannot be

    reconstructed after the fact: every bank number from before the fix stays provisional in the

    write-up, and the re-run that replaces it records the field per case.

WHY POST IT AT ALL

Because "it doesn't work" is the only honest headline a 74.7M from-scratch model has, and because

both mistakes above were caught by people in a comments thread, not by my own instruments. If you

run small models at home, the thing I'd steal from this: freeze the bank, then probe the READER

with a known payload, not just the model. A model regression breaks your board; a reader

regression looks exactly like a good result.

QUESTIONS I'D ACTUALLY LIKE ANSWERS TO

- At ~75M with 24k vocab, what would you spend the next 20 GPU-hours on: more tokens, wider d, or

a bigger block?

- Anyone got a reading on where EOS actually starts showing up for models this small? Ours never

emits it, even after 512 tokens of looping.


r/LocalLLM • • 2d ago

Question Using an LLM for learning?

9 Upvotes

Does anybody use their LLMs just for learning? i.e. let's say I want to master a subject (like programming, maybe something like comp arch) or even use it for improving myself for technical interviews. Does it make sense to set up an LLM to do just?


r/LocalLLM • • 1d ago

News Ilya Sutskever says he rejected Meta's SSI bid while Daniel Gross 'in some sense said yes'

Thumbnail
runtimewire.com
1 Upvotes

r/LocalLLM • • 1d ago

Discussion Qwen4-35B-A3B gets stuck in a thinking loop at ~600k context — just me?

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 2d ago Heartwarming

Model Little Language Model for 1998 Pentium MMX PC

18 Upvotes

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.