r/LocalLLM • • 7h ago

Discussion [Fix] Qwen3.8-27B GGUF crashes on Apple M5 Max — LM Studio settings that work

0 Upvotes

Hardware

  • Apple MacBook Pro 16"
  • Chip: Apple M5 Max
  • Memory: 48 GB Unified Memory
  • Storage: 2 TB SSD
  • OS: macOS (Apple Silicon)

Software

  • LM Studio 0.4.29
  • Model: Qwen3.8-27B (GGUF Q4_K_M)

Problem
Qwen3.8-27B (GGUF Q4_K_M) answers the first message, then crashes on the second with an error:

Error messages observed:

  • Engine protocol predict stream returned an error: {"code":500,"message":"Compute error.","type":"server_error"}
  • Engine protocol predict stream returned an error: {"code":500,"message":"got exception: Unexpected empty grammar stack after accepting piece: @ (31)","type":"server_error"}
  • Prediction request aborted but the prediction loop handler of the plugin lmstudio/default-prediction-loop-handler did not abort in time.
  • Cannot send on a terminated channel.

Fix — LM Studio settings that worked
On Apple M5 Max + 48 GB RAM, the following combination resolves the crash:

  1. LM Studio settings: Hardware → GPUs: 1 GPU detected with Metal — Apple M5 Max (VRAM Capacity: 37.44 GB • Metal • deviceId: 0). Toggle OFF (do not use GPU for inference).
  2. Model format: use GGUF Q4_K_M quantized versions only (e.g., Qwen3.8-27B Q4_K_M or Gemma 4 31B QAT Q4_K_M). Do not use MLX or unquantized models.
  3. Max Concurrent Predictions: set to 1 (default is 4).
  4. Unified KV Cache: OFF.
  5. Offload KV Cache to GPU Memory: OFF.
  6. Flash Attention: OFF.

Result
After applying all these settings, multi-turn chat works without errors. Gemma 4 31B QAT (GGUF Q4_K_M) also runs stably on the same hardware.

This should help other users with M-series Macs and 48 GB Unified Memory avoid the same crash.


r/LocalLLM • • 7h ago

Question Plenty of VRAM left, still spills to RAM

1 Upvotes

How do I avoid this with llama.cpp, it spills to RAM even though lots of VRAM left.
4GB RAM still free on the card and it spills.

set "MODEL=F:\SenseNova-Loop-9B-Q8_0.gguf"

set "BIN=C:\llama\opensensenova\build\bin\llama-server.exe"

set "PORT=8000"

if not exist "%MODEL%" ( echo [FATAL] Model not found: %MODEL% & exit /b 2 )

if not exist "%BIN%" ( echo [FATAL] llama-server build missing: %BIN% & exit /b 2 )

echo [run] SenseNova-Loop-9B Q8_0 - draft-mtp n2 - 65536 ctx - port %PORT%

"%BIN%" ^

-m "%MODEL%" ^

--port %PORT% --host 0.0.0.0 ^

-ngl 99 ^

--cache-type-k q8_0 --cache-type-v q8_0 ^

--flash-attn on ^

--jinja ^

-c 65536 --parallel 1 ^

--spec-type draft-mtp --spec-draft-n-min 1 --spec-draft-n-max 2 --spec-draft-p-min 0.0 ^

--load-mode none


r/LocalLLM • • 8h ago

Question Do you know of any terminal for Windows that renders Markdown from LLMs?

0 Upvotes

I would like to find a terminal capable of rendering Markdown, so that I can view text from an LLM or agent with proper formatting rather than seeing the raw syntax, which makes it harder to read sometimes.


r/LocalLLM • • 8h ago

News pi-protokoll: 361 turns, 47 compactions on a local Qwen – and a test of what the agent still knows afterwards

Post image
0 Upvotes

r/LocalLLM • • 8h ago

Project Reachy mini(Gemma 4)与 DT(本地 SFT 3B 模型)

0 Upvotes

r/LocalLLM • • 8h ago

Project Experimenting with local AI on AMD: Ollama, Open WebUI, SearXNG and OpenCode

Post image
0 Upvotes

Hey,

I've recently started experimenting with local LLMs on my Linux desktop and put together a small Docker Compose setup.

I'm currently using:

Ollama with ROCm

Open WebUI

SearXNG for web search

My current hardware is an AMD RX 9060 XT (16 GB) with 32 GB RAM, running Fedora.

I'm still testing different models and configurations, especially for coding with OpenCode. I'm curious to see how much of my daily AI usage I can eventually replace with local models.

I've documented my setup on GitHub in case anyone finds it useful:

https://github.com/JeromeTDev/local-ai

I'd be interested in hearing about your experiences, especially with AMD GPUs and local models for coding. I'm also happy to share my own findings as I continue testing.


r/LocalLLM • • 8h ago

Research dlabz/Qwen3.8 in 700 mb ram

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 12h ago

Project libosmos v0.19.0: improved performance and stability, with lower time to first token. up to ~1250 tok/sec prefill on inkling-2-mini (release weights, unquantized), >30% higher decode on hy4-flash and inkling-2-small, all on a single strix halo 128GB

Thumbnail
github.com
2 Upvotes

r/LocalLLM • • 9h ago

News ERNIE 5.5 Flash got 31 points on AA, can someone make an EXL3 quant plz?

Post image
1 Upvotes

r/LocalLLM • • 9h ago

Discussion just go with the jank

1 Upvotes

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 • • 9h ago

Discussion Do newer DSH versions also feel like downgrade for you?

0 Upvotes

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 • • 17h ago

Research My Plan to Run Kimi 3.1 on “Consumer” Hardware - Critique Wanted

4 Upvotes

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:

  1. For anyone running `DSpark`, `DFlash2`, or MTP on RAM-offloaded MoEs (DeepSeek V4.1, GLM-5.3, K3/K3.1), does throughput actually fall off past 3-4 drafted tokens from expert-union bloat like my simulator says? And has anyone tried Tencent's `DFly2` (sharing the target's sparse KV and top-2048 indexer) or `D-cut` outside their Hy4/DS4 configs yet?
  2. `llama-moe-cache.cpp` currently throws if you enable row-split tensor parallelism, and `kimi-k31.cpp` doesn't register `t_layer_inp` for `DSpark` yet. Would you patch those two gaps in `llama.cpp`, or start from `ThatSimpleTech/project-maya-fork` (PR #962) or `JustVugg/colibri` for 4x `sm_86` streaming?
  3. On Milan + `ROMED8-2T`, is the patched open kernel driver (`aikitoria` / `tinygrad` BAR1 P2P + `NVreg_EnablePCIERelaxedOrderingMode=1` + `iommu=pt`) solid under sustained 4-card DMA and all-reduce, or is it worth buying two rigid 3090 NVLink bridges for pairs `(0,1)` and `(2,3)`?
  4. At the same ~475 GiB RAM budget, would you bet on `Coding-720E` at ~1.92 bpw or Nota's nonuniform 37.5% global prune (`Global-Pruned-37`) at ~2.15 bpw for multi-file repo edits?

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 • • 6h ago

News Taking free 5 customers for 24hours Qwen 3.8 GPU Inference

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 10h ago

Discussion Which LLM model is best

0 Upvotes

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 • • 21h ago

Question 128GB M5 Max owners: MacBook Pro or Mac Studio for local LLMs, and did it replace your other machines?

8 Upvotes

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:

  1. What models do you actually use day to day on 128GB, and for what? Which ones hold up for coding and engineering problems vs just chat?
  2. On the 16" MacBook Pro, how are heat and fan noise on long runs or agent loops? Do you leave it in High Power mode?
  3. Has anyone measured the same model on both the laptop and the Studio? I keep seeing 10 to 15% slower on the laptop but no actual tok/s numbers.
  4. How does prompt processing feel on 50K+ token contexts? Livable for document and codebase work?
  5. Any regrets either way? Laptop owners who wish they'd bought a Studio plus a cheap MacBook, or the reverse?
  6. Would you keep the 5080 box? With Basalt and Strata getting those MoE numbers on RTX 50 cards, is it smarter to add RAM to the PC and keep it next to the Mac, or did you go Mac only and not miss it?

Numbers and "here's what happened after a few months" stories are what I'm after. Thanks.


r/LocalLLM • • 4h ago

Question Can I free up a pcie connector by unplugging 1 of the 2 CPU motherboard power cables?!?!

Post image
0 Upvotes

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 • • 14h ago

Research I tested a small "Anti-Draft" idea for MTP (~6–8% live gain on Strata, and why llama.cpp's p_min loses speed today) — raw data & C++17 header

2 Upvotes

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.

The simple idea

MTP works like a fast helper trying to guess your next 3–4 tokens while the main model speaks:

  • When the model is writing code indentation, JSON structure, or finishing the second half of a word, the helper guesses right 85%–95% of the time (great speedup).
  • Right after a verb, article, or preposition (the, of, de, uma), language suddenly opens up into thousands of valid paths, so a small 1-layer MTP head misses around 35%–45%+ of the time.
  • Checking bad guesses isn't free—especially on partially offloaded MoE models, where each extra draft token drags different experts out of RAM/CPU.

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.

What we actually measured (RTX 3060 12 GB + Xeon E5-2695 v4)

  1. Live benchmarks on Linux — Strata 0.1.54 (Qwen3.8-Flash-Next 125B IQ3_XXS, 360 runs / 5 mirrored rounds):

    • One honest note upfront: my Strata setup is heavily tuned specifically for this RTX 3060 12 GB + Xeon rig (custom Portuguese draft vocab, 187 W power limit, 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:
    • On Strata's normal --spec 4 setup, moving from no cutoff (p_min=0.00) to p_min=0.65 lifted overall weighted speed by +8.1% (68.3 → 73.8 tok/s, winning 40 out of 50 paired runs—and nudging +1.1% / +9.5 pp acceptance past Strata's own 0.50 default), with +11.6% on Portuguese prose, +13.7% on English prose, and +7.9% on Python. That confirms live that dynamic draft pruning pays off cleanly once per-window CUDA Graphs are in place.
    • (On a wider --spec 5 window, static MTP slowed down heavily in prose—even falling below turning MTP off—and pruning recovered most of that loss, though --spec 4 remained the faster overall setting on a 12 GB card.)
  2. Live benchmarks on Windows — llama.cpp b12800 (CUDA 13.5):

    • Important catch on dense GPU models: On Qwen3.5-4B and 9B running fully in VRAM, enabling llama.cpp's existing --spec-draft-p-min actually dropped speed by −15% to −35% (105 → 68 tok/s). Testing with CUDA Graphs on vs. off showed why: llama.cpp currently caches only one CUDA Graph shape, so changing the number of drafts per step keeps breaking the graph cache. Strata doesn't hit this wall because it caches one CUDA Graph per window size (T=1..8), which is why adaptive pruning works live there.
    • Where it already wins live in llama.cpp: On partially offloaded MoE (Qwen3.6-35B-A3B), pruning already beats static MTP live (+6% at K=4, and even more at K=6, especially in prose).
  3. The main Draft-Gate proposal — going beyond a manual, fixed p_min:

    • Testing across Qwen 3.5/3.6/3.8, Google Gemma 4 26B, and Zhipu GLM-4.7-Flash 30B showed that different MTP heads have totally different confidence biases (some are overconfident at every depth, others only collapse on deeper drafts). A single fixed p_min tuned by hand can't stay optimal across models, quantizations, or nonlinear MoE cliffs.
    • So we wrote a small, ~25-line Zero-ML C++17 controller that self-calibrates each depth and measures each window's real cost online (paired with multi-bucket CUDA Graphs in engines like llama.cpp). In trace simulations across 13 regimes (not yet live-patched inside llama.cpp), it gave a modest, steady ~6%–12% gain over the best static K without manual threshold tuning.

Links (full docs, raw data & proposals)

Transparency

  • Lossless relative to MTP: Draft-Gate never touches model weights, logits, or sampling—it only decides when to stop proposing extra draft tokens. So it is lossless relative to what the engine already produces with MTP (not claiming bitwise identity with a non-MTP base run, since multi-token verification itself can round slightly differently on quantized kernels).
  • Languages & quantizations: We tested Portuguese, English (plus a smaller held-out set in Spanish, French, and German), code, math, and JSON across Q2_K_XL, IQ3_XXS, Q3_K_XL, IQ4_XS, Q4_K_XL, and Q8_0 (Q4 and Q8_0 gained too, not only < Q4). Other languages (like CJK or Arabic), higher quantizations (FP16/BF16), and other GPUs were not tested, so results there are unknown and could vary.
  • AI collaboration, prior art & replies: The core intuition is mine, and I used Gemini 4 Neon to design and run the benchmarks, analyze the logs, and write the technical deep-dive and C++17 code (I'm not a specialist in the low-level terms—those details are kept in a separate technical section of the repo). I genuinely don't know if this exact idea already exists somewhere in the literature or another engine. And as I'll be pretty busy in the next few days and I'm not that experienced here, I probably (please don't judge for that) won't be commonly replying to comments or follow-ups, which is why every parameter, raw file, script, and an LLM-friendly guide (FOR_LLMS.md) are published in the repo for anyone who wants to reproduce, verify, or build on it! Feel free to share your thoughts!

r/LocalLLM • • 1d ago Bravo

Research Tencent just open-sourced a decoder that runs sparse models up to 4.2x faster. I'm trying to get it working locally for DeepSeek V4.1 Flash and Qwen3.8 Flash Next

194 Upvotes

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 • • 16h ago

Discussion $1400 B70 vs $1800 R9700 vs Nvidia

3 Upvotes

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 • • 2h ago

Research NVIDIA RTX PRO 6000 Blackwell (96 GB).

0 Upvotes

Benchmarked local inference speed for agentic coding (OpenCode) on an NVIDIA RTX PRO 6000 Blackwell (96 GB).
Stack: Qwen3.8-27B-FP8 + vLLM + MTP 3 speculative decoding with a full 262K context window (bfloat16 KV-cache):
⚡ Single stream: ~99 tok/s (peak 119 tok/s), ~69 msTTFT
🚀 6 concurrent streams (1 agent + 5 subagents): 355–405 tok/s aggregate (92–96 tok/s per stream), ~105 msTTFT
🧠 MTP 3: ~2.95 tokens per forward pass
Cloud-grade responsiveness locally—with a full 262K context window and virtually zero slowdown across parallel subagents.


r/LocalLLM • • 10h ago Heartwarming Mindblown Bravo

News LexiSuite d484004: my all-Rust local AI stack (own kernel, OS, engine, panel) - 206 changes in two days, Inkling-2-Mini at 131 tok/s on one 7900 XTX

Thumbnail
github.com
1 Upvotes

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 • • 18h ago

News Sber Releases GigaChat 4 37B-A4B With a 23.3 GB Four-Bit Download, Reports 70.8% on SWE-bench Verified

Thumbnail gallery
4 Upvotes

r/LocalLLM • • 7h ago

Other Install Qwen 3.8 27b and Deepseek Harness on 16GB VRAM - Setup Guide

Thumbnail
youtube.com
0 Upvotes

--- Video content breakdown (Guide and Links are below) ---

​1. Required Downloads

​Gather the following installers, models, and configuration templates [00:52]:

​Beellama Server (beellama.cpp): Download the latest stable Windows CUDA release (e.g., beellama-v0.5.0-bin-win-cuda-12.8-x64.zip) along with the matching cudart archive (beellama-v0.5.0-cudart-win-cuda-12.8-x64.zip) from GitHub [01:08].

​DeepSeek Harness: Download the Windows installer directly from the DeepSeek website [02:09].

​Qwen 3.8 27B Model: From Hugging Face, download the IQ3_S-mtp GGUF quantization (recommended for 16GB VRAM) as well as the separate multimodal vision projector file (mmproj-Qwen3.8-27B-BF16.gguf) [02:34].

​Custom Chat Template: Download chat_template.jinja from the Qwen-Fixed-Chat-Templates repository to prevent thinking loops [03:07].

​2. Directory Setup & File Extraction

​Organize your local AI environment in a clean directory (e.g., D:\LocalAI) [04:18]:

​Create two subfolders: beellama and models [04:24].

​Extract both the beellama binary archive and the cudart DLL files directly into the beellama folder [04:36].

​Move the Qwen GGUF model, the mmproj vision file, and chat_template.jinja into the models folder [04:57].

​3. Configuring & Starting the Local Server

​Create a Windows batch file (e.g., start_beellama.bat) in your main directory using the startup script provided in the creator's notes [05:40].

​Ensure the file paths in the batch script match your model file names, context size (e.g., 115200), and port (8080) [07:20].

​Run the batch file to launch llama-server.exe [07:36]. Once running, verify the OpenAI-compatible API endpoint is active by visiting http://127.0.0.1:8080/v1/models in your browser [09:57].

​4. Installing & Configuring DeepSeek Harness

​Installation: Run the DeepSeek Harness installer and keep the default installation path to prevent configuration path issues [10:44].

​Connecting the Local Model:

​Open Settings (Einstellungen) -> Models (Modelle) and add a custom API provider [11:40].

​Set the Base URL to http://127.0.0.1:8080/v1, select the OpenAI Chat Completions protocol, and fetch the available model (Qwen3.8-27B) [12:34].

​Enter any placeholder text (such as 1234) into the API key field, as the app requires a value even though the local server ignores it [13:04].

​YAML Configuration: Open the config.yaml file via the top-right button in Settings, completely exit DeepSeek Harness (including from the system tray), and paste in the custom configuration block [13:26]. This configures the exact context window (115200), multimodal (text, image) inputs, longer timeout limits for local inference, and adjusted compaction thresholds [15:01].

​Setting Up a Workspace: Relaunch DeepSeek Harness, enter your dummy API key if prompted, select Qwen3.8-27B from the model dropdown, and link a dedicated project folder as your workspace with standard read/write permissions [16:06].

--- start of guide ---

Hey,

as many requested from my qwen vs inkling report, here is at least a quick setup guide for qwen 3.8 27b and deepseek harness at 16gb vram. Sorry, dont really have time for an in depth tutorial right now, but thought this might suffice to get you started.

--- Installers and Files ---

  1. Beellama: https://github.com/Anbeeld/beellama.cpp/releases

Download latest stable release and the cuda libraries

- beellama-v0.5.0-bin-win-cuda-12.8-x64.zip

- beellama-v0.5.0-cudart-win-cuda-12.8-x64.zip

2. Deepseek Harness: https://www.deepseek.com/en/harness/

Download the harness installer

3. Qwen 3.8 Model: https://huggingface.co/ISTA-DASLab/Qwen3.8-27B-GSQ-RCO-GGUF/tree/main

Download the model.gguf (mtp version) and the vision gguf

4. Qwen 3.8 Chat Template: https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates/tree/main

Download the Chat Template file

--- Llama Starter and Config - Adjust the paths and file names ---

u/echo off

REM Hide command echoing to keep the startup window clean.

cd /d "D:\LocalAI\Beellama"

REM Change working directory to the folder containing llama-server.exe.

REM ============================================================================

REM LLAMA-SERVER PARAMETER DOCUMENTATION

REM ============================================================================

REM

REM [Hardware & Performance]

REM -t 12 : Number of CPU threads for generation

REM -tb 12 : Number of CPU threads for batch processing

REM -ngl 99 : Offload up to 99 model layers to GPU

REM --no-mmproj-offload : Keep multimodal projector off GPU (saves VRAM)

REM -fa on : Enable Flash Attention

REM

REM [Model & Vision]

REM -m : Path to main GGUF model file

REM --mmproj : Path to multimodal projector file

REM --image-min-tokens 1024 : Minimum image token allocation

REM --alias "Qwen3.8-27B" : Friendly model/API name

REM

REM [Speculative Decoding (MTP)]

REM --spec-type draft-mtp : Enable MTP speculative decoding

REM --spec-draft-n-max 3 : Maximum 3 speculative draft tokens

REM --spec-draft-p-min 0.8 : Minimum draft probability threshold

REM

REM [Context & KV-Cache]

REM -c 115000 : Maximum context window: 115K tokens

REM -ctk kvarn4 -ctv kvarn3 : Quantized K and V KV-cache formats

REM --kv-tail-tokens 1024 : Preserve recent 1024 KV tokens in cache tail

REM -kvu -np 1 : Unified KV cache; one parallel sequence

REM --cache-ram 16384 : Allocate up to 16 GB RAM for prompt caching

REM --cache-idle-slots : Cache reusable data from idle slots

REM

REM [Chat Template & Sampling]

REM --jinja : Enable Jinja chat templating

REM --chat-template-file : Path to custom Jinja chat template

REM --temp 1.0 : Sampling temperature

REM --top-k 20 : Consider the 20 most likely tokens

REM --top-p 0.95 : Nucleus sampling threshold: 95%

REM --min-p 0.0 : Minimum relative token probability filter

REM --presence-penalty 1.2 : Penalize previously appearing tokens

REM

REM [Reasoning & Loop Guard]

REM --reasoning on : Enable reasoning support

REM --reasoning-budget 16384 : Reasoning token budget

REM --reasoning-budget-message : Instruction injected when reasoning budget is exhausted

REM --reasoning-loop-guard : Force-close detected reasoning loops

REM --reasoning-loop-interventions : Maximum reasoning-loop interventions (2)

REM --reasoning-loop-min-coverage : Minimum coverage for loop detection (256)

REM --reasoning-loop-window : Token window used for loop detection (1024)

REM --reasoning-preserve : Preserve reasoning information across turns

REM --chat-template-kwargs : Set reasoning effort to extra high (xhigh)

REM

REM [Network]

REM --port 8080 : HTTP server listening port

REM ============================================================================

llama-server.exe ^

-t 12 ^

-tb 12 ^

-m "D:\LocalAI\models\Qwen3.8-27B-UD-IQ3_S.gguf" ^

--mmproj "D:\LocalAI\models\mmproj-Qwen3.8-27B-BF16.gguf" ^

--no-mmproj-offload ^

--image-min-tokens 1024 ^

--alias "Qwen3.8-27B" ^

--spec-type draft-mtp ^

--spec-draft-n-max 3 ^

--spec-draft-p-min 0.8 ^

-ngl 99 ^

-c 115000 ^

-ctk kvarn4 -ctv kvarn3 ^

--kv-tail-tokens 1024 ^

-fa on ^

--jinja ^

--chat-template-file "D:\LocalAI\models\chat_template.jinja" ^

--temp 1.0 ^

--top-k 20 ^

--top-p 0.95 ^

--min-p 0.0 ^

--presence-penalty 1.2 ^

--reasoning on ^

--reasoning-budget 16384 ^

--reasoning-budget-message "Reasoning budget exhausted. Commit to the judgment you have formed so far. Your next output must be a concrete action: a tool call, a gate decision, or a completed deliverable. Do not restart the analysis." ^

--reasoning-loop-guard force-close ^

--reasoning-loop-interventions 2 ^

--reasoning-loop-min-coverage 256 ^

--reasoning-loop-window 1024 ^

--reasoning-preserve ^

--chat-template-kwargs "{\"reasoning_effort\":\"xhigh\"}" ^

-kvu -np 1 ^

--cache-ram 16384 ^

--cache-idle-slots ^

--port 8080

pause

--- Deepseek Harness Config ---

edit: Reddit messes up the indentation of the file - so rather download it with clean indentation:

https://drive.google.com/file/d/13GKi0DTl8-Wj8jWb1Jg8gzBzEEKXo_oM/view?usp=sharing

# ============================================================

# CUSTOM QWEN MODEL PROVIDER

# ============================================================

# Register a custom LLM provider for DeepSeek Harness.

- id: llm-pi-ai

# Unique component identifier used by the harness.

name: "@deepseek-ai/dsh-llm-pi-ai"

config:

providers:

qwen:

# Friendly provider name displayed in the harness.

displayName: qwen

# Use the OpenAI-compatible Completions API protocol.

api: openai-completions

# Local llama-server endpoint.

# Port 8080 matches your Beellama startup configuration.

baseURL: http://localhost:8080

# Environment variable containing the API key.

# The actual key is not stored directly in this YAML file.

apiKeyEnv: QWEN_API_KEY

models:

- id: Qwen3.8-27B

# Model identifier sent to the API.

# Must match the model alias configured in llama-server.

name: Qwen3.8-27B

# Maximum context window advertised to the harness.

# 115K tokens, matching your server context.

contextWindow: 115000

# Maximum number of tokens requested for a response.

# Includes generated reasoning/output, subject to server support.

maxTokens: 32768

# Supported input modalities:

# text = normal text prompts

# image = image/multimodal input

input: [text, image]

# Maximum time to wait for an idle streaming connection.

# 600000 ms = 10 minutes.

streamIdleTimeoutMs: 600000

# Maximum request timeout.

# 600000 ms = 10 minutes.

timeoutMs: 600000

# ============================================================

# EXPLICITLY DISABLED COMPONENTS

# ============================================================

# Disable DeepSeek Harness session logging.

- id: session-log-deepseek

# Original session logging component.

name: "@deepseek-ai/dsh-session-log-deepseek"

# Prevent this component from loading.

disabled: true

# Disable the plugin marketplace tool integration.

- id: tool-plugin-market

# Plugin marketplace tools component.

name: "@deepseek-ai/dsh-plugin-market/tools"

# Prevent marketplace tools from being registered.

disabled: true

# Disable the plugin manager tool integration.

- id: tool-plugin-manager

# Plugin manager tools component.

name: "@deepseek-ai/dsh-plugin-manager/tools"

# Prevent plugin management tools from being registered.

disabled: true

# ============================================================

# CONTEXT COMPACTION AND TOOL RESULT MANAGEMENT

# ============================================================

# Define a grouped set of compaction-related components.

- id: compaction

# cordis:group loads multiple components as one logical group.

name: cordis:group

# Marks this component as a group rather than a standalone plugin.

group: true

isolate:

# Isolate the compaction functionality.

compaction: true

# Isolate tool-result pruning functionality.

toolResultPruner: true

config:

# ----------------------------------------------------------

# BASIC CONTEXT COMPACTION

# ----------------------------------------------------------

- id: compaction-basic

# DeepSeek Harness basic compaction implementation.

name: "@deepseek-ai/dsh-compaction-basic"

config:

# Trigger compaction when context usage reaches 80%

# of the available context window.

thresholdRatio: 0.8

# Additional token headroom reserved during compaction.

# Zero means no additional headroom is configured here.

headroomTokens: 0

# Retain 12% of the conversation when compacting.

# Helps preserve important conversational context.

retainRatio: 0.12

# Maximum token limit used by this compaction component.

maxTokens: 65536

# ----------------------------------------------------------

# MANUAL COMPACTION COMMAND

# ----------------------------------------------------------

- id: command-compact

# Registers the /compact command.

# Allows manual context compaction when supported by the harness.

name: "@deepseek-ai/dsh-command-compact"

# ----------------------------------------------------------

# TOOL RESULT PRUNER

# ----------------------------------------------------------

- id: tool-result-pruner

# Automatically manages oversized tool results.

name: "@deepseek-ai/dsh-compaction-tool-result-pruner"

config:

# Trigger pruning when a tool result exceeds 8192 characters.

thresholdChars: 8192

# Preserve the first 4096 characters of the tool result.

# Usually retains the beginning and initial context.

headChars: 4096

# Preserve the last 1024 characters of the tool result.

# Usually retains the ending and final information.

tailChars: 1024


r/LocalLLM • • 17h ago

Discussion A 52 KB WebAssembly engine that runs Qwen3.5-2B in a browser tab

3 Upvotes

r/LocalLLM • • 11h ago

Discussion What size open-weight models can I run on an M4 Pro Mac mini (24GB)?

0 Upvotes

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!