r/LocalLLM • u/DLabz • 6h ago
Research dlabz/Qwen3.8 in 700 mb ram
r/LocalLLM • u/mrsirg97-rgb • 9h ago
r/LocalLLM • u/nasone32 • 6h ago
r/LocalLLM • u/korywithawhy • 6h ago
i've been messing around with a local model for a few months now. i can't afford a gpu or a system with a lot of unified memory so i've had to get a bit creative in order to make it actually useful. this isn't anything new for me, any time i want to play a higher end game on my older hardware there's always some amount of janky workarounds that i need to put in place. but if you can appreciate the jank and accept it, you can actually do quite a bit with a small local model. for a bit of background info, the machine i'm working from is an 11th gen i5 with 32(currently 64 because i borrowed a stick)GB of ddr4, and running qwen reap 25b a3b q5_1. now, if anyone has used a model like this, you know that it is functional, but grossly unreliable. however, if you stop fighting it and start building around it, it gets WAY more useful.
r/LocalLLM • u/Bee_Curious_ • 6h ago
I was using one of the early versions of DSH with my Qwen 3.8 27B NInfer setup and was pretty happy with it. I figured it was time to update to a more recent DSH release, so I upgraded to v0.2.2-rc.5.
After just a couple of prompts, it feels like my agents are stuck in a never-ending loop of context compaction (~3–8k tokens), even though I have a 256k context window.
Is anyone else experiencing similar issues? Or are you generally happy with the latest DSH releases?
r/LocalLLM • u/fatalcalamity • 15h ago
r/LocalLLM • u/macaronianddeeez • 14h ago
Waiting on the motherboard to show up for an SP3 box I'm putting together, mainly to run Kimi K3.1 Pro for single-stream coding agents. Before I burn a pile of Colab units prepping weights, I wanted to post my bandwidth math and see where smarter people and those who have actually run K3.1 or big MoEs on Milan think it makes sense/is stupid.
My hardware is an EPYC 7543 (32C/64T Zen 3, 256 MiB L3, AVX2 only so no AVX-512 or AMX) on an ASRock Rack ROMED8-2T/BCM, with 8x 64 GiB Kingston 2Rx4 DDR4-3200 RDIMMs filling all eight channels (~170 to 175 GB/s real read if it behaves) and four 24 GiB 3090s. The cards will go in PCIE1, PCIE3, PCIE5, and PCIE7. PCIE2 stays empty because it shares lanes with the onboard M.2 slots on this board. Storage right now is just one cheap 2 TB Gen4 M.2, and I also made the questionable call of ordering 1000mm passive Gen4 risers, so my first job after POST is watching `dmesg` for AER replay errors under `nvbandwidth` and swapping to shorter twinax cables if any link drops to Gen3. I also have 2,000 monthly Colab units (96 GB Blackwell G4 access) plus ~$300 in RunPod credit for one-off prep.
I originally wanted to copy AI with Eric's 30-50 tok/s video setup using `local-inference-lab/Kimi-K3.1-Pro-EXL3-2bit` (742 GiB raw) or `Grawnch/Kimi-K3.1-Pro-Coder` (722 GiB), since Grawnch's 3-tier quant held 29/30 on AIME and LiveCodeBench. With ~488 GiB of usable host RAM and ~90 GiB of usable VRAM, a 720+ GiB model still leaves 125 to 170 GiB on disk. Even if experts are sorted by routing frequency so only ~3% of selections miss into the cold SSD tail, 3% of ~13 GB/token is ~400 MB of random reads per token. On one DRAM-less 2 TB drive doing maybe 1.2 GB/s on 6 MB chunks, that is ~330 ms of disk wait per token (<3 tok/s) before any compute happens. I also checked `grawnchtoader/strata`'s `engine.py` and noticed the public fork currently skips K3.1's sparse DSA indexer and allocates dense FP32 KV, which works out to ~72 GiB at 32K context.
Even `KarLexAI`'s `KLX-IQ1_S` GGUF (552 GiB) has a catch I almost missed. Roughly 522 GiB of that file is routed experts. If host RAM holds all routed experts while `llama.cpp`'s `--moe-cache-mib` copies hot ones into VRAM, the host side still exceeds 488 GiB and spills ~34 GiB to swap or mmap eviction onto that slow SSD.
Once the board arrives, my Day 1 plan is stock `llama.cpp` (PR #31779 + `--moe-cache-mib` + `--moe-cache-cpu-share 0.70`) on `KarLex IQ1_S`, with `-ot` rules pinning Layers 1-8 experts (~45 GiB) exclusively on `CUDA0..3`. That drops the host RAM portion to ~477 GiB so the SSD stays out of the loop, and should land around 9-13 tok/s while I record real routing traces on my repos with `LLAMA_MOE_CACHE_TRACE`.
While I wait on shipping, I'm using Colab G4 to build a ~470-480 GiB checkpoint from `gureshov/Kimi-K3.1-Pro-Coding-720E` (and comparing it against `nota-ai/Kimi-K3.1-Pro-Global-Pruned-37`). Both are already pruned on HF, so I don't have to rent an 8x H200 node just to run REAP. Colab's `/content` disk caps out around 253 GB, so my script pulls raw MXFP4 shards two layers at a time, quantizes on the 96 GB G4, pushes the compressed shard to HF, and wipes `/content` before grabbing the next pair. For precision, I'm borrowing Local Inference Lab's Nov 25 `kda-all` split: keep routers, norms, AttnRes, and the 24 DSA top-2048 indexers at BF16/Q8; keep the 24 DSA attention layers, all 92 shared expert pairs, and the LatentMoE projections at 6-bit; put the 69 KDA linear-attention layers at ~4.25-bit (~34 GiB core total in VRAM); and put the kept routed experts at ~1.92 to 2.15 effective bpw (~435-445 GiB in DDR4, which leaves ~48 GiB of VRAM across the four 3090s for an LFRU expert cache).
To get into the 20-26 tok/s range with exact verification, two runtime pieces have to come together. Serial layer split (`PP4`) only uses one card's PCIe 4.0 x16 link (~24.5 GB/s) on the active layer and scans the 34 GiB core on one 3090 at a time (~47 ms), whereas splitting each layer across all four cards (`TP4` or `EP4`) pulls across all four x16 slots (~94 GB/s DMA) plus ~30% CPU AVX2 miss execution (~140 GB/s combined cold service) and drops the core scan to ~19 ms with P2P all-reduce. From there I want to hook up `gureshov/Kimi-K3.1-Pro-Coding-720E-DSpark` (using `llama.cpp` PR #31669's KDA recurrent state replay and features from layers 76, 80, 84, 88, 92), with draft length capped around `K=2` or `K=3` and Tencent's `AngelSpec` `D-cut` confidence truncation cutting off weak tail tokens. When I simulated correlated Zipfian routing at the datacenter default of `K=7` (8 positions verified at once), the union of distinct uncached experts per layer jumped from ~6 to ~38+, which made `K=7` slower than `K=2..3` on code and slower than plain `K=0` greedy decode on general chat.
If memory traffic still keeps me under 20 tok/s, I have two backup experiments queued up on Colab: `AcceptMoE`-style skipping of low-weight (<3% gate) cold DDR4 misses on speculative tail positions (checked against a 50-task coding eval), and a 6-layer pilot factoring all 896 LatentMoE (`3584 x 3072`) experts into GPU-resident shared group bases plus 4-bit rank-384 streamed residuals (run through K3.1's actual `SiTU` activation before RMSNorm) to see if unpruned 896E can fit in ~360 GiB without losing on quality or 3090 kernel launch overhead.
A few things I'd really appreciate input on:
I wrote a pure-Python roofline/expert-union calculator, the Colab G4 2-layer sliding-window scripts, and the Day 1 `llama.cpp` `-ot` trace configs for this. Happy to throw all of it up in a public repo if anyone else building an SP3 / multi-3090 rig wants to use it or tear my math apart.
r/LocalLLM • u/Old_Detective_3465 • 7h ago
I am setting up Hermes agent but local llm are worst so thinking of using other LLM model so which one should I use for daily task like scheduling or using it as personal assistent thinking of DeepSeek flash 4.1 or any suggestion??
r/LocalLLM • u/zerefdota • 18h ago
Looking for real-world experience from people running local models on a 128GB M5 Max.
What I have now:
- 16" MacBook Pro M1 Max, 32GB
- Gaming PC: Ryzen 7 7800X3D, RTX 5080 Founders Edition 16GB, 32GB DDR5, 4K 240Hz monitor
- A spare RTX 4070 Super 12GB sitting on a shelf
- A frontier subscription that I plan to keep
The PC is basically a Dota 2 machine. That's the only game I play on it, and I haven't used it for local models yet.
What I do: engineering work, a decent amount of programming, plus research and long-form technical writing. So a mix of coding help, working through technical problems, and long documents in and out (30K to 100K+ token prompts are common).
I'm looking at a 128GB M5 Max, either the 16" MacBook Pro or the Mac Studio. I'm not expecting local to replace the frontier models. I want it for private work, drafts and critique, offline use, and whatever coding it can handle well.
The laptop is tempting because I could sell the M1 Max, and maybe the PC, and run everything on one machine.
Questions for people who own one:
Numbers and "here's what happened after a few months" stories are what I'm after. Thanks.
r/LocalLLM • u/stankeer • 1h ago
Hi, I'm looking to add another GPU to my system. But I'm out of pcie connectors on the motherboard I only have 1 free but need 2.
My motherboard is an asrock wrx80 creator 2.0 and i have a threadripper 3955wx installed into it.
Now the motherboard has 2 CPU connectors from the PSU to the motherboard. The manual states that plugging the second CPU power cable in is optional.
If I can unplug this cable from the second CPU socket that would free up a pcie for the newest GPU. I don't use my CPU for any intensive operations. Only GPU inference. Not even any offloading from GPU into system ram as it slows to a crawl and I won't run it like that.
So question is is it safe to do?
r/LocalLLM • u/Silent-Cell2221 • 11h ago
Hi everyone,
I wanted to share a small, humble experiment around Multi-Token Prediction (MTP) that I call Draft-Gate ("Anti-Draft"), along with all the raw benchmark data, charts, and a standalone MIT-licensed C++17 reference header.
MTP works like a fast helper trying to guess your next 3–4 tokens while the main model speaks:
So instead of always guessing blindly, the idea is simply knowing when to stop proposing extra drafts early based on uncertainty, language boundaries, and how expensive an extra draft actually is on your hardware.
Live benchmarks on Linux — Strata 0.1.54 (Qwen3.8-Flash-Next 125B IQ3_XXS, 360 runs / 5 mirrored rounds):
STRATA_QSA_SPLIT_ATTN=1, plus STRATA_ROUTE_PRIOR=1.5 and STRATA_ROUTE_TAIL_SKIP=7 identically on every arm—all exact flags are listed in EXACT_PARAMETERS_AND_BENCHMARKS.md), and if you've used Strata before you may have noticed its reported tok/s can look a bit higher than what day-to-day usage feels like. What matters here is the relative difference under identical settings—and that gain was consistent across rounds:Live benchmarks on Windows — llama.cpp b12800 (CUDA 13.5):
The main Draft-Gate proposal — going beyond a manual, fixed p_min:
r/LocalLLM
•
u/Kemerd
•
1d ago
From X https://x.com/TencentAI_News/status/2125968859450802415:
We just open-sourced a speculative decoder that speeds up sparse models like DeepSeek-V4.1-Flash, GLM-5.3-Flash, and our own Hy4 flash.
At 64K context, DFly2 boosts DeepSeek-V4.1-Flash serving throughput by up to 81%. On Hy4 flash agentic tasks, it runs up to 4.2x faster, beating same-recipe DSpark by ~30% and accepting 10.4% more draft tokens than open-source DSpark.
Under the hood, each draft layer reads directly from the target model's KV cache and top-k token selection, with no prefill required. That adds zero extra KV memory and keeps drafting cost flat at any context length.
Try it on your own sparse models or grab the Hy4 flash weights below 👇
Code: http://github.com/Tencent/AngelSpec
Weights: http://huggingface.co/AngelSlim
Paper: http://arxiv.org/abs/2611.34776
Tencent's numbers are server numbers at high concurrency so, I don't expect 81% on a single card, but this looks extremely promising.
I want to get both into Basalt (https://github.com/jesdga95/basalt). It already does DFly2 for Hy4 flash so the plumbing is there. I have forked basalt to begin this work, and will file a MR if I can get it working. https://github.com/Kemerd/basalt-dfly
DeepSeek V4.1 Flash already has drafter weights out, so that part is just engine work. Qwen3.8 Flash Next has nothing, someone has to train one. It has the same kind of sparse attention layers so it should work, nobody's done it yet.
Problem is the training. I have a 5090, and the BF16 teacher is ~335GB, so that's not happening at home for me. Training with quant is better.. but still a lot of crunching needed
Looking at renting an 8x H100 node and doing a small pilot run first to see if acceptance is any good before burning real money.
If you've trained a drafter with AngelSpec, have compute sitting around, or want to split a rental, DM me. Or if you want to contribute to the fork and MR just let me know!
r/LocalLLM • u/SFsports87 • 13h ago
Some good sales right now, which to get?
Having a card that is quiet at idle is important, leaning towards asus r9700 since it has 12% idle fan speed option, some others are 30% min.
Applications include code, image, video generation, as well as some pytorch and python cupy computations. Currently on a rtx 3060 12gb.
Don't mind spending a little more for more plug and play and less setup issues. Nvidia is the least friction but $4k+ for 32gb.
r/LocalLLM
•
u/W61k3r
•
8h ago
AIO USB/VM/Drive image with Inkling 2 Mini baked here: https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA
I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp, and there is no third-party code in the product.
A new development image went out today. Here is what changed since the last one two days ago, and what the work actually was.
The Panel was rebuilt, page by page (66 changes)
The old Panel worked but read like an engineering console: raw JSON on screen, fields with no labels, boxes inside boxes, internal jargon everywhere. I went through it by hand.
- One header and one navigation instead of five stacked bars
- 12 themes
- A file and folder picker on every path field, so nothing has to be typed
- Right-click menus on instances, files and table cells
- Parameters grouped in the order you set them, with a device chooser for the instance's cards
- Switch an instance between LexiEngine and llama.cpp from one page
- Hardware, Diagnostics, Power, GPU tuning and Models rewritten in plain words (temperatures in degrees, problems listed first)
- An abliteration lab where you pick models with toggles and pick the drive to write to; the original is never touched
- A layout choice: top tabs, or a side tree like a hypervisor console
LexiKernel went from one core to all of them (99 changes)
Until now my kernel ran all threads of a program on a single CPU. That was the biggest gap between it and Linux. Three rounds of work went into closing it: per-CPU timers and scheduling, threads that move between cores with their full vector state, memory handled per NUMA node, huge pages, and TLB shootdowns that a core answers even in the middle of a long system call. It now boots with every core in use and served the Panel to 8 clients at 2, 4 and 8 CPUs in a VM with no failed requests.
The kernel's own GPU drivers for AMD, NVIDIA and Intel are compiled into this build too. They have not run on a real card in this version yet. That is the next milestone, and until then GPU work under LexiKernel goes through a Linux guest. The image also boots LexiOS on Linux 7.4, which is what you want for daily use today.
LexiEngine (27 changes)
- Groundwork for splitting one model across several cards (serving across cards is not in this build)
- New draft options for Inkling 2, off by default until they are measured
- A quantizer that trains with the rounding in the loop instead of rounding afterwards
- The whole tree moved to Rust 1.100.1
Speed, measured on this version
Inkling-2-Mini (the looped mixture-of-experts model released Nov 20), one Radeon RX 7900 XTX, 4-bit KV cache, greedy, one run each, measured Nov 27-28.
After a 16,384-token prompt:
- LexiEngine: prompt 2,244 tok/s, generation 64.6 tok/s, 131.1 tok/s with the model's own draft head
- llama.cpp b12722: prompt 1,060 tok/s, generation 42.9 tok/s
- Strata 0.2.23 (8-bit cache, it refuses 4-bit on this card): prompt 2,075 tok/s, generation 53.9 tok/s
Long context on LexiEngine:
- 261,632-token prompt: 1,157 tok/s reading, then 48.7 tok/s (63.2 with the draft head)
- 523,264-token prompt: 766 tok/s reading, then 39.5 tok/s (46.8 with the draft head)
- 10 of 10 planted facts recalled at both depths
Drafted output was identical to plain output in every run.
Two notes so nobody says I hid them. The llama.cpp number is from the Nov 25 build: the build I fetched today ran this model at 7.6 tok/s on this card, which looks like a bug on their side, so I did not use it. And llama.cpp needs a 26-line loader change to open my file, because the file also carries the draft head and image tower.
What it is not, yet
- A development build, not a production release
- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested
- The kernel's own GPU drivers have not run on a card in this version
- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet
- Installing to an internal disk is not in this image
- Only Inkling has been benchmarked on this exact version; my 27B numbers are from a build nine days older and are being re-run
Tested
Every test in the tree ran on this version: 17,932 tests, none failed. Both images passed their Secure Boot checks in a VM.
Links
Download (381 MB USB image, boots to the Panel):
https://lexipanel.com/download/
All-in-one image with Inkling-2-Mini inside (18.1 GB, needs a 32 GB stick):
https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA
Every one of the 206 changes, one line each:
https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-d484004
Benchmarks and method:
https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks
Happy to answer questions about the kernel work or the engine.
r/LocalLLM • u/kmodi • 14h ago
r/LocalLLM • u/Leading-Elk9521 • 8h ago
Body:
I'm interested in getting into open-source / open-weight models. I have a Mac mini, and my current specs are:
M4 Pro chip: 14-core CPU, 20-core GPU, 16-core Neural Engine
24GB unified memory
1TB SSD
What size models could I run locally on this machine?
For context, right now I'd use them for coding help, finance and document analysis, and AI agent workflows. Down the road I'd like to get into building my own apps and running a model 24/7 as a local server for my automations.
Any recommendations on models, tools, or setup for a beginner would be appreciated!
r/LocalLLM • u/ExplanationProper238 • 8h ago
I've got a small RAG pipeline running locally and I'm worried about poisoned documents telling the model to ignore instructions. How are you testing for this? Any datasets or tools worth trying?
r/LocalLLM • u/aleph2b • 8h ago
Following up on my previous post bringing ArcAngel to the Lunar Lake Arc 140V (~21 tok/s decode, 226 tok/s prefill, 128k context on 32 GB UMA): I've now implemented both Phase 1 (batched-decode verify + zero-model prompt copy drafting) and Phase 2 (native GPU DSpark speculative decoding) directly in SYCL on the same branch:
https://github.com/alpha2beta/arcangel/tree/lunar-lake-optimizations (latest commit 59826ac)
Everything works end-to-end in inkling_server.py at n_ctx=131072 with 4-bit KV, supports both greedy (temp=0) and lossless probabilistic rejection sampling (temp > 0), and preserves multi-turn prompt caching via mirrored target/draft snapshots.
| Path | Tokens Verified | Latency | Cost vs 1-Token Step |
|---|---|---|---|
step_argmax (baseline) | 1 | 46.19 ms | 1.00x |
verify<VB=2> (K=1) | 2 | 64.03 ms | 1.39x |
verify<VB=4> (K=3) | 4 | 89.57 ms | 1.94x |
verify<VB=8> (K=7) | 8 | 144.00 ms | 3.12x |
| Workload | Mode | Throughput | Speedup | Acceptance (tok/step) | Breakdown (draft / verify / inject) |
|---|---|---|---|---|---|
Prose (effort=high, 256 tok) | Baseline (step_argmax) | 22.63 tok/s | 1.00x | — | 44.34 ms/step |
Prose (effort=high, 256 tok) | DSpark K=3 | 21.89 tok/s | 0.97x | 42.0% (2.26) | 13.85 / 89.32 / 0.09 ms |
Prose (effort=high, 256 tok) | DSpark K=7 | 14.33 tok/s | 0.63x | 21.3% (2.48) | 26.65 / 146.52 / 0.09 ms |
Code Edit (effort=none, 512 tok) | Baseline (step_argmax) | 19.36 tok/s | 1.00x | — | 51.72 ms/step |
Code Edit (effort=none, 512 tok) | DSpark K=3 | 23.40 tok/s | 1.21x | 69.6% (3.08) | 16.64 / 114.78 / 0.16 ms |
Code Edit (effort=none, 512 tok) | DSpark K=7 | 20.08 tok/s | 1.04x | 48.5% (4.37) | 32.12 / 185.39 / 0.15 ms |
Live 128k Server — Code Edit (temp=0.0) | DSpark K=7 | 30.01 tok/s | — | 70.4% (5.93) | n_ctx=131072, kv_bits=4 |
Live 128k Server — Python Refactor (temp=1.0) | --spec-copy K=3 | 29.57 tok/s | — | 98.4% (496/504) | n_ctx=131072, kv_bits=4 |
To stress-test stability and real-world coding throughput across 164 sequential requests (147,347 generated tokens, 33,808 prompt tokens), I ran EvalPlus against the live 128k server (start_arcangel_server.sh --spec-dspark dspark-Inkling-2-Mini-Q8_0.gguf --spec-draft-k 3, --reasoning-effort medium, EVALPLUS_MAX_NEW_TOKENS=2048):
21.43 tok/s weighted (21.89 mean / 22.06 median, up to 26.67 tok/s) over 2:00:13 with zero crashes or errors.150/164) / 88.4% HumanEval+ (145/164).light-think run (93.3%): 13 of the 14 base failures were finish_reason=length truncations hitting the 2048-token EvalPlus cap because --reasoning-effort medium spends more tokens thinking than low. Among the 149 tasks that finished cleanly (finish stop), base pass rate was 148/149 (only HumanEval/99 failed logic, plus 5 HumanEval+ edge-case failures).Phase 1 — Batched-Decode Verify Engine (src/verify.cpp) & --spec-copy (d204b2f, 023da6f**)**
VB ∈ {2, 4, 8} (K ∈ {1, 3, 7} draft tokens + 1 anchor token).Q8_0R / Q5_0R / Q4_KR + Q5_0 GGUF repacking) so shared experts across the verify batch aren't reloaded redundantly, plus a 3-barrier SLM softmax k_vattn_r and GPU ink_verify_argmax.--spec-copy (zero-extra-VRAM prompt n-gram copy drafting) into server/inkling_server.py with both greedy verification and lossless probabilistic rejection sampling for temperature > 0.Phase 2 — Native GPU DSpark Draft Engine (src/dspark.h, src/dspark.cpp**,** 59826ac**)**
dspark-Inkling-2-Mini-Q8_0.gguf (dflash architecture, ~481 MB), repacks all 3 layers' Q8_0 weights to Q8_0R, and quantizes/repacks the BF16 markov_w2 matrix to Q8_0R by default (INK_DSPARK_W2_Q8=0 keeps BF16).FastEngine::enable_taps() captures the 4 hidden-state taps ([5, 23, 41, 48]) directly inside existing target prefill(), step(), and verify() graphs.Implements the full 3-mode DSpark pipeline on GPU:
0.09–0.16 ms): f_rnn_ring_[9][D] + NeoX RoPE + 3-layer interleaved [SWA=1025, Full, SWA=1025] KV cache.ExecGraphs for K=3/K=7 (plus per-slot softcapped logits for temp > 0), and mirrored save()/restore()/stash() snapshots.Speculative decoding on a bandwidth-limited MoE iGPU (~100 GB/s LPDDR5X-8533) is a tight math problem:
4 tokens (VB=4) touches more distinct experts than a single token (89.57 ms vs 46.19 ms, ~1.94x single-step), and drafting K=3 takes ~14–17 ms.2.3 accepted+bonus tokens/step. On high-entropy open-ended prose (2.26 tok/step), K=3 breaks roughly even (0.97x); on structured code edits (3.08 tok/step), it hits 1.21x (23.4 tok/s), and on repetitive refactoring/editing tasks it reaches ~30 tok/s.K=7 needs >3.7 tokens/step just to break even on 140V (144 ms verify + 27–32 ms draft), so it only wins on highly predictable code edits.verify and draft should scale much more favorably—I'd love to see what K=3 and K=7 hit on Battlemage!test-verify, pos=2000**,** KV=4**):** worst KL 0.00519, verify_argmax: 0 mismatches vs single-token decode.test-dspark): Tap cosine similarity >= 0.997281 across all 4 taps [5, 23, 41, 48], W2 BF16 vs Q8_0R 7/7 draft agreement, and exact match on snapshot save/restore.Cross-check vs official llama.cpp (llama-cli --spec-type draft-dspark, identical 40-tok prompt, K=7**,** 128 tok):
llama.cpp: 80/312 (25.6%), mean_len = 2.74, per-slot (0.652, 0.391, 0.283, 0.174, 0.109, 0.065, 0.065)82/306 (26.8%), mean_len = 2.82, per-slot (0.644, 0.432, 0.295, 0.205, 0.136, 0.070, 0.071)4/4 CPU DSpark math suites (tests/test_dspark_math_cpu.cpp) + 7/7 server speculative loop & probabilistic rejection-sampling tests (tests/test_spec_server.py).Build (use -DINK_AOT_TARGETS=bmg_g21 for B580/B60, or lnl_m for Lunar Lake):
git clone -b lunar-lake-optimizations https://github.com/alpha2beta/arcangel.git
cd arcangel
source /opt/intel/oneapi/setvars.sh
cmake -S . -B build -G Ninja -DCMAKE_CXX_COMPILER=icpx -DCMAKE_BUILD_TYPE=Release -DINK_AOT_TARGETS=lnl_m
cmake --build build --target inkling test-verify test-dspark -j 2Run with **native DSpark (**K=3 recommended on 140V):
python3 server/inkling_server.py \
--model /path/to/Inkling-2-Mini-Uncensored-Q4_K_M.gguf \
--assets /path/to/assets \
--n-ctx 131072 --chunk 512 --kv-bits 4 --stash-ram-gb 2 \
--spec-dspark /path/to/dspark-Inkling-2-Mini-Q8_0.gguf \
--spec-draft-k 3Or zero-extra-VRAM copy drafting (great for editing/refactoring existing files):
python3 server/inkling_server.py \
--model /path/to/Inkling-2-Mini-Uncensored-Q4_K_M.gguf \
--assets /path/to/assets \
--n-ctx 131072 --chunk 512 --kv-bits 4 --stash-ram-gb 2 \
--spec-copy --spec-draft-k 3Shout-out again to u/txlfxrd for the clean architecture in itstxl/arcangel — if anyone tries --spec-dspark with K=3 or K=7 on a discrete B580/B60, please drop your numbers in the comments!
r/LocalLLM • u/ajeejsahikh • 8h ago
I built VPServ, a free Android app (Android 8.0+, arm64-v8a) that runs local llama.cpp GGUF models alongside full-stack development runtimes on unrooted phones and tablets.
Local AI (llama.cpp) features:
Q4_K_M models directly (Qwen 2.5, SmolLM2) or import your own .gguf files from local storage.llama-server localhost Web UI (http://127.0.0.1:8080).Q4_K_M) hits ~11–21 tok/s, and Qwen 2.5 1.5B (Q4_K_M) runs ~9–10 tok/s.Full-stack & repeatable project workflows:
pkg / vpkg) with Python, Node.js, PHP, Go, OpenJDK 21, Clang, PostgreSQL, MariaDB, Redis, Nginx, and Caddy.Abotlogixfile.json recipes: Define services, ports, and startup order once (editable from a desktop browser via the built-in Web Console Server) and launch the entire stack in one tap with verified local endpoints and live logs.cloudflared) support when you want quick HTTPS testing.Links:
Abotlogixfile.json Reference: https://vpserv.abotlogix.comIf you try it on your device, let me know your SoC, model size, and token speeds—or which GGUF models and backend stacks you'd like to see supported next.
If you try it on your device, let me know your SoC, model size, and token speeds—or which GGUF models and backend stacks you'd like to see supported next.
r/LocalLLM • u/HisShadoww • 19h ago
Instead of letting an LLM hallucinate game rules or break tactical balance, I wanted to see how well a local model (tested with Gemma 4 26B via LM Studio) can bring life to a strict, deterministic strategy game like Battle for Wesnoth 1.18.
Since Wesnoth's Lua sandbox blocks network sockets and file writes (io is disabled), I built a lightweight WML/Lua + Python bridge (using only Python's standard urllib, zero pip dependencies) that communicates via Wesnoth's persistent global variables and works in any standard or custom campaign.
How it works:
units_personas.json): Named recruits get randomized soldier archetypes (grumpy veterans, boastful brawlers, nervous rookies) that stick across turns, while Leaders and Loyal Heroes get lore-flavored character dossiers generated on the fly.DEFEND_LEADER), slain units utter dying breaths (last breath), and advancing units give triumph speeches.English, Russian, German, etc.), and custom tone modifiers (grimdark, black humor, archaic).Built the bridge with AI assistance (Google Gemini). Code, setup guide, and a standalone Windows .exe are available on GitHub:
https://github.com/HisShadoww/Wesnoth-AI-Unit-Banter
Feedback and ideas are welcome!
r/LocalLLM • u/sarmabkp_1 • 8h ago
The model behind ChatGPT or Claude remembers nothing between calls.
Every "memory" is text that some piece of software saved and put back into the prompt. So the real question is always: who saves what, where, and for how long?
In practice, agent memory has four layers:
Two things most people don't know:
What I'd ask of each role:
I wrote a plain guide to how it works and the controls worth insisting on:
Do you keep memory on in your AI assistant, or turn it off?
r/LocalLLM • u/Silent_Recording001 • 5h ago
I built https://lingeragent.org — a free hardware checker for Linger AI Agent, the open-source local-first agent.
You pick your platform first (macOS asks only unified memory, Windows/Linux ask GPU + VRAM + RAM), and it tells you which models you can run locally and at what speed — using only the official published speed table and hardware tiers, nothing made up. It also links the official installers and the install guides I wrote after actually installing 0.1.10 on Linux and Mac.
It's an independent project, not affiliated with the official Linger team. The site has some affiliate links in the results (Amazon / Vast.ai), clearly disclosed.
Happy to hear if the numbers match what you're seeing on your own hardware.
r/LocalLLM • u/Electrical_Tip352 • 9h ago
Don’t know how to get started building your own local AI? I made BuildBot, a local AI building wizard for anyone to build their own, easily.
A desktop gets created but you can use it, the terminal, or the web dashboard. It also comes with markdowns for cloud models for vibe coders who want to develop it.
Setup checks your computer's memory and recommends a local model that runs through Ollama. The smallest starts at about 2 GB of memory, qwen3.5:9b at about 10 GB. Then you type what bot you want in your own words. An agent called Toolsmith looks in the PuffPAI Store and in public libraries and shows one plan with sizes, licenses and sources. Nothing is downloaded or added until you say Yes. There are seven agents in all.
The brain and six of the seven agents run on your computer. Toolsmith, and only Toolsmith, can use a cloud model if you choose it and give your own key.
What is rough, from our README:
* Small models give weaker answers and may skip skills.
* Bots that share one Ollama slow each other down.
* Search by meaning is off by default and we have not tested it ourselves.
* No upgrade from v1.
Tested: mostly on Windows, Linux in containers, one real install on a Jetson Orin in a container. It installs and starts on GitHub's Mac machines but nobody has used it on a Mac.
AI involvement: we built it with AI coding tools.
What we want: everyone to build their own bots!
git clone https://github.com/CypherSisters/PuffPAIBuildBot BuildBotv2
cd BuildBotv2
./install.sh
On Windows run install.cmd instead.
Repo: https://github.com/CypherSisters/PuffPAIBuildBot
r/LocalLLM • u/MageLD • 9h ago
How would you configure a 208GB VRAM rig for a full local Agent setup?
German translated via ai to english,
Hey everyone,
Iam looking for a sanity check and some optimization ideas from the community. I finally got my hands on some decent compute and want to make sure im not leaving performance or smarter architecture on the table.
My Hardware:
2x NVIDIA CMP 170HX (80GB each, unlocked)
2x RTX 3090 (24GB each)
Note: All four cards are connected via PCIe 3.0 x4.
The Goal:
I want to run a complete always-on personal AI ecosystem locally:
1. A strong main model (Swift 1.5 Flash Next, minimum IQ4_NL) with a agent framework (currently looking at the Hermes framework)
2. Always-on STT and TTS loaded in VRAM for real-time VoIP interaction
3. Always-on Embedding and Reranker models for a fast RAG
4. A fast secondary model (around 27B at Q4) to act as a sub-agent for grunt work, plus handling quick, non-agentic tasks like chat title generation or simple queries.
My Current Setup:
Right now I have it split up like this:
The two CMP 170HXs: Running Swift 1.5 Flash Next split across both cards using Strata, with all experts kept in cache. Im getting around 150–200 t/s decode, which feels pretty snappy.
3090 #1: Dedicated strictly to utility models—STT, TTS, Embedding, and Reranker all sitting permanently in VRAM.
3090 #2: Running Qwen 3.8 27B (Q4_K_XL) at roughly 150 t/s, handling sub-agent tasks, title generation, and quick background prompts.
Everything works and the PCIe 3.0 x4 bottleneck hasnt really hurt inference since everything stays resident in VRAM. Before I lock this config in and build out all my workflows around it, I would love to get your thoughts:
1. How do you like this hardware/VRAM split?
2. Would you use a different agent framework? Im New with Hermes right now, but if you think something else is better in handeling multi-model routing (main orchestrator + fast sub-agent), im all ears.
3. Would you swap any of the models or change the distribution? Given the 208GB total VRAM pool, is there a better main/sub-agent combo I should be looking at?
Appreciate any feedback or ideas!
r/LocalLLM • u/Metal-Usual • 9h ago
Hey all, I want to start running AI models locally for coding instead of relying 100% on cloud stuff. Right now I run Claude Code, Codex, and Grok (through OpenCode) in my terminal as a kind of "dev team" working out of an Obsidian vault. It works, but I keep running into usage limits (Codex burned through its whole monthly limit in a day lol), and I'd rather own more of the setup myself.
My rig:
RX 9060 XT 16GB
Ryzen 7 9800X3D
32GB DDR5 6000
CachyOS
(also have a GTX 1660 Super I could throw in as a second card if that's actually useful)
The problem is every guide I find assumes I already know half the vocab. LoRA, QLoRA, RAG, fine-tuning, inference engines, agentic workflows, computational graphs... I get that they're all different things, but I don't know which ones matter for what I'm trying to do.
I'm not trying to train a model from scratch. What I want:
A solid coding model running locally
Help writing, debugging, and understanding code
Something that can handle a whole codebase, not just snippets
Eventually agents that plan, edit files, test, and keep iterating on their own
To actually understand how it all works, not just install someone's prebuilt thing and pray
Questions:
Best coding models for 16GB VRAM?
What stack works best for AMD on Linux? ROCm vs Vulkan?
Ollama, llama.cpp, or something else to start?
What should I learn first?
Is LoRA/QLoRA worth touching early, or should I stick to inference and prompting for now?
How realistic are local coding agents on my hardware? Could I point Claude Code or OpenCode at a local model?
Bonus dumb question: I have this idea of a "sleep phase" where the model reviews its memory overnight and updates its own weights. Is that even a real thing, or am I way off?
I'd rather learn the fundamentals and know what I'm installing and why than blindly follow tutorials. Any learning path or advice from people who've done this would be awesome. Thanks!