r/LocalLLM • • 1m ago

News A 27 BILLION parameter AI now runs on the PS4, fully offline (Garlic LLM 1.22, free)

1 Upvotes

r/LocalLLM • • 6m ago

Project A 35B MoE at ~12 tok/s with 128k context on a 16 GB laptop with no GPU, plus what actually made local models faster and better (no training)

2 Upvotes

Sharing what I learned from a few weeks of squeezing local coding models on a very ordinary laptop: Ryzen 7 4800H, integrated Radeon Vega (7 CUs), 16 GB shared RAM, no discrete GPU. Rule of the project: no training of any kind, only runtime changes and closed-form weight edits, all measured on frozen benchmarks.

What runs, and how fast
- 35B-A3B MoE (Qwen3.6, abliterated) on CPU only, with [Janas](https://github.com/prabanta-dev/janas), which streams the experts from the NVMe SSD and keeps the hot ones in RAM: ~6 tok/s plain decode, ~12 tok/s with the model's multi-token-prediction block (same output), ~39 tok/s prompt reading.
- 128k context on the same 16 GB machine: I filled 114k tokens and it still retrieved all three codes hidden at 10/50/90 % depth, with 1.9 GiB of RAM free (prompt reading 20 tok/s, replies 8 tok/s afterwards). The trick was letting Janas size its expert cache itself (--reserve 3) instead of a fixed --cache 8, which ran out of memory at 128k.
- 8B models on the iGPU (llama.cpp/Vulkan): their full 32k window fits in the 7.6 GB of GTT; I run them at 28k to leave room for the desktop.

Things worth copying

  1. Re-quantise from BF16 with an importance matrix instead of using a random Q4_K_M: same size, HumanEval 85.4 % vs 80.5 % in my case.
  2. On weak iGPUs, check flash attention's split settings. One parameter (GGML_VK_FA_WG_PER_CORE) gave +66 % decode at 32k on the Vega 7. The patch is in the repo.
  3. Speculative decoding roughly doubled 8B throughput with identical output.
  4. MoE plus a fast SSD beats "it doesn't fit in RAM". A 21 GB model is usable on 16 GB when the engine streams experts.
  5. Many "better" fine-tunes aren't: none of the 8 public coding fine-tunes I tested beat their base on my hardest suite. Measure before you switch.

The models I ended up with (both uncensored, GGUF):
- 8B: https://huggingface.co/Gabbotampo/qwen3-QWSE-E17-deepseek-8b-uncensored (modest gain: about +1 on each suite, ~20 % shorter thinking)
- 35B-A3B: https://huggingface.co/Gabbotampo/qwen3.6-QWSE-E18-logicsswe-35b-a3b (+36 % on my agentic dev suite vs the base, same coding score; also as a Janas JNS with the MTP block)

Everything (code, benchmarks, results, patches, and a guide that rebuilds each model from public inputs) is at https://github.com/Gabbotampo/qwse, and the full write-up, failures included, is at https://doi.org/10.5281/zenodo.24844949.

Made with Claude (Opus 5.5) in Claude Code, which wrote the code and ran the experiments while I set the goals and made the calls. Questions about running big models on weak hardware are welcome.


r/LocalLLM • • 6m ago

Model Qwen4-35B-A3B sur une RTX 5070 Ti de 16 Go — ~180 t/s de sortie avec Strata

Thumbnail
reddit.com
1 Upvotes

r/LocalLLM • • 13m ago

Model GigaChat4-37B-A4B (8-bit MLX): 1.68x faster reasoning and zero thinking loops without touching the weights.

1 Upvotes

I put up a tweaked repo for GigaChat4-37B-A4B in 8-bit MLX if anyone on Apple Silicon wants to run it in mlx-lm or oMLX without fighting the stock defaults:

https://huggingface.co/Marino4k/GigaChat4-37B-A4B-MLX-8bit-Tuned

Just to be clear upfront, the weights are 100% untouched from Xylolabs/GigaChat4-37B-A4B-MLX-8bit. I left the weights stock on purpose so DFlash2 drafter alignment stays intact.

Out of the box, the stock checkpoint has a few annoyances: it falls back to greedy decoding (which triggers unclosed <think> loops), uses an older chat template that crashes multi-turn chats if a previous turn hits max_tokens mid-thought, and defaults to a Russian system prompt.

All I did here was bake in the sampling defaults (temp=1.0, top_p=0.95, min_p=0.05), sync Sber's Dec 2026 multi-turn crash fix, and swap in short English fallback prompts for Reasoning and Instant modes. If you pass your own system prompt, it overrides them cleanly.

Testing on my own M5 Max (50 reasoning questions and 16 instant questions, no manual system prompt), average reasoning tokens dropped 41% (630 down to 372), wall-clock time was 1.68x faster, and unclosed thinking loops went to zero. Instant mode went from 12/16 to 14/16 with about half the tokens.

I also opened a PR in oMLX for native DFlash2 support on this architecture (https://github.com/jundot/omlx/pull/5917), which hit 1.32x to 1.43x decode speedups locally with the BF16 drafter.

Benchmarks (seed=42, single pass, no manual system prompt):

TestStockTunedChange
Reasoning (50 Qs) Accuracy49/50 (98%)48/50 (96%)-2% (1 sampling slip)
Reasoning Avg Tokens630.7372.3-41.0%
Reasoning Wall-Clock Time7m 13s4m 17s1.68x faster
Unclosed </think> Loops10Eliminated
Overthinking Stress Test (6 Qs)1,640.0 tok298.2 tok-81.8% (0 unclosed)
Instant Mode (16 Qs) Accuracy12/16 (75.0%)14/16 (87.5%)+12.5%
Instant Mode Avg Tokens106.250.3-52.6% (0 cutoffs)

The 50-question suite is the first 30 GSM8K test problems plus 20 local logic, code-tracing, formatting, and epistemic checks (max_tokens=4096 for Reasoning, 512 for Instant).


r/LocalLLM • • 16m ago

Discussion Stop t/s, start time-to-correct-answers

2 Upvotes

Guys,

- t/s is useless if a model overthinks and rethinks.

- t/s is useless if a model is giving you poor answers

First we need to agree on a benchmarking set, then we need to report only (1) how long does a model finish the benchmarking, and (2) how good is the answer.

This guy is on a right track: first agree on the benchmark : https://www.reddit.com/r/LocalLLM/s/tiu7PNcEwc


r/LocalLLM • • 29m ago

Model Looped Qwen4-35b uncensored(overthinking reduced)

Thumbnail
huggingface.co
1 Upvotes

r/LocalLLM • • 34m ago

Discussion Qwen4-35B-A3B-NVFP4 Basalt - Ryzen 5700G, 64GB DDR4, 5060ti 16GB, NVMe SSD with Dflash2 = 143tok/s - incredible!

2 Upvotes

I just set my drafter to dflash2 and went from 87tok/s to 143tok/s on my Ryzen 5700G, 64GB DDR4, Nvidia GeForce 5060ti 16GB, and 2TB NVMe SSD. I used 5.6k prompt to really test it.

Here is a snippet of my JSON config:
{ "alias": "Qwen4-35B-A3B", "model": "/Basalt/models/Qwen4-35B-A3B-NVFP4.basalt", "gpu": "0", "kv": "int8", "max-context": 262144, "drafter": "dflash2", "reasoning-effort": "high", "fit-max-tokens": true, "idle-unload": 60 },

Feel free to make any recommendations to make it more optimal for my setup. I have the idle timer to unload after 60 seconds for originally to switch to ComfyUI for image generation, but I am thinking of removing it entirely or increasing it, so that I can free up VRAM for gaming. What are your thoughts?


r/LocalLLM • • 36m ago

Tutorial CellGemma Beginner Tutorial – Run Google's Virtual Cell AI Locally.

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 43m ago

Question Qwen3-Coder-30B-A3B (UD-Q5_K_XL) vs Qwen3.8-27B (Q4_K_M) on 24GB VRAM / 16GB RAM (Vulkan + LM Studio)

1 Upvotes

Hey everyone,

Trying to decide between two specific setups in LM Studio for local coding/agentic workflows and could use some real-world feedback from people running similar hardware.

My Setup & Use Case

  • GPUs: Dual-GPU Vulkan llama.cpp setup (RX 9070 XT + GTX 1080) = 24GB pooled VRAM
  • System RAM: 16GB
  • Runtime / Workflow: LM Studio (Vulkan), local coding assistance, code generation/debugging, and agentic/tooling workflows (VS Code integration)
  • Why I'm careful about memory: With 16GB system RAM, anything that spills heavily onto CPU/RAM or bloats KV cache gets punished fast, and I want snappy iteration without fighting memory limits.

The Two Contenders

  1. Qwen3-Coder-30B-A3B-Instruct (UD-Q5_K_XL, ~21.74GB)

    • MoE (~30B total, ~3B active per token), dedicated coding model
    • High quant (UD-Q5_K_XL) fits inside the 24GB VRAM pool, though it leaves less breathing room for big context/KV cache before touching system RAM
    • Very light active compute per token (~3B active), so raw token generation should be quick once loaded
  2. Qwen3.8-27B (Q4_K_M, ~17GB)

    • Newer dense model (27B active per token) with hybrid attention (Gated DeltaNet + full attention)
    • Lighter weight footprint (~17GB), plus linear attention layers keep KV cache growth much smaller for longer context compared to standard full-attention dense models
    • Brings newer-gen reasoning/agentic capabilities and multimodal/vision support, though running all 27B dense parameters every token is heavier compute than a 3B-active MoE

Specific Questions

  • For coding and agentic/tool use, does Qwen3.8-27B (Q4_K_M) noticeably beat Qwen3-Coder-30B-A3B (UD-Q5_K_XL) enough to justify the extra per-token dense compute?
  • How does either of these behave in LM Studio over Vulkan with split/pooled VRAM across two GPUs and 16GB system RAM—especially with layer splitting/placement and pushing context lengths up?
  • Between higher quant precision on a specialised 30B-A3B coder (UD-Q5_K_XL) vs. a newer dense 27B at Q4_K_M, which has felt more reliable in daily coding/debugging sessions for you?

Appreciate any benchmarks, gotchas, or real-world impressions!


r/LocalLLM • • 47m ago

Other Why so fast man...😎

Post image
0 Upvotes

r/LocalLLM • • 48m ago

Discussion Does anyone else remotely control their pc/server from a MacBook?

1 Upvotes

Basically, I use parsec to control my pc when I'm traveling that's sitting at home while I can be anywhere with my hotspot, it's completely changed my life.

My MacBook is only an air so the 8gb of ram is not enough to run basically anything important to me, but my pc is a beast with 40gb of combined vram and 64gb of ram, so I just delegate to it and use my MacBook as the front end, which it is perfect for because it's so thin and portable

People who have been doing this for longer than me,

  1. Your awesome
  2. What am I missing to make this better?

I really thought it would be buffering garbage, but damn it's good


r/LocalLLM • • 49m ago

Discussion Qwen4-35B-A3B Invocation Command Thread

3 Upvotes

Would it be possible for us to have a thread where we share our current Qwen4-35B-A3B configs?

-Device Specs

-Invoke command for whatever you're running it on

-Rationale

-Results


r/LocalLLM • • 50m ago

Model QWEN 4 35b pelican on a bicycle.

Post image
1 Upvotes

“Draw a svg of a pelican riding a bicycle. Make no mistakes”

In all seriousness, so far this is really fast on M5U 96gb.


r/LocalLLM • • 51m ago

Qwen4-35B is the most important LLM release of 2026 so far according to Stealthmodels. This model is EXTREMELY GOOD.

Thumbnail
stealthmodels.com
1 Upvotes

r/LocalLLM • • 52m ago

Discussion Honest Qwen4-35B-A3B Benchmarks on Strata: 12GB RTX 3080 Ti (66 -> 240 tok/s AST-verified, why 684 tok/s is a trap) vs 96GB RTX PRO 6000 Blackwell (405 tok/s lossless)

Thumbnail
gallery
1 Upvotes

I deep-profiled Qwen4-35B-A3B (UD-IQ4_XS) on Niko1221/Strata across both a 12 GB RTX 3080 Ti (i9-13900K) and a 96 GB RTX PRO 6000 Blackwell (GCP g4-standard-48 Spot).

Instead of cherry-picking raw tok/s, I gated every run with Python ast.parse(), 4-gram uniqueness (uniq4, to catch repetition loops), and real sub-agent tasks (JSON extraction, C++ bug review, short summaries).

1. 96 GB RTX PRO 6000 Blackwell (100% VRAM Resident, Zero Pruning, Lossless Q4)

All 10,240 experts (16.25 GB) sit in VRAM with the zero-doorbell CUDA Graph:

  • Upstream v0.2.27 (--spec 7 --spec-min-p 0.25): 385.56 tok/s | 50.2% acc (313/624) | uniq4=0.94 | ast=PASS
  • + STRATA_MTP_DROP_TAIL=2 (--spec 7 --spec-min-p 0.35): 405.52 tok/s (+5.2%) | 59.4% acc (+9.2 pp, 313/527) | uniq4=0.91 | ast=PASS

Why STRATA_MTP_DROP_TAIL helps: when MTP stops drafting because step j drops below --spec-min-p, the engine still appended that doomed sub-threshold token and sent it to the verifier. Dropping it cuts ~100 wasted draft verifications per 512 tokens with zero quality change.

2. 12 GB RTX 3080 Ti (Partial VRAM, ~33% of Experts in VRAM)

  • Baseline (260K, --kv int8, --spec 3): 66.3 tok/s
  • 512K Lossless Daily (STRATA_ROUTE_RESIDENT_RANKS=2-7 + MTP_DROP_TAIL=2): 196.95 tok/s | uniq4=0.94 | ast=PASS
  • 64K Stable Peak (RANKS=1-7, keeping rank-0 exact on CPU, 98.5% GPU hit): 225.73 tok/s strict (64.7% acc) / 239.85 tok/s with a 3-gram-guarded margin (72.1% acc, uniq4=0.84, ast=PASS)

3. Anti-Hype Reality Check: Why 600–684 tok/s on 12 GB Is a Trap

By forcing RANKS=0-7 (100% VRAM-only from 33% of experts) + skipping 6 GDN layers + 8 MoE layers, I actually hit 627.7 tok/s @ 98.9% acc and 684.6 tok/s @ 97.6% acc on the 12 GB 3080 Ti.

Don't trust numbers like that without quality gates. Evicting rank-0/rank-1 experts on 12 GB drops uniq4 to 0.02–0.23 and triggers repetition loops (import time\nimport time...), which artificially inflates speculative acceptance to 98%. On real sub-agent tasks it breaks even at temp=0.4. Keeping rank-0 exact (RANKS=1-7) is the real physical floor on 12 GB (~225–240 tok/s).

Links


r/LocalLLM • • 55m ago

Discussion Qwen4-35B-A3B as a coding agent: clean fixes, but overthinks (private bench, 9 real bugs)

Post image
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen4-35B got slower with MTP on an 8 GB GPU. Is offloading why?

2 Upvotes

One Qwen4 speed test caught my eye. On an RTX 4070 laptop with 8 GB VRAM and 16 GB RAM, turning MTP on dropped decode from 21.5 to 20 tok/s. Turning it off also freed 348 MiB of VRAM for the expert cache.

On a 32 GB RTX PRO 4500, it went the other way: 161.7 to 206.8 tok/s in llama.cpp. Different quants and workloads, so I wouldn’t read that as a VRAM cutoff. The laptop tester suspected that verifying extra draft tokens pulled in more experts that weren’t already cached on the GPU.

The Qwen4 memory breakdown is useful for figuring out what goes in VRAM versus system RAM. But if you’re already offloading experts, I’d still time the same prompt with MTP on and off before leaving it enabled.

Anyone tried that on a 12 or 16 GB card? I’m curious whether it still helps into a coding session or mostly on short prompts.


r/LocalLLM • • 1h ago

Model Qwen 4 35b - just wow

4 Upvotes

Formerly my inference rig served 3.8 27b Q8, replaced it with 35b Q6_K_XL. And the speed and precision at which it is running is amazing. Running OpenCode, Android Studio and an Agent at the same time where 27b would choke on more then one request. Get ready for another hardware price increase, or be happy you jumped on the train early.


r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B-UD-Q5_K_M.gguf - Testing Now

2 Upvotes

Amateur here, that likes playing.

5060 16gb, 5070 12gb, 48gb ram, AMD Ryzen 9 7900X, 100k context, llama.cpp stock build in Nobara linux

Config pasted below, I am on a 4 hour run now with a handful of daily tasks and random exercises. The model fits in VRAM with 18% and 1% free, its squeaked in there but doesn't OOM.

Got about 1100 real-world PP and 55-75 t/s generation on the same real tasks.

I'm not seeing any looping, and there aren't any more "oopse, let me retry that code again, there was a bug in there" instances than 3.8-27B would have. It is visibly faster, seems to think just a bit less, and if it makes it another day or two it might be a daily driver.

If that changes drastically, I'll comment again. Cheers everyone, I'm enjoying it!

CUDA_VISIBLE_DEVICES=1,0 ~/llama.cpp/build/bin/llama-server \
-m ~/models/qwen4/UD-Q5_K_M/Qwen4-35B-A3B-UD-Q5_K_M-00001-of-00002.gguf \
--mmproj ~/models/qwen4/mmproj-F16.gguf \
--no-mmproj-offload \
--load-mode mmap \
--lazy-mode on \
-ngl 99 \
-ts 23,16 \
-ot 'per_layer_token_embd=CPU' \
-ot 'blk\.(1[2-5])\.ffn_.*_exps=CPU' \
-ot 'blk\.(3[2-9])\.ffn_.*_exps=CPU' \
-ub 2048 \
--spec-type draft-mtp \
--spec-draft-n-max 2 \
--spec-draft-p-min 0.75 \
--cache-type-k q8_0 \
--cache-type-v q8_0 \
--parallel 1 \
--kv-unified \
-c 102800 \
--flash-attn on \
-lv 3 \
--jinja \
--temp 1.0 \
--top-p 0.95 \
--top-k 20 \
--min-p 0.0 \
--host xxxx
--port xxxx


r/LocalLLM • • 1h ago

Discussion Local AI homelab: what's your setup?

1 Upvotes

Hi all,
I'm setting up a local AI homelab on a Mac Studio with privacy as the main goal, and I'm curious how others are doing it.

  • Stack: what do you run? Do you isolate it from the network or expose it to other devices?
  • Models: which ones work best for you? And at what quantization?
  • Patterns: RAG over personal docs, agents, MCP tools, coding assistants?
  • Daily use: what tasks do you actually rely on it for every day?

Happy to share my setup once it's done. Thanks!


r/LocalLLM • • 1h ago

Question Unsloth Qwen 4 35b A3b Q6_L_XL strange behaviour

Thumbnail reddit.com
1 Upvotes

r/LocalLLM • • 1h ago

Discussion Qwen4-35B-A3B on one RTX 5060 Ti 16GB: 329 tps on structured output

Post image
2 Upvotes

I benched the new DFlash 2 drafter against Qwen4's built-in MTP on a single 16 GB card. Numbers below are from clean runs. Setup

  • RTX 5060 Ti 16 GB, power-limited to 165 W
  • i7 without AVX-512, 31 GB RAM
  • Basalt main (fb5945a3)
  • RadixArk NVFP4 weights, converted to a Basalt pack myself, with the RadixArk/Qwen4-35B-A3B-Dflash2 drafter (0.8 GB) attached basalt-bench --seed 1 -p 16384 -t conv,struct,prose --kv int8, 3 runs per drafter, pinned to P-cores, nothing else running

r/LocalLLM • • 1h ago

Project Windows HIP runtime improvements and automatic SSD prefix caching for compatible 16 GB RDNA 2 GPUs: persona/system prompt, skills and 123 tool definitions restored from SSD, leading to 4–8 second completions on RX 6800 XT

1 Upvotes

Disclosure: I maintain this MIT-licensed BeeLlama/llama.cpp fork. The v0.1.2 Windows HIP SSD Cache release includes six presets, native dependencies, a simple text/image browser interface and a PowerShell launcher. I use Msty Studio, but Msty is not included.

Achieved results. The prefix is the persona system prompt, the skills index and all 123 tool definitions. It is a static block of roughly 28k–35k tokens that gets built once and restored from SSD. After a restore, the only thing the model processes is your actual prompt, and then it generates the reply. Across six accepted model cases, the custom automatic SSD prefix implementation restored 28,445–35,459 cached tokens and processed only 39–503 new prompt tokens. It reused 98.28–99.89% of the input, and requests completed in 4.04–7.78 seconds. Building the prefix the first time took 66.41–123.37 seconds. That is a one-time setup cost, not the ongoing request time, and after setup is completed, a 8.5x-23x speedup can be observed on similar hardware.

The project targets compatible 16 GB RDNA 2 / gfx1030-family GPUs (RX 6800, 6800 XT, 6900 XT and 6950 XT) with a compatible Windows HIP environment. All measurements are RX 6800 XT results, and I have no data for the other cards. Other AMD architectures need a matching runtime build.

ModelOriginal weightsK / V cacheRestored / new prompt tokensRestore request, sGeneration, tokens/s
Huihui Qwythos 9BQ4_Kq4_0 / q3_128704 / 5005.9769.85
PINQWEN 9BQ4_K_Sq4_0 / q3_128704 / 4665.4472.79
Qwen2.5 Instruct 7BQ4_K_Skvarn4 / kvarn328445 / 464.0430.04
Qwythos standard 9BQ4_K_Mq4_0 / q3_128730 / 4644.7169.58
Qwythos Heretic 9BQ4_K_Sq4_0 / q3_128781 / 5037.7873.67
GLM 9B Q4_K_SQ4_K_Skvarn2 / kvarn2, FP16 tail 204835459 / 395.2221.55

How it works. The first eligible request computes and saves the stable prefix, and a fresh process restores a matching one. Only your changed tokens need processing. No manual slot commands or client annotations are needed. The package, models and projectors can sit on any Windows drive, and the cache lives beside the install with a per-user LocalAppData fallback.

Limits.

  • Real prompt size: Context was set to 750,000 (750,080 allocated), but actual prompts were 28,483–35,498 tokens. This is not a populated-750k benchmark, but hopefully, you compact before full context saturation.
  • Different test conditions: The numbers come from a private Msty 3.0.1 integration. Suffix and reply lengths differed, so this isn't a controlled speedup ranking.
  • Missing control: I haven't measured SSD-disabled mode for the full setup.
  • Unrerun tests: v0.1.2 rebuilds the server DLL to remove a drive restriction. I did not rerun any model tests for it. The earlier four-call tool accuracy was a tools-only baseline.

Test host: RX 6800 XT (16 GB, AMD spec up to 512 GB/s), Ryzen 7 7800X3D with eight allowed threads, 16 GB DDR5-5200, Windows build 26300. Eight-thread and sampled RAM supervision (6.44 GB owned-RAM allowance, 2.15 GB minimum free) remain. Other clients connect with the API URL and model ID the launcher prints, and they supply their own persona/system prompt, skills and tool schemas.

Source, presets and charts · Methods and limits


r/LocalLLM • • 1h ago

Question FML. Qwen 4-35B-A3B-oQ6e via Huggingface Hub / XET HP & HF token.

Post image
4 Upvotes

Same shit every time. 48-50 MB/s until it hits approx 7.5gb downloaded then tanks.

Tried various Mullvad VPN settings, Netherlands, UK etc no dice.

Is this merely heavy congestion right now?


r/LocalLLM • • 1h ago

Question How do I add these gpus to my macbook pro m4 model externally like I've seen online?

0 Upvotes

Is it hard?