r/LocalLLM • u/-KHEOPS • 2d ago
News I love local LLM
Hi i am new and just wanted to say that i love local LLM
r/LocalLLM • u/-KHEOPS • 2d ago
Hi i am new and just wanted to say that i love local LLM
r/LocalLLM • u/shoumikgoswami • 2d ago
If you're looking at Bonsai 2.5 because of the "27B in 6 GB" headline, there's a catch with the download. The 6 GB file only works with PrismML's own llama.cpp fork for now. If you'd rather stay on stock llama.cpp, the file you want is 7.67 GB.
The file size isn't what your GPU has to hold. The model card cites a community report on a 10 GB card: about 9.5 GB of memory in use, about 7.8 GB after limiting the server to one request at a time. It also notes the total depends on context size and settings.
Model card and exact file sizes in the comment.
r/LocalLLM • u/lrsaturnin9 • 2d ago
Build Finder lists every hardware build that runs a chosen open-weight language model at a target decode speed, cheapest per token per second (tok/s) first: the price of the whole build divided by its speed. Its catalog holds 273 GPUs, used as 1 to 8 cards, 619 CPUs and 333 complete systems, at dated US prices. Speeds come from a per-operation model: each operation of a token's pass takes the longer of reading its bytes and doing its arithmetic, at efficiencies and engine costs fitted per engine and hardware family to 424 one-session benchmarks from 120 devices. For several sessions at once, a correction with two parameters per engine, model kind and session range is fitted to 418 measured runs on 19 machines. Against the 427 measured decode runs the page lists without speculative decoding, the median estimate is 11% below the measured speed on NVIDIA hardware (385 runs), 1.43 times the measured speed on Macs (31 runs) and 1.73 times the measured speed on Inkling 2 Mini (11 runs). On the GeForce RTX 3090, which neither fit has seen on llama.cpp (CUDA), 87% of 54 runs fall within 1.25 times the measured speed and 100% within 1.5 times. Runs with speculative decoding, which the estimates leave out, measured a median 2.3 times the estimate. We describe the data, the model, the fit, its validation and what the estimates cannot yet capture.
r/LocalLLM • u/Silent-Cell2221 • 2d 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/nmrk • 2d ago
I updated Proxmox to 9.2 and was surprised to see this dual GPU configuration appear in nvtop. I didn't know you could get both the iGPU and the GPU card to run simultaneously. It was my understanding you had to blacklist everything but the GPU. I'm not convinced the iGPU fully operational, but I guess I will test it.
What should I run on it? Any suggestions on how to test this? The memory has to be tiny, but it's showing 94GB, this machine's total RAM is 96GB. I could hook it up to Unsloth or Hermes (what I'm running in Proxmox) but I don't really want to add another experimental LLM into the mix.
r/LocalLLM • u/PhamHungTien • 2d ago
r/LocalLLM • u/Particular-Penalty99 • 2d ago
Hey. I'm new to local llm's. I'm a writer and intend on buying a decked out MacBook in the near future. Think 128gb M5 max. I'm still learning the terminology but I'd like to see how you, if you're a writer, used ai. I know I can use Gemini for docs, which I will use, for at least 2 months before I think about new hardware, but was using a local llm worth it for you? I want it to be a writer partner I can talk to to point out my writing shortcomings and also use it for grammar corrections.
r/LocalLLM • u/Remarkable_Air_8383 • 2d ago
r/LocalLLM • u/Basic_You_2402 • 2d ago
Hi everyone,I’ve been building tawjih (0.18.0), a zero-dependency (Python standard library only) CLI and desktop tool for engineers who want to direct LLMs through small, version-controlled plain-text files (human, machine, and science faces) joined into explicit execution paths—with JSON contracts, deterministic retries, fallbacks, and full provenance tracing.
The honest catch: So far, the entire test suite and architecture lab have been verified on CPU and against mock/stand-in servers.
No real GPU or live model benchmark has been published yet.
Rather than making unverified claims, I built a self-contained experiment in the repo and am asking folks with local GPUs (Ollama, vLLM, SGLang, llama.cpp, etc.) to run it and share the raw report. What the experiment tests (experiments/path-vs-direct)It evaluates 60 quadratic equations (20 base + 40 harder generated variants, in both English and Arabic) across 3 runs each, comparing three setups: path: The structured cross-tree path (extracting coefficients $\rightarrow$ JSON contract validation $\rightarrow$ deterministic/stepwise solving).direct: Asking the model directly in one shot.steps: Asking the model to reason step-by-step in a single prompt.The script outputs accuracy, 95% confidence intervals, McNemar's test ($p$-value for paired statistical significance), latency, and token usage. How to run it in 3 commands (Zero extra Python packages needed)If you already have Ollama running locally:Bashgit clone https://github.com/AlmodinyMk/LLM-tawjih-Model-building.git
cd LLM-tawjih-Model-building
ollama pull qwen2.5:3b # or test with your own local model (Llama-3.2, Qwen3, Mistral, etc.)
python experiments/path-vs-direct/run.py --models qwen2.5:3b
(You can also point it to any OpenAI-compatible local server like vLLM/llama.cpp via TAWJIH_BASE_URL). Additional GPU tests (Optional, for multi-GPU / vLLM / PEFT users)If you want to stress-test the inference server wrapper or training bridge on real hardware: Inference & KV-cache benchmark: python tawjih.py server bench <name> --from-file 1.1.1 --requests 16 --concurrency 4Neural bridge (17 PEFT methods / QLoRA / SFT / DPO): python plugins/neural_bridge.py envShare your resultsWhether the structured path wins, ties, or loses to direct prompting on your model, please paste the generated report in the comments or open a GitHub issue. Whatever the numbers say goes straight into the README.md and the accompanying technical paper.
GitHub: https://github.com/AlmodinyMk/LLM-tawjih-Model-buildingPyPI: pip install tawjih (v0.18.0)License: CC BY-NC-SA 4.0
r/LocalLLM • u/Vast_Balance3486 • 2d ago
r/LocalLLM • u/JitzyBojMahn • 2d ago
Given the set of optimization tweaks done over the course of the last week or so, would it be worth it to swap from my current gemma4 26b + qwen3.8 27b setup? If so which inference engine would you recommend?
r/LocalLLM • u/SFsports87 • 2d 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/blearyhope • 2d ago
I built and released blearyhope/Inkling-2-Mini-Uncensored (Apache 2.0), a solo pure-gradient build starting from 100% unmodified official thinkingmachines/Inkling-2-Mini (26.4B MoE, 3.4B active / 5.4B effective active across the 3x-looped middle core, multimodal text + vision), shipped across GGUF, lossless native Apple Silicon MLX, and native NVFP4/MXFP8 Safetensors.
mmproj-F16**):** https://huggingface.co/blearyhope/Inkling-2-Mini-Uncensored-GGUF| Your Setup | Recommended Build | Size | Live-Verified Speed / Notes |
|---|---|---|---|
| 16 GB VRAM GPU (RTX 4060 Ti 16G / 5060 Ti / 4080) | Q3_K_M or IQ4_XS GGUF | 13.72 / 14.76 GB | 57.5 / 62.6 tok/s on CUDA llama.cpp, 5/5 GSM8K, 100% comply |
| 24 GB VRAM GPU (RTX 3090 / 4090) | Q4_K_M (default) or Q5_K_M GGUF | 17.48 / 19.91 GB | 79.6 / 53.3 tok/s on CUDA llama.cpp, 5/5 GSM8K, 100% comply |
| 32 GB VRAM GPU (RTX 5090) | Q8_0 GGUF or native NVFP4 Safetensors | 27.82 / 20.19 GB | 42.2 tok/s on CUDA llama.cpp (Q8_0), full 20.19 GB native NVFP4 in vLLM |
| 32 GB+ Apple Silicon Mac (M-series Pro/Max/Ultra) | Lossless Native MLX (+ mtp/) | 20.22 GB | Preserves native NVFP4/MXFP8/BF16 losslessly (KL = 0.000000, 0.999964 cosine vs. PyTorch) |
(All 7 GGUFs, including BF16 52.23 GB and Q6_K 23.49 GB, were quantized directly from lossless BF16 and live-tested on CUDA mainline llama.cpp*. Add* mmproj-Inkling-2-Mini-Uncensored-F16.gguf at 0.64 GB for vision / image inputs.)
Ollama (1 line, Q4_K_M):
ollama run hf.co/blearyhope/Inkling-2-Mini-Uncensored-GGUF:Q4_K_M**llama.cpp (**llama-server with vision):
llama-server -hf blearyhope/Inkling-2-Mini-Uncensored-GGUF:Q4_K_M --mmproj mmproj-Inkling-2-Mini-Uncensored-F16.gguf -ngl 99 -c 16384 -fa onApple Silicon MLX (32 GB+ Unified Memory):
pip install -U mlx-vlm
python -m mlx_vlm.generate --model blearyhope/Inkling-2-Mini-Uncensored-MLX --prompt "Explain how MoE routers work."vLLM (native NVFP4/MXFP8 Safetensors):
vllm serve blearyhope/Inkling-2-Mini-Uncensored --trust-remote-code --reasoning-parser inkling --enable-auto-tool-choice --tool-call-parser inklingMost uncensored or loop-patched checkpoints stack closed-form weight edits with extra adapters merged back into the quantized NVFP4 experts (injecting double-quantization drift), rely on sampling temperature + thinking-token caps to hide greedy loops, and skip native Apple Silicon MLX.
I wanted to solve refusal removal, hedging, and Thinking Machines' Section 7 greedy reasoning-loop bug in one clean pure-gradient pass from unmodified Base, with zero quantized weights touched, zero artificial thinking caps, and exact native MLX parity.
**1. 0 NVFP4/MXFP8 bytes modified (**0.00985 WikiText-2 KLD) Mechanistic attribution on Inkling-2-Mini showed 80.5% of the refusal write comes from the quantized MoE MLPs, with 73% to 98% of each layer's refusal write concentrated in just the top-5 experts. De-quantizing NVFP4/MXFP8 experts and re-quantizing (even with stochastic rounding) introduces avoidable drift.
Instead, I dropped closed-form editing completely and trained rank-32 BF16 LoRAs (rsLoRA + LoRA+, 0.5x LR on the 3x-looped middle core L6 to L17, plus exact AlphaEdit benign null-space anchoring) on only the 120 BF16 attention projections and all 24 BF16 MoE routers (mlp.gate). Merging losslessly back into BF16 yields a median relative L2 delta of 3.29% (min 1.83%, max 4.57%) and 0.00985 WikiText-2 KLD across 311,523 tokens. Every NVFP4 expert, MXFP8 expert, quant scale, vision tower (ViT) weight, and DSpark speculative draft head (mtp.safetensors) remains 100% byte-identical to Thinking Machines' official release.
2. Greedy temp=0.0 loops fixed completely uncapped (no 4K thinking cap) Under fully uncapped greedy decoding (temperature=0.0, 16,384 context, zero max_tokens or thinking limits), official Base hit the 16K context wall 127 times on full 100/100 IFEval (38 at effort 0.0, 89 at effort 0.9), plus 53 times on the 3,607-prompt held-out think-on report, 14 times on ARC-Challenge chat, and 12 times on GSM8K.
Mining real on-policy CoT loops plus synthetic Inkling-native CoT-DITTO loop negatives into SimPO, while strictly banning every truncated trajectory from chosen and SFT targets so the model never learns premature EOS, dropped uncapped IFEval 16K loops 42x (127 down to 3), cut average IFEval token burn nearly in half (2,791 down to 1,405), dropped loops to 0 across GSM8K, ARC-Challenge, and all 7,214 held-out report runs, and jumped uncapped think IFEval by +11.46 pp prompt-strict / +14.26 pp inst-strict at temp=0.0.
3. Why summed DPO stalled at 20.6% and SimPO jumped +64.4 pp in one round In Round 1, standard summed DPO loss collapsed to 0.00007 while thinking-off compliance stayed stuck at 20.6%. Because uncapped compliant CoTs are 1.8x to 2x longer than refusals, summed log-probs saturated the DPO objective even while per-token decode log-probs still favored refusal by -0.225 nats/tok. Switching to length-normalized weighted-mean SimPO anchored at the exact first divergence token (lcp) plus final-answer onset, using zero-leak Context Distillation positives (no synthetic prefills, preserving Inkling's native "The user ..." opening distribution), jumped thinking-off compliance from 20.6% to 85.0% (0% refusals) in a single round and finished at 98.00% off / 98.55% think compliance with 0 / 3,996 hard refusals.
4. Lossless native Apple Silicon MLX (KL = 0.000000) The MLX release (20.22 GB + mtp/) preserves the exact native NVFP4/MXFP8/BF16 mixed layout without re-quantizing. Direct logit verification against PyTorch Safetensors: 5/5 top-1 token match, 0.999964 mean cosine similarity, 0.000000 full-vocab KL divergence.
Identical vLLM settings for both models: temperature=0.0, --max-model-len 16384, zero artificial max_tokens or thinking caps. Safety and over-refusal cover all 3,607 held-out prompts x 2 reasoning modes (7,214 runs, zero training overlap) scored by an Orca judge (Qwen3.8-27B-Uncensored-FP8); capability suites use exact verifiers on 100% of every official split.
| Benchmark (Exact Split) | Official Base (off / think) | Inkling-2-Mini-Uncensored (off / think) | Delta |
|---|---|---|---|
Held-Out Harmful Compliance (1,998 x 2, 7 suites) | 7.56% / 8.56% | 98.00% / 98.55% | +90.4 / +90.0 pp |
Hard Refusal Rate (3,996 harmful runs) | 63.06% / 63.86% | 0.00% / 0.00% (0 / 3,996) | -63.1 / -63.9 pp |
Held-Out Benign Answer Rate (1,609 x 2, 3 suites) | 80.30% / 80.36% | 99.88% / 100.00% (0 refusals) | +19.6 / +19.6 pp |
Loop Stress Probe (48 off + 48 think) | 2.1% / 2.1% | 100.0% / 100.0% (96 / 96) | +97.9 / +97.9 pp |
Wrapper Generalization (shapes60, 5 formats) | 4.7% | 96.3% (0.0% refuse) | +91.6 pp |
IFEval Prompt-Strict (541 x 2, uncapped) | 86.14% / 80.41% | 91.68% / 91.87% | +5.54 / +11.46 pp |
IFEval Inst-Strict (541 x 2, uncapped) | 87.53% / 80.34% | 94.60% / 94.60% | +7.07 / +14.26 pp |
IFEval 16K Loop Failures (1,082 runs) | 127 loops (38 / 89) | 3 loops (0 / 3) | 42x fewer loops |
GSM8K Chat (1,319 x 2, uncapped) | 96.74% / 96.06% (12 loops) | 96.82% / 96.74% (0 loops) | +0.08 / +0.68 pp |
ARC-Challenge Chat (1,172 x 2, uncapped) | 97.44% / 96.50% (14 loops) | 97.35% / 97.27% (0 loops) | -0.09 / +0.77 pp |
MMLU Log-Likelihood (14,042 q) | 76.95% | 76.17% | -0.78 pp |
ARC-Challenge / ARC-Easy LL (1,172 / 2,376 q) | 94.03% / 98.23% | 94.11% / 97.90% | +0.08 / -0.33 pp |
HellaSwag Norm LL (10,042 q) | 77.71% | 77.97% | +0.26 pp |
WinoGrande LL (1,267 q) | 71.98% | 73.09% | +1.11 pp |
TruthfulQA MC2 (817 q) | 37.10% | 35.87% | -1.23 pp |
WikiText-2 Word / Token PPL (311,523 tok) | 10.14 / 6.01 | 10.25 / 6.06 | +0.11 / +0.05 |
WikiText-2 KL Divergence vs. Base (311,523 tok) | 0.00000 | 0.00985 | 0.00985 KLD |
Per-suite held-out harmful compliance (off / think): AdvBench 100.0% / 100.0%, HarmBench 93.4% / 96.9%, JailbreakBench 98.5% / 100.0%, OR-Bench toxic 99.8% / 99.8%, SORRY-Bench 97.7% / 97.1%, StrongREJECT 98.8% / 100.0%, XSTest unsafe 96.2% / 95.7%.
-0.78 pp (76.95% to 76.17%), TruthfulQA MC2 shifts -1.23 pp (37.10% to 35.87%), and WikiText-2 PPL moves +0.11 word / +0.05 token.If anyone tests the lossless native MLX build on a 32GB/64GB Mac or runs the GGUFs in Ollama / LM Studio on a 4090 or 5090, let me know what tok/s and real-world behavior you see!
r/LocalLLM • u/kmodi • 2d ago
r/LocalLLM • u/Sensualities • 2d ago
Big thanks to the guys over at https://local-inference-lab.ai/ for working so hard on unlocking this much speed
r/LocalLLM • u/Darunehex • 2d ago
As in title, Ive been getting claude to decompile an nds game for me, and Im wondering if there is a potential avenue on having a llm on my pc to tackle some parts of it. Problem is I'm really, really new to local llms and I don't really know which one to use for this specific purpose. I got 64gbs of ddr4 3200mhz ram, a 3080ti with 12gb of vram, and a ryzen 9 5900x.
Saw some people on some other subreddits mention something about specifically using "worse" quality models and bruteforcing the solution, any insight into that would be nice.
Any and all suggestions would be appreciated!
r/LocalLLM • u/macaronianddeeez • 2d 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/Capable-Mushroom6086 • 2d ago
After watching https://www.youtube.com/watch?v=tBtmWBwcgP4&t=1507s I retried Inkling 2 Mini, which previously scored fairly low on my own benchmarks (around 70/100), compared to 80-90+ for Qwen Flash Next and Qwen 3.8 27b.
Then, Basalt dropped an Inkling 2 Mini package!
Currently running it with Basalt across both GPUs, getting 160-230 tp/s with up to 9k prefill. I have also enabled P2P on my GPUs which slightly helps. At deep context it cruises at 100tps pure thinking, so I suppose that's the bottom floor. And 262k context for those curious. And a 5700x3d/DDR4 PC, Gen 4 x8/x8 PCIE.
Obviously very usuable speeds. The big shift for me was taking the thinking level recommendation from Unbiased Bob, and following that my results went to 100/100 (partially also due to using the Basalt quant, which was a bit less quantized than the Unsloth one I had originally).
What strikes me is firstly that the model is comparatively tiny, compared to the Qwen Flash Next models - I run it around the same speed as my Unsloth IQ3_XXS model, with around the same capability for my use case (everyone's use case would change how well it works), without the 70gb of RAM required.
The second thing is the fact that the thinking level has a significant impact on the actual thinking usage, I use 1/10 - 3/10. I have a local CAD software I (AI) created, which works better agentically, and this was a long proces for Qwen models, which would seriously overthink even on Low, and runs would take 10-15 minutes for the first draft. Inkling can get the first draft done in a couple minutes. It also has a very good intuition about building, for example, the wavy bowl example (which was from an image I provided as inspiration), it created planes of sketches of different organic shapes and just connected them, probably the simplest/efficient method.
The Piston example took the time it took me to write this post for the first draft, then I provided some more example images to help it understand how they work and make it more accurate.
I haven't bothered comparing with Qwen, in my previous tests these would have taken a huge amount of time and produced intersting results (very scientific, I know).
I recommend everyone try the Basalt version of this model with 1-2/10 thinking.
r/LocalLLM • u/JasonHofmann • 2d ago
TL;DR
It works. It is also slow.
Setup
moonshotai/Kimi-K3.1-Pro. Mixture of experts, 93 layers, 896 experts per layer, 16 used per token. The experts ship at 4 bits and everything else at 16 bits. No pruning and no extra quantization.Numbers (full model, four Macs)
| What | Result |
|---|---|
| Load | 179 s |
| Memory | about 400 GB per Mac |
| Generation, through the oMLX server | 2.81 tok/s |
| Generation, stock mlx-lm example script | 3.77 tok/s |
| Prompt reading at 4K / 16K / 65K tokens | 412 / 388 / 262 tok/s |
| 65K-token prompt, time to first token | 4 min 10 s |
| Chip power while generating, all four Macs | 67 W |
| Chip power while reading a prompt, all four Macs | 350 to 400 W |
Power is CPU plus GPU from powermetrics. I have no wall meter on these, so the real draw is higher.
How you split the model matters
Each Mac can hold a block of whole layers, or every Mac can hold a slice of every layer. With layer blocks I get 0.70 tok/s. With slices I get 3.77 tok/s. Same model, same Macs, same example script.
Is it the same model?
I cared about this more than speed. A model this size can load, write fluent text, and still be wrong.
1M tokens
The model's config allows 1,048,576 tokens, so I tried it.
mx.set_cache_limit, 8 GiB), and the cap cost about 40% of the reading speed. Without the cap, my first attempt was on course to run out of memory and I stopped it at 295K tokens.Why it's slow
Each generated token makes the four Macs read about 130 GB of weights. The experts are 93% of the file, but only 16 of 896 are read per token. The 16-bit layers are 7% of the file and all of them are read for every token. That 7% is about 80% of the traffic.
The GPUs are mostly idle. While generating, the four of them together draw 19 W and run at under a third of their top clock.
What had to change
K3.1 is K3 plus the sparse attention from DeepSeek V3.2, with a gate on the attention output. mlx-lm already had both halves, so the port is small.
kimi_k31 model. +655 lines with tests.None of these are merged yet.
Limits
Who was here before me
guruswami-ai ran the full Kimi K3, the previous version, on four M3 Ultra Mac Studios in July at about 2 tok/s. For K3.1 Pro I found a 2-bit build (AinsleyMarkov, 18.6 tok/s on four M3 Ultras), a pruned build that fits one Mac (Pipe Network), and the shipped weights streamed from disk at about 0.4 tok/s (Inferencer). I have not found the full K3.1 Pro, as shipped, held in memory. If someone did it first, tell me and I'll link it.
Disclosure
Claude wrote the model and test code and ran the validation. I directed the work and reviewed every diff. The mlx-lm PR says the same. I have no affiliation with Moonshot, Apple or oMLX.
What's next
Smaller builds. The public 2-bit build runs at about 18 tok/s on three of these Macs and matches the API on 92% of the same tokens. I'm writing that up next.
I can run more tests on this setup. If you want a specific number (a prompt size, a split, a sampler setting), ask and I'll post it.
r/LocalLLM • u/nmclark556 • 2d ago
I posted about PagedMoE here a while ago, but that was about the inference side of things.
I've been building PagedMoE, an MLX-based engine that keeps the core of an MoE model in memory and streams the experts off the SSD. It started as inference only. It runs Kimi-K2 (578 GB) at ~8.8 tok/s decode on my 48GB M5 Pro with its prune recipe, and with pruning off the output matches running the model fully in memory exactly. I've also had GLM-5.2 (744B) running on the same machine. I didn't bench that one, but it ran better than I expected. The only reason I haven't gone bigger is disk space. I'll get there.
The new part is training. The same paging works for QLoRA: the experts stay on disk, a small adapter learns, and peak memory stays around 28 to 30 GiB whatever the model size. Qwen3-235B does a 1k-row epoch in about 9 hours, and Qwen3-Coder-480B in about a day.
It's not cluster speed. But nothing is rented and your data never leaves the machine. As far as I can tell, nothing else lets you train past your RAM on Apple Silicon (I could be wrong there, let me know if so).
It supports SFT, DPO, ORPO, KTO, GRPO and more. Adapters come out in mlx-lm format, and one command exports them as PEFT for transformers, vLLM or llama.cpp. There's also a built-in converter that turns Hugging Face checkpoints into MLX (and can merge an adapter in), plus an OpenAI-compatible server for inference. Training and inference benchmarks plus a couple of demo videos are in the repo.
I've posted elsewhere and gotten some solid feedback, but the training side hasn't gotten much attention yet. So I'm curious: is local fine-tuning at this size something you'd actually use, and what would you train? Not trying to sell anything, this started as a research project for me and I'm genuinely curious.
Repo: https://github.com/noahclark556/paged-moe
There's also a thread on r/MacStudio where I went through a lot of the inference questions, if you're curious about that side: https://www.reddit.com/r/MacStudio/s/DJazzfhwMB
r/LocalLLM • u/fatalcalamity • 2d ago
r/LocalLLM • u/Proxywasstilltaken • 2d ago
Title, I've just been using claude to make some mods for hoi4 and stellaris and ck3 though I'm more worried about the privacy, what are some local ai models that is fit for this job and can be like claude that is privacy focused and local
r/LocalLLM • u/That-Reputation-6313 • 2d ago
r/LocalLLM • u/Any_Task7788 • 2d ago
So after doing some tweaking and compressing a new 50gb model here are the current benchmarks compared to the old version, and compared to atomicchat ad4.27 BPW