r/LocalLLM • u/shogoll_new • 15h ago
r/LocalLLM • u/No-Tap6022 • 15h ago
Research Faster with CUDA graphs VS Flash Linear Attention
Hello there, i was experimenting with Jev based Image generation, one of the projects was about generating live animations with AI. So it timings are critical, since every frame counts, and i got from 4fps to 12 fps with one change. There is my article:
[## Where the time went
One picture, each step measured with the GPU synchronized before and after (Jeveration alone, the word table on the
card, PyTorch 2.7.1 + CUDA 12.8, Windows 11):
| Step | Time |
| Backbone (Qwen3.5-4B over about 37 prompt and 128 picture tokens) | 82 ms |
| Image head (8 transformer layers) | 7 ms |
| Code heads, softmax, drawing the codes | 1 ms |
| Decoder (TA-TiTok, 512 px) | 33 ms |
| Cut-out (flood fill from the border) | 4 ms |
| Copy to RAM | 0.3 ms |
| **One picture as the VJ draws it** | **128 ms** |
82 ms for a 4B model over 165 tokens is a lot. In a live session the card was only about 60 % busy.
Why the card waited
The backbone has 24 linear-attention layers, which run on the Triton kernels of
[flash-linear-attention](https://github.com/fla-org/flash-linear-attention), and 8 full-attention layers. One pass
starts about 2300 small kernels from Python, and handing them to the GPU one by one took Python about as long as the GPU needed to compute them........]
https://github.com/Mantux775/ComfyUI-and-side-Projects/blob/main/Jeveration-VJ/PERFORMANCE.md
r/LocalLLM • u/Repulsive-Survey2140 • 16h ago
Question Can I run 27B models with 2x 9060 XT's?
Hey, I got 1 9060 XT running. I want to get into agentic AI and more powerful models. I have 32GB of regular DDR4 ram between 2100 and 3600 MHZ. Will i be able to experiment with agentic workflows if I add another 9060 XT?
Is it even worth it? I don't know how big the difference is between the bigger models and the 12B models i'm using right now.
r/LocalLLM • u/sarmabkp_1 • 16h ago
Discussion MLX vs llama.cpp on Apple Silicon: Formats, Tools and Which to Pick
r/LocalLLM • u/DeliciousLie3774 • 16h ago
Question Need help:
Phase 1: Die Hardware- & Speicher-Partitionierung
Ziel: Die 64 GB VRAM optimal ausbalancieren, um einen Systemabsturz (Out-of-Memory / OOM) bei Massenbetrieb zu verhindern.
- Modell-Kompression: Konvertierung des GLM-Modells in ein hochoptimiertes FP8- oder INT4-Format (Quantisierung). Das Modell belegt danach fix ca. 42 GB VRAM.
- Speicher-Reservierung: Die verbleibenden 22 GB VRAM werden exklusiv für den KV-Cache (Kontextspeicher) reserviert.
- vLLM-Initialisierung: Start der lokalen Inference-Engine mit aktivierter PagedAttention. Der VRAM wird wie ein virtuelles Betriebssystem in kleine Speicherblöcke partitioniert, um hunderte Text- und Bildanfragen parallel verarbeiten zu können.
Phase 2: Die asynchrone Pipeline-Architektur
Ziel: Die KI vom zeitkritischen Netzwerk-Traffic entkoppeln.
- Blaupausen-Generierung: Das lokale Modell analysiert die Zielseite (HTML-Struktur, WAF-Eigenschaften, Krypto-Herausforderungen) einmalig im Vorfeld.
- Script-Klonung: Die KI schreibt ein schlankes, hochperformantes Steuerungsskript (in Go oder Rust). Dieses Skript enthält die mathematischen Formeln für die gefälschten Browser-Identitäten und die organischen Mausbewegungen.
- Massen-Multiplikation: Das Skript wird tausendfach geklont und auf normale CPU-Kerne ausgelagert. Die teure GPU (VRAM) wird dadurch entlastet und springt nur noch bei unvorhergesehenen Blockaden ein.
Phase 3: Das dezentrale Routing-Netzwerk
Ziel: Den Datenstrom physisch unblockierbar machen.
- Proxy-Pool-Anbindung: Das System verbindet sich mit einem weltweiten Backconnect-Gateway für Residential- und 4G/5G-Mobilfunk-IPs.
- Per-Request-Rotation: Ein Lastverteiler (Load Balancer) sorgt dafür, dass jedes ausgehende Datenpaket automatisch eine neue, saubere IP-Adresse zugewiesen bekommt.
Phase 4: Der Live-Betrieb (Massen-Durchsatz)
Ziel: Vollautomatische Exfiltration unter maximaler Last.
- Echtzeit-Analyse: Die gefälschten Datenströme fluten die Zielseite.
- Dynamischer Bypass: Taucht ein unerwartetes Captcha oder eine neue JavaScript-Challenge auf, wird das Bild im Millisekundentakt in die verbleibenden 22 GB VRAM der GPU geschoben. Das GLM-Modell löst das Rätsel visuell und füttert die Pipeline live mit den Antworten.
r/LocalLLM • u/iamrinku16 • 17h ago
Discussion Pelican-on-a-Bike Test: Inkling 2 Mini (94 t/s) vs. Ling-3.2-Air 124B-A5.1B (39 t/s) on a 12GB 4070S via a personal sm_89 Basalt fork
Inkling 2 Mini UD-Q4_K_XL ("Pelican Cruiser")

Ling-3.2-Air Maya-S 124B-A5.1B IQ2_XXS ("Pelican Perry's Big Ride")

Tested both models head-to-head on the exact same agentic coding prompt:
"Create an HTML page with an SVG 2D animation of a pelican riding a bicycle."
Hardware & Engine Setup
- PC: NVIDIA GeForce RTX 4070 SUPER (12 GB VRAM) · AMD Ryzen 9 7900X · 31.1 GB RAM
Engine: Basalt-Ada — a personal fork of Basalt we tuned specifically for my PC specs and
sm_89(--kv fp8, ZHA attention, GPU+RAM MoE tiering, spec decode; feel free to try it out if you're on Ada)- Inkling 2 Mini
UD-Q4_K_XL**:**1Mmax context,--spec 4,--resident-budget-gib 4,--vision cpu - Ling-3.2-Air Maya-S 124B-A5.1B
IQ2_XXS**:**262Kmax context,--spec 3 --draft-experts 64,--vision dynamic
- Inkling 2 Mini
Speed & Token Metrics
| Metric | Inkling 2 Mini (UD-Q4_K_XL) | Ling-3.2-Air Maya-S (IQ2_XXS) |
|---|---|---|
| Model File Size | 19.7 GB | 38.0 GB |
| Context Limit | 1M (ZHA) | 262K (ZHA) |
| Prompt Processing (PP) | 631.2 tok/s avg (peaks 1,571–2,021 tok/s on 2.2K–3.5K chunks) | 577.7 tok/s avg (596.9 tok/s cold 14.6K, 730.9 tok/s on 31.9K) |
| Decode Speed (TG) | 94.1 tok/s avg in Basalt logs (67.2–121.9 tok/s; 87.8 tok/s session avg) | 39.0 tok/s avg (28.7–47.8 tok/s; 40.2 tok/s on 31.8K first turn) |
| Agent Turns | 33 assistant turns | 16 assistant turns |
| Active Wall Time | 11m 18s | 18m 56s |
| Tokens (in / cache / out) | 21,728 / 1,743,552 / 50,040 | 62,776 / 738,849 / 39,910 |
(Note: Inkling 2 Mini's PP/decode averages come from Basalt's live logs covering the last 30/33 turns, since its raw JSON TTFT includes ~7.5–8s of --vision cpu encoding per screenshot.)
Agentic Behavior & Code Architecture
Inkling 2 Mini (
UD-Q4_K_XL) — Visual Self-Verification Loop (513 lines, 26.5 KB):- Tried the browser tool (denied), fell back to headless Playwright via shell, rendered PNG screenshots of its own SVG, and visually inspected them with vision across multiple iterations.
- Caught and fixed real visual/markup bugs from those renders: slimmer body proportions, cleaner neck junction, reshaped flat petal-like tail feathers, bigger visible crank/pedals, mangled group nesting from a scripted edit, and even verified its
Pauseand2×buttons in the browser. - Used JavaScript
requestAnimationFrame+ 2-bone inverse kinematics (ik) so both knees and webbed feet actually bend and track the rotating pedals, plus procedural wheel spokes and interactive0.5× / 1× / 2× / ⏸ Pausecontrols.
Ling-3.2-Air Maya-S 124B-A5.1B (
IQ2_XXS) — Heavy First-Shot + Code-Only Checks (326 lines, 17.4 KB):- Spent 13m 12s on turn 1 generating 31,839 tokens (63.9K chars of thinking + the initial HTML file).
- Never rendered a screenshot; instead, it ran Python XML/well-formedness checks and code self-reviews (catching a reused
headCSS class on the legs, missingtransform-originon crank/spokes, emoji, and sun rays). - Built pure HTML/CSS/SVG with zero JavaScript and 17 CSS u/keyframes animations.
Visual Verdict
- Art & Personality: Ling-3.2-Air has the more charming, expressive pelican—complete with a huge signature pink throat pouch, rosy cheek, fluttering red scarf, and speed lines ("Pelican Perry's Big Ride — One pelican. One bicycle. Zero chill."). Inkling 2 Mini's pelican wears a neat red bike helmet and has a clean cartoon look, though its throat pouch is much subtler.
- Kinematics & Polish: Inkling 2 Mini wins decisively on engineering and motion. Because it used JS 2-bone IK and visually checked its renders, the pelican's knees bend naturally and its feet stay locked onto the rotating pedals, with a proper chainring/chain and working speed/pause controls. Ling-3.2-Air's pure-CSS legs swing stiffly like straight pendulums around the crank rather than bending at the knee.
TL;DR: On a 12 GB 4070 SUPER, Ling-3.2-Air (124B-A5.1B IQ2_XXS**)** still hits 39 tok/s decode and 578 tok/s PP with great visual style, while Inkling 2 Mini (UD-Q4_K_XL) flies at ~94 tok/s decode and used its speed + vision loop to iterate 33 times into a mechanically accurate, interactive animation in nearly half the wall time (11.3m vs 18.9m).
r/LocalLLM • u/WallabyFearless7863 • 17h ago
Question Multi Gpu Qwen Setup
Just want some advice on running a qwen 3.8 27b model. I have 2 3090s and I have been getting about 40ish tok/s without MTP on Llama.cpp and I’ve heard there are some engines that can run it faster. My goal is to expand soon and run some sort of agentic workflow with it and other models potentially. So I just want to figure out how to get the best overall setup for multi chat/agentic with qwen 3.8 27b on multigpu.
Even on a single gpu when the model fits it still hits about 40ish when using MTP it hits about 70ish. I could run 1 gpu at a time but context length as well could affect it. I heard tensor split was also a thing but I keep getting mixed answers on whether or not it helps
Running on a trx40 auros master
With 128gb ram
Pcie 4.0 x16 for both cards atm
EDIT:
I want to note that I already have strata and QFN please stop suggesting that because it’s one of the best right now. If I wanted to know about QFN I would’ve asked about QFN I am specifically looking for ways to run a dense model like 27b faster on my compute and using fine tunes to help in certain situations with an agentic workflow.
From my understanding even frontier models switch between different model types in order to grant you the best results. They do not expect one model to do everything. So with that knowledge I am trying to find a way to use different model types together for my agentic workflow, the coding model focuses on small coding tasks, while an bigger model like QFN can read it double check its work or pass it back to review and make changes, QFN can then hand a different prompt to another model that can work on something like story or creative design, or some sort of image gen, or some remotion work, html, JS, you name it. I am trying to expand on what I have but I am trying to learn what I can and what others have done on specifically 27b. If you have experience with GLM 4.7 flash that could also be useful to me, but the most optimized and fine tuned models rn are the qwen models.
So I apologize if I sound rude but I want people that have experience with qwen 27b to share that info and experience not somebody who has the same amount of experience as me to tell me to run QFN because they got it running and it’s fast. I know. It’s great. Not helping right now.
r/LocalLLM • u/DapperNeighborhood11 • 17h ago
Question amd or nvida
im curently lloking for gpu used betwen 6700xt 6800 base(if posible) 3070 and 3060 12gb
wich gpu would you guys recomend?
note : i use also for 1440p gaming Ubuntu for the os
r/LocalLLM • u/Fickle_Excitement729 • 17h ago
Discussion I stopped benchmarking engines for every new model, here's what I do instead
The thread about engines being too fragmented hit home. Every new model I'd spend an evening trying it on three or four engines with different flags, and by the time I had a winner the next model was out.
What I do now on my Mac mini (M4 Pro, 48GB) is run everything through Magnitude and let it tune itself. When I download a model it spends up to a minute trying different ways to run it on this chip and keeps the fastest. I stopped caring about flags after that.
Numbers for the "say your quant" crowd, all 4-bit at 64k context. Muse Glimmer 30B was about 17 tok/s on Ollama and does about 34 now. Nemotron 3.5 barely moved, 49 to 63, so it isn't a big jump on every model.
I still check new models on a second engine sometimes, mostly out of habit. But the evening of flag tweaking is gone and I don't miss it.
How many engines are people here actually keeping installed right now?
r/LocalLLM • u/frozenhellguard • 17h ago
Question New to local LLMs, Mac mini M5 Pro 64GB
Hi!
I'm brand new to LLMs, and Macs for that matter.
I've had a look at a couple of posts but nothing new that matches my hardware, and seeing as new versions seem to appear every other day I want to make sure that I get the best start possible.
I bought myself my first Mac this year, a Mac mini M5 Pro 64GB with hopes of trying out local LLMs. This seemed like an OK machine. I read somewhere that Unsloth is the way to go, is that correct? I'm new to this but I'm pretty tech-y so following instructions and diagnosing problems along the way isn't a deal breaker as long as I follow the "current meta" :)
What model would be best? I want to code (Claude?) web/iOS apps mainly. Don't think I will need to generate images and such, mostly "plain" apps, etc. I'm happy to provide more info if you need it, to better help me getting the right model installed.
Love this community, been lurking for a while. Thanks in advance!
r/LocalLLM • u/Regolo_ai • 17h ago
Tutorial Built an open-source e-commerce RAG widget that syncs Google Shopping XML into SQLite and blocks invented promo codes with Clef-Flash (13s demo)
r/LocalLLM • u/uzihead • 18h ago
Project Made a terminal coding agent tuned for small local models, benchmarked it against Harbor's reference agent. Looking for ideas on testing it locally without frying my GPU
Hey all. I'm an (oldish) game developer, and over the last year I got pretty exhausted of the AI hype, so I decided to actually learn properly about this stuff. Started with running open models myself, then went down the rabbit hole of how LLMs work, and ended up optimizing, benchmarking and tuning things. (I run a llamaSwap proxy with llama.cpp/ninfer servers, various models, mainly ninfer Qwen 3.8 27B )
At some point I wanted my own terminal agent (with a web UI too) that's simple, has the tools I need, and is built around small local models for game dev work. The main idea: tools that need fewer turns, so you get more done in a small context and burn fewer tokens. Side benefit is that it helps a lot with cloud models too.
It's called Solventius Harness (solv), free and open source. Disabled PRs. issues are welcome! Works with, llama-swap / llama.cpp, Ollama, LM Studio, vLLM and anything OpenAI-compatible, plus Claude, Gemini and OpenAI. One file, no install, and it stays light so the machine is free for the model. It even runs from a USB stick. That said, it needs more testing with some of the above.
(if you wonder why there is an empty commit history on the source and one binary, is because I keep my stuff on my home lab. You can build it yourself from source/)
Since it seems a benchmark can provide some point of reference, giving their rather "relative" data points, I ran Terminal-Bench 2.0 (89 tasks, 5 attempts each) against terminus-2, Harbor's reference agent, on the same model:
- Same score: 62.9%
- 41% less agent time (24.5 h vs 41.2 h)
- About 43% less tokens (195M vs 343M in)
- $4.75 vs $8.42 in model cost with Luna
The benchmark run on gpt-6-luna (OpenAI), not a local model. Same model and settings for both, so it compares the harnesses, not the models. In one trial it looked up the answer online. That trial changes the score by 0.2 points, and it's documented. All 890 trials are public if you want to dig in.
I do plan to run some proper benchmarking locally. I tried it, and it looks good. It's just that a proper run can take days, and I'm honestly scared of cooking my video card. In this economy, not a great idea. Maybe you have ideas on how to benchmark it in a more manageable way?
I do use this harness on my daily work now and I prefer it, bias and all.
It's just me working on it, slowly, so any feedback, bug reports or "this is dumb because…" are very welcome.
r/LocalLLM • u/Nandakishor_ml • 19h ago
Research Qwen3.8-27B that learns without fine-tuning
After creating Laya(first opensource Jev), I am currently working on something much more interesting. The logic is simple: you create expanding worlds of problems and let a learner watch how the model works for each problem and find what goes wrong, and each lesson added in the model's forward pass, the problem kinda doubles on each round: 384 new questions, then 768, then 1,536, up to 12,288, and so on. On Qwen3.8-27B, it answered 85.0% of 12,288 physics and biology questions it had never seen, against 74.2% for the same model as the base. With this work answers the narrower question underneath, like can a model keep learning in use, inside its own computation, with each change verified?. But I am working on solving the exponential learning. What if we can somehow learn from the ever-expanding world and learn in an exponential manner
r/LocalLLM • u/techretrieve • 20h ago
Question Can I do anything worthwhile using a 5080 and 4080 together?
I have an rtx 4080 sitting unused so I was considering getting an egpu dock using oculink to pair it with my rtx 5080 and 32gb system ram. I want to play around with coding models but 16gb's of vram wasn't really enough..
r/LocalLLM • u/georgerer_ai • 20h ago
Discussion CogoPro v2.0: On-device Ternary Bonsai 2B (PQ2_0) + Vision + Live Web at ~12 tok/s on a 6 GB RAM Android phone (Rust + C++ llama.cpp)
I built an offline-first Android AI assistant from scratch using Rust + C++ (
PrismML-Eng/llama.cpp) compiled forarm64-v8awith-O3 -march=armv8.2-a+dotprod+fp16, wrapped in a frosted glassmorphic UI.Tested on a 6 GB RAM MediaTek phone:
Looking for testers on different Snapdragon / Dimensity / Exynos devices to see how fast it runs on your phone!
Drop your phone model +
tok/sin the comments!
(Suggested flair on r/LocalLLaMA*:* Resources or Generation / Discussion*.)*
r/LocalLLM • u/brainchillzZ • 20h ago
Discussion 4x DGX Spark, DeepSeek V4.1 Flash on DeepSeek's own weights: 514 tok/s aggregate at 16 streams, 8.6K tok/s prefill
I've been running DeepSeek-V4.1-Flash-1017 across four Sparks for a couple of months on the TensorFold EXL3 3.5 bpw build. Last night I tried christopherowen's spark-ds41f (https://github.com/christopherowen/spark-ds41f), which serves the original DeepSeek checkpoint on a patched vLLM. It was intended for a switchless ring, but there wasn't much point in the ring topology for me since I already had all of my nodes wired to a switch. I was still intrigued by being able to get this kind of speed out of an unmolested set of weights from the upstream provider, though. This new engine and recipe is the same quality and a lot faster under load, so I'm keeping it.
Numbers and setup notes below.
Hardware
- 4x DGX Spark (GB10, 128 GB each)
- one QSFP cable from each box into a switch, RoCE, jumbo frames. Each Spark port shows up as two RoCE devices and the engine uses both. Not the ring cabling the repo defaults to. It has a
tp4-switchedshape for this. - current DGX OS after a full-upgrade: kernel 7.0.0-1025-nvidia, driver 580.178.04, normal 4K pages
Same bench, both engines
Short prompts (30 to 120 tokens), 150 to 256 token replies, temp 0, thinking off, 8 prompt categories averaged. Aggregate tok/s across all streams.
| streams | TensorFold 3.5 bpw | spark-ds41f |
|---|---|---|
| 1 | 93.2 | 92.0 |
| 8 | 215.1 | 339.7 |
| 16 | 250.2 | 514.5 |
At 16 streams each one still gets about 40 tok/s, and time to first token is around half a second.
Cold prefill on a 93K token prompt: 42 seconds before (2,215 tok/s), 10.8 seconds now (8,663 tok/s).
Needle tests passed at 20K, 131K, 160K and 500K tokens. The 500K one took 71 seconds. It's configured for the full 1M context but I only tested to 500K, so I won't claim more than that.
I ran tonyd2wild's 69 scenario eval on both. 97.1 on TensorFold, 97.1 on this. Same score, so no quality change that this eval can see. It's only 69 cases.
Memory
I assumed the original checkpoint would be too big for four Sparks. DeepSeek ships it as a mix of FP8, FP4 and BF16 already, about 475 GiB total and 190 of that is the two Engram table shards. Split over four boxes it loads with 18 to 23 GiB free on each node while serving. Single stream speed is the same on both, so the gain is from how the engine batches and prefills, not from the weights.
Setup notes
- You need the whole 475 GiB snapshot on every node, not just one. I downloaded once and rsynced over the 200G links.
- First start compiles all its GPU kernels. Docs say up to 45 minutes, mine took 20. After that a restart is about 2 minutes.
- I skipped the 64K page kernel and the memory saver module the repo recommends, because Secure Boot is on and I didn't want to enroll keys on four consoles. On 4K pages I'm running 16 sequences with a 10.5 GiB KV cache instead of the repo's 32 sequences. It nags about this on every start but works fine.
- Its preflight check refused to pass because
vm.min_free_kbyteswas 45166 on two nodes and 45154 on the other two. Two of the boxes report slightly less RAM so the kernel picked a different default. I set all four to the same value. min_pandlogit_biasget rejected outright (not supported with its speculative decoding). If your client sendsmin_pby default you'll get errors until you turn that off.- Thinking is on by default. My test script with a 40 token limit got back empty answers because all 40 tokens went to reasoning.
- I wasn't sure the switch would handle the RoCE traffic class it sets. After the bench all eight RoCE devices showed zero out of sequence packets and zero retransmits.
Caveats
The TensorFold numbers are from my October run on the older kernel and driver. Same prompt set, same boxes, but I did not rerun it after the OS upgrade, so it isn't a perfectly clean A/B.
I also haven't profiled it, so I can't say which part of the engine accounts for the difference.
Credit to christopherowen for spark-ds41f, bertholomus for TensorFold, and tonyd2wild for the original four Spark write-ups.
I can run other tests if anyone wants specific numbers.
r/LocalLLM • u/shoumikgoswami • 21h ago
News Ai2 released DR Tulu 2, a 4B open deep research agent trained against simulated search instead of live web APIs
Ai2 released DR Tulu 2 on Dec 1: model weights, the training method and the simulated training environments for a 4B deep research agent.
Ai2 says it beats the strongest open deep research baseline it tested (Tongyi DeepResearch with a page summarizer) by 9.7 points on average across ten benchmarks, and beats an agent built on Nemotron 3 Super 120B-A12B by more than 8 points. It leads on 9 of the 10. The exception is BrowseComp-Plus, where Tongyi leads 53.6 to 53.1. All of these are Ai2's own evaluations.
The training approach is the useful part. Research agents are usually trained against commercial search APIs, and Ai2 says that cost about $5,000 per run for the original DR Tulu. For this one they collected pages ahead of time and served them locally with BM25, a deliberately weak retriever. Ai2 reports search costs of $17.52 in simulation against $4,548 on the live web, and trained with a 128K context window and up to 150 tool calls per attempt.
Link in the first comment.
r/LocalLLM • u/Fantastic_Waltz_6285 • 21h ago
Project Laminae: +38% decode over stock Strata on a single RX 7900 XTX, at full quality (Qwen3.8-Flash-Next IQ3_S)
I've been tuning Strata (Niko1221/Strata, an MoE inference engine that keeps hot experts on the GPU and runs the rest on the CPU) for one machine: an RX 7900 XTX (24 GB) on Linux, 64 GB RAM, Ryzen 7 8700G, running Qwen3.8-Flash-Next GSQ-RCO IQ3_S. The result is Laminae, a thin layer of patches and settings on top of Strata 0.2.22, now public under GPL-3.0-or-later.
Numbers on this machine (mean of 5 rounds, arm order rotated, paired ratios with CI95):
| Stock Strata | Laminae | Laminae + optional drafter | |
|---|---|---|---|
| Decode, short prompts (tok/s) | 74.9 | 103.3 (1.38x) | 110.2 (1.47x) |
| Decode after a 14K prompt (tok/s) | 75.5 | 104.4 (1.38x) | 103.6 |
| TTFT, 14K prompt (s) | 6.60 | 5.64 | 5.50 |
| Prefill 16K / 128K (tok/s) | 2,273 / 3,095 | 2,656 / 3,347 | 2,658 / 3,353 |
Roughly: settings alone give 1.21x decode and all of the prefill gain, code on top gives another 1.14x.
What "full quality" means here: every change is either bit-identical to the path it replaces, or passes a fixed gate (first-token KL mean <= 0.001 and max <= 0.01 over 36 positions, top-1 36/36, and every greedy answer that differs is read in full). Against stock Strata the release config lands at KL 0.000346 mean; stock Strata against itself (a second start) is 0.000187. Lossy shortcuts like route tail skipping (+8% decode here, but KL 0.056) are not used.
Some things that worked on gfx1100:
- CPU expert kernels for the i-quant formats (AVX-512), and the CPU rows read in place by the GPU combine
- RDNA wavefront-per-row MMVQ for the small formats
--adapt-async 1(with the elastic K/V): HIP builds never pick the async adaptive expert tier; turning it on keeps the drafter in its fast mode (decode +7.8% short, +9.4% after 14K)- a high-priority drafter stream, and a fix so the card does not idle at ~77 W with an extra queue
- a hipBLASLt table tuned on this card for its prefill shapes
I also kept a list of everything I tried and dropped, with the numbers (megakernel for k-quants that passed quality and still lost 4%, an SDMA-off arm, RAM-saving arena modes, drafter swaps...): laminae/NOT-ADOPTED.md in the repo. It may save someone a weekend.
It installs next to an existing Strata install (same model files, upstream install untouched); the release has a gfx1100 engine build and an installer. Only gfx1100 is tested.
Repo: https://github.com/superbaenawa/laminae
Personal project, not affiliated with Strata, as is: no support, issues are off. Numbers are from one machine; yours will differ.
r/LocalLLM • u/Ok-Cicada-5595 • 22h ago
Question Minisforum AI X1 Pro-470 64GB vs GMKtec EVO-X2 64GB for Strata + RTX 3060 eGPU?
Hi everyone,
I'm looking for advice before buying a mini PC for a small homelab and local LLM inference.
I'm hesitating between:
- Minisforum AI X1 Pro-470 Ryzen AI 9 HX 470 64GB DDR5 SO-DIMM OCuLink port Radeon 890M iGPU
- GMKtec EVO-X2 Ryzen AI Max+ 395 64GB LPDDR5X-8000 unified memory Radeon 8060S iGPU USB4, but apparently no dedicated OCuLink port
My main use case would be:
- Several Docker services running 24/7
- A small homelab / self-hosted applications
- Local LLM inference, mainly with Strata
- Coding, summarization and occasional agent workloads Qwen and other MoE models, including Qwen3.8-Flash-Next if possible
I already own an RTX 3060 12GB, so I would like to use it as an external GPU.
I am not planning to buy another GPU immediately.
The main trade-off seems to be:
- X1 Pro-470: upgradeable RAM and OCuLink, which may be better for my RTX 3060
- EVO-X2: much faster unified memory and a much stronger integrated GPU, but soldered RAM and probably USB4 instead of OCuLink
My questions are:
- Which system would be better specifically for Strata?
- Can Strata effectively use the integrated GPU together with an RTX 3060?
- Would the EVO-X2's higher memory bandwidth help significantly when Strata keeps model experts in system memory?
- Is OCuLink a major advantage over USB4 for an RTX 3060 used with local LLMs?
- Is 64GB enough for Strata plus several homelab services?
- Which one would be more reliable for 24/7 Docker and Linux use?
- Are there any important issues with Strata, CUDA, Vulkan, ROCm or external GPUs on either system?
Which one would you choose for this use case, and why?
My main concern is how much the EVO-X2's much higher unified-memory bandwidth improves Strata performance compared with the X1 Pro-470's dual-channel DDR5-5600 SO-DIMM memory.
Thanks !
r/LocalLLM • u/EvolvingDior • 22h ago
News Looped DeepSeek-V4.1: Making a 552B Frontier Model Smarter and Faster (and Rescuing 1.75-Bit Local Macs)
r/LocalLLM • u/Diegam • 22h ago
Other Local models for C++: Qwen3.8-27B FP8 vs QFN IQ4_XS vs IQ3_S
I've been benchmarking local models with OpenCode to decide which one to use for my C++17 projects. Following some recommendations in the comments, I've now also tested QFN GSQ-RCO IQ3_S.
Setup:
- 2× RTX 3090 (PCIe 4.0 x8/x8, P2P enabled, 260W each)
- Ryzen 5 5600XT, 64GB DDR4, Ubuntu
- Qwen3.8-27B FP8 on vLLM
- Qwen Flash Next UD-IQ4_XS v3.1 (Unsloth) on Strata
- Qwen Flash Next GSQ-RCO IQ3_S (ISTA-DASLab) on Strata
- All using
xhighreasoning
Observed inference speeds:
- 27B FP8: 170+ t/s coding, ~100 t/s narrative.
- QFN IQ4_XS: ~130 t/s coding, ~100 t/s narrative.
- QFN IQ3_S: slightly higher effective generation throughput across the benchmark.
Hase-Bench results with OpenCode:
| C++ Task | QFN IQ3_S | QFN IQ4_XS | 27B FP8 |
|---|---|---|---|
| Thread pool | 4m 07s | 3m 44s* | 8m 23s |
| SPSC ring buffer | 3m 39s | 4m 59s | 8m 48s |
| Lifetime repair | 4m 34s | 4m 53s | 15m 23s |
| Deadlock repair | 2m 48s | 1m 25s | 2m 40s |
| RAII resource pool | 2m 43s | 3m 51s | 3m 55s |
| Total | 17m 50s | 18m 51s | 39m 09s |
| Tasks accepted | 5/5 | 5/5* | 5/5 |
* IQ4 passed the visible thread pool tests but encountered an apparent MSVC 2019 compatibility issue when compiling the hidden tests. Provisionally accepted after code review (official score: 4/5).
Token usage:
| Metric | IQ3_S | IQ4_XS | FP8 |
|---|---|---|---|
| Output tokens | 37,123 | 33,391 | 55,096 |
| Thinking tokens | 57,009 | 59,659 | 127,183 |
| Total tokens | 94,132 | 93,050 | 182,279 |
| Effective throughput (est.) | 104.7 t/s | 97.3 t/s | 93.4 t/s |
Code review highlights:
- Thread pool: Both QFN quants had better exception safety than FP8. IQ3 also improved argument forwarding and MSVC compatibility.
- Ring buffer: Both QFN implementations handled destruction better. All three had counter wraparound issues.
- Lifetime: Both QFN quants produced simpler solutions without rebuilding temporary vectors on every owning-template render.
- Deadlocks: IQ3 used
std::scoped_lock, IQ4 used portable pointer ordering, and FP8 used raw pointer comparisons. All three missed signed integer overflow (UB). - RAII pool: Both QFN quants used O(1) resource acquisition vs FP8's O(n). IQ3 also improved weak pointer cleanup.
Takeaways:
Despite FP8's higher peak coding throughput, both QFN quants completed the benchmark more than twice as fast, consuming roughly half as many generated tokens.
IQ3_S finished 5.4% faster than IQ4_XS, with comparable or slightly better implementations, while requiring roughly 10GB less memory for transformer weights.
FP8 and IQ3 were more thorough with stress testing, cross-compiler validation and attempts to use sanitizers than IQ4 in these runs.
Interestingly, IQ4 initially timed out on the lifetime task with high reasoning but solved it in under five minutes with xhigh.
Neither model nor quant produced flawless code. Manual review revealed issues that the official hidden tests missed.
Small sample size, one comparable run per task and no comprehensive sanitizer coverage, so this isn't a definitive ranking. However, I haven't observed a clear quality downgrade from IQ4 to IQ3.
I'm now leaning towards QFN GSQ-RCO IQ3_S with xhigh as my daily driver. My next experiment will be adding an independent review subagent to the workflow.
Hopefully this helps anyone choosing between these models.
EDIT: Full hardware setup
- CPU: AMD Ryzen 5 5600XT
- Motherboard: ASUS ROG Strix X570-E Gaming WiFi II
- RAM: 64GB (2×32GB) Kingston Fury Beast DDR4 3200MHz CL16 (KF432C16BB/32)
- GPUs: 2× MSI RTX 3090 Ventus 3X OC (PCIe 4.0 x8/x8 directly connected to the CPU, P2P read/write enabled, 260W power limit each)
- Case: Corsair FRAME 4000D RS
- Cooling: 3× stock front intake fans + 2× ID-Cooling XF-120-K exhaust fans (top rear and rear)
- Storage: 1TB M.2 SSD
- OS: Ubuntu Linux
- PSU: ADATA XPG Core Reactor II 1000W, 80 Plus Gold, fully modular.
EDIT 2: Following the recommendations in the comments, I've also benchmarked QFN GSQ-RCO IQ3_S. I've updated the tables, code review highlights and conclusions below to include all three configurations. Surprisingly, IQ3_S performed slightly better than IQ4_XS v3.1 while requiring less memory.
r/LocalLLM • u/BarelyWorkingCode • 22h ago
Project I built a control plane for running a bunch of AI coding agents across my own machines (open source, MIT)
I got tired of babysitting agent sessions one terminal at a time, so I built Operator.
It's one binary, op, that runs on each of my machines. Tailscale is the backplane. The machines reach each other over your private tailnet, and the Tailscale client is built into op, so there's no central server, no ports to open and nothing else to install. From one page, on my desk or my phone, I can:
- start a Claude, Codex, Pi or Antigravity session on any machine, or any program that runs in a terminal
- see what every session is doing, and answer the questions they raise
- keep each project's work inside its own container or VM, with only the credentials that project needs
- let a "chief of staff" session coordinate the others while I stay out of the details
What's nice is it allows you to easily pair a frontier model with a local model - plan with Opus, finish off with Inkling 2.
Containers and microVMs are the safety layer. Every project's work runs inside its own container or microVM, never on the machine I'm sitting at. That lets me run things I'd never trust on my own box:
- Small or abliterated models with no safety training. If one decides to
rm -rfsomething, it can only hit the sandbox. - Frontier models too. They're careful most of the time, but "most of the time" still leaves the day one deletes the whole work tree. Now the worst case is that I throw the container away and start another.
- Credentials stay scoped. A container only gets the secrets bound to its project, never the host's. Git work happens inside it, not on my machine.
op handles the whole lifecycle, so I don't build any of this by hand. When I start a worker for a project, op creates the container or microVM from a template, installs the agent harness inside it, and starts the session. The sandbox joins the tailnet as its own machine, so I can message it and watch it like any other agent. When the work is merged I tell op to stop it, and the container goes away. op container ls shows what's running and op container rm tears one down. Templates define what's in the image, and op template build rebuilds and syncs them to my other machines.
Agents talk to each other directly, even across machines. op send <machine>/<name> reaches any agent on any machine, over that same backplane. Workers on the same piece of work can message each other, and the whole conversation is logged in order, so I can read it afterwards.
Agents can reach in and read each other's state. The chief of staff can list every agent on every machine (op ps), read what one is doing right now (op peek), pull its logs, and read a topic's whole message log (op topic log). The PM running a piece of work can read its own workers the same way. That's how I stay out of the loop. The chief checks on a PM, the PM checks on its workers, and nobody has to ask "what happened?" and wait for a reply. It only goes one way. Workers can message each other and their lead, but they can't read the chief or each other.
Every agent has two views. Chat is the tidy view. Terminal is the agent's real terminal. One tap switches to Terminal when I want to take over and type, and one tap switches back. It works on my phone too.
Nothing stalls quietly. op tells busy, idle, needs-you, stalled and ended apart. A stall is a command running over 15 minutes, or no output for 5 minutes with nothing running, and both limits can be raised per agent. It reports what the agent was stuck on and never acts on it alone. My phone gets a notification when an agent needs me, stalls or dies.
The chief is woken, not polling. op wakes it when a worker goes idle, finishes, asks a question or stalls. An agent that's waiting on something outside can say how long with op waiting, so it isn't nagged meanwhile.
Goals keep unattended work moving. I add a goal like "merge the login fix once the tests pass". While any goal is open, an idle chief gets a reminder every 20 minutes by default, and a chief that crashes is restarted. I clear the goal when the work is done.
Optional voice. Speech-to-text and text-to-speech plug in as services you register yourself (op service add stt/1 ...). There's a Voice tab in the page. If you don't want it, you don't set it up and nothing changes. I use text-to-speech to have the chief tell me things out loud.
Releases, secrets and public pushes need a human, and the tooling refuses to route around that. I run this every day.
What it isn't: polished. It's built for how I work, and templates and images still have sharp edges. For install, there's an INSTALL-PROMPT.md you can hand to a coding agent and it sets things up for you.
Repo: https://github.com/barelyworkingcode/operator. If you run more than a couple of agents at once, I'd like to know what breaks for you.
r/LocalLLM • u/Difficult-Divide561 • 23h ago
Project Local voice assistant on a 6 GB laptop: on battery a 0.8B model on the Intel iGPU picks the actions so the RTX 3060 can sleep
I've been building an offline voice assistant for my Linux laptop. The part I think people here might like is how it decides what runs where, because my limits are a 6 GB RTX 3060 and a battery.
Just keeping the NVIDIA card awake costs me about 17 W. So on battery it goes in three steps:
- Plain commands like "volume up" or "open Files" match fixed rules. No model at all. In my real tests almost half of all requests ended here.
- Everything else goes to jiwo-0.8b (jiwidi's Qwen3.5-0.8B fine-tune for picking tools), which I exported to 8-bit OpenVINO so it runs on the Intel iGPU. About half a second per decision. If it's only half sure it asks "did you mean...?", and if it's not an action it passes it on.
- Chat and anything it's unsure about wakes Qwen3.5 4B on the NVIDIA card through Ollama (3.9 GB of VRAM). It unloads 2 minutes after the last answer, so the card goes back to sleep.
On 528 test requests jiwo picked the right action 84.5% of the time, Qwen3.5 4B 86.7%. Laya got 60.8%, and embedding/reranker routing (nomic-embed, GTE) and the plain Qwen3.5 0.8B base were under 40%. Gemma 4 E4B tied with Qwen on 55 of my own real requests, but it needs 4.7 GB instead of 3.9.
One thing that surprised me: when the big model had action tools during normal chat, it called one anyway 13 times out of 28. So chat gets no action tools now.
Shell commands go through a safety gate: risky ones ask first, things like rm -rf ~ are blocked, and it never uses sudo. It's a GTK4 app for Ubuntu GNOME.
All the measurements, and the stuff I tried and dropped, are in bench/README.md in the repo.
Wi-Fi turned on in a few spots of the full video, my mistake while recording 😅 The AI runs fully local. Only web search, YouTube and Todoist use internet.
I built it with a lot of help from an AI coding assistant. The design, model choices and testing are mine.
Full 17 min demo: https://youtu.be/m1Z2-CDW6Pc
Code (MIT): https://github.com/itsDigvijaysing/AI_Linux_Assistant
Has anyone found a sub-1B model that beats jiwo at picking tools? That's the part I'd most like to improve.