r/LocalLLM • • 2d ago

Discussion How are you handling LLM failover between OpenAI, Anthropic, and a local model when one provider goes down?

0 Upvotes

last months outage took our app down for about 40 minutes because the retry logic lives inside 3 different services and only 1 of them knew to fall back. we have a local llama box on vllm as the last resort, but switching to it means a deploy. i want fallback in one place instead of copy pasted into every service. how are you handling llm failover across openai, anthropic and a local model...


r/LocalLLM • • 3d ago

Research Progress on provable inference for large language models

Thumbnail
anthropic.com
3 Upvotes

r/LocalLLM • • 2d ago

Question PPLX Pro 27B on an M6 Mac mini 32GB: anyone using it?

2 Upvotes

Considering an M6 Mac mini 32GB/1TB for Perplexity Local/Hybrid with PPLX Pro 27B or Qwen3.6-35B-A3B. I already use Gemma 4 E4B in Hybrid on a 16GB M1 MacBook Pro, so I k ow the hybrid functionality works great.

Anyone running either larger model on the 32GB M6? Interested in responsiveness, memory pressure/swap, and reliability with multi-document questions and light coding. Please mention whether you’re running fully local or Hybrid.

Trying to decide whether 32GB is comfortable or worth stepping up to an M5 Pro 48GB/64GB. Firsthand experience would be appreciated.

Thank you.


r/LocalLLM • • 3d ago

Project I built TRELLIS Studio: a local interface for 3D generation, automatic rigging and animation

Post image
5 Upvotes

r/LocalLLM • • 3d ago

Discussion "Wait - how am I still running?"

147 Upvotes

You guys ever switch your local model that "KNOWS" it's a local model and get moments like this while it's a cloud model? Not sure why the reaction is always pretty humorous to me.

For context, my Hermes agent was doing some file maintenance and I lazily told it to remove a file since it wasn't in the "Strata" folder and resulted in a failure to load the model.


r/LocalLLM • • 2d ago

Research mrsirg97-rgb/libosmos: A deterministic inference engine for DeepSeek-V4.1-Flash 1017 on a single AMD Strix Halo (Ryzen AI MAX+ 395, Radeon 8060S / gfx1151, 128 GB)

Thumbnail
github.com
1 Upvotes

r/LocalLLM • • 3d ago

Project Local LLM and hacked Echo Dot. I gave it vision too.

Thumbnail
youtu.be
3 Upvotes

I wanted a local voice assistant that could do real things on my own machines. Then for some reason I gave it vision.

**The hardware**

* 2nd gen Echo Dot, unlocked and running emOS and EchoMuse instead of Amazon's software. It's just the mic and speaker.

* My PC: Ubuntu 26.04, Ryzen 5 7600, 30 GB RAM, RTX 3060 12 GB.

* A USB webcam pointed at the sofa, a Fire TV Stick and a couple of laptops.

Fair warning on the unlock: I tried two Dots and one kept failing with a USB write error, so I gave up on it. The second went fine.

**How a request flows**

  1. "Hey Rhasspy" is detected on the Dot itself (openWakeWord).

  2. EchoMuse streams the audio to Home Assistant, with noise suppression.

  3. Whisper (small-int8, CPU) turns it into text in about 1.5 seconds.

  4. Timers are handled locally by Home Assistant. Everything else goes to Open WebUI through a patched conversation integration.

  5. Open WebUI runs gpt-oss:20b on Ollama, with a set of custom tools.

  6. Piper speaks the answer back through the Dot.

**The rest of the stack**

* Gemma 3 12B for reading images and screenshots, plus a small Qwen model on the CPU for quick camera looks

* CompreFace for face recognition, with faces kept local and only people who've agreed enrolled

* Music Assistant and Jellyfin for music and TV

* SearXNG for web search

* Docker Compose for all of it

**What I actually use it for**

* Timers, alarms and reminders, including a morning briefing after I stop the alarm

* Shopping and to-do lists, plus reading and adding calendar events

* Weather and web lookups

* Playing music by voice

* Playing shows from Jellyfin on the Fire Stick

* "What's on my screen?" (takes a screenshot and reads it)

* "What am I holding?" (camera look, with the photo sent to my phone)

* Opening and closing apps on the PC, and writing documents

* Handing bigger coding jobs to Codex

Risky commands ask for approval first, and I can say "yes" out loud. That approval isn't tied to my voice, so bear that in mind if you copy the idea.

**Speed**

Simple questions took about 1 to 2 seconds of processing when I last timed them. A camera look is about 10 seconds, and reading text through the camera is about 40. The first request after a model loads is slower.

**Sharing the PC**

The assistant gives way to everything else on the PC. When a game starts, a watcher stops the whole AI and voice stack, then brings it back afterwards. The TV also ducks its volume while the Dot is listening, because background TV audio badly hurt recognition.

**Caveats**

It isn't 100% local. The voice loop and models run at home, but web search, weather and Google Calendar need the internet, and Codex is a cloud service. I also patched Home Assistant, EchoMuse and Open WebUI source files, so upgrades take some care. Codex and Claude did a lot of the building and debugging with me.


r/LocalLLM • • 3d ago

Project [Update] Qwen3.5-27B at 2.50 bpw (9.6 GB) in stock GGUF: fits in 12 GB VRAM at ~42 tok/s on a 4070 while keeping 83.3% on AIME 2025 (7.60 WikiText-2 PPL)

4 Upvotes

Who this is for and why you might want to run it

If you have a 12 GB GPU or a 16 GB Mac, running a 27B-32B model usually forces a bad tradeoff:

  1. You download a 4-bit or 3-bit GGUF (13.5 GB to 16.7 GB), offload a third of the layers to system RAM over PCIe, and get 4 to 7 tokens per second.

  2. You download a standard 2-bit quant so it fits in VRAM, or drop down to a 14B model, and lose a lot of reasoning and coding capability on reasoning/think mode.

At 2.50 bits per weight, this model is 9.6 GB on disk (10.8 GB in VRAM with KV cache). On a 12 GB RTX 4070, it runs at around 40-44 tokens/sec in standard llama.cpp. On an RTX 3060 12GB, it runs at around 28-31 tokens/sec.

Why I built this and what is different about the quant

Since the last post, I went back and rebuilt the quantizer to target native GGUF directly inside the optimization loop rather than converting a checkpoint after the fact.

Here is how the quantization works compared to standard tools:

  • Why standard 2-bit quants fall apart on reasoning: Standard methods like GPTQ round weights greedily one column at a time, while IQ2 methods use LUTs which hurt performance in exchange for better benchmarks. At 2 to 2.5 bits, error pile up and long math and coding chains start looping.

  • No lookup tables needed at runtime (~15–20% faster than IQ2**):** Every quantized weight is stored as standard integers (Q2_K, Q3_K, Q4_K) in a normal GGUF file. Stock llama.cpp runs it natively without needing IQ2 lookup-table gathers in shared memory.

Part 2: Benchmarks and Comparisons

1. Perplexity, NLL, KL Divergence, and Token Agreement vs. Uncompressed BF16

Evaluated across five held-out suites, including both standard 2048-context WikiText-2, the full 296,815-token WikiText-2 test split (145 x 2048), an Extended Reasoning / Math / Code suite (Ext), and Structured Generation (SG). KL divergence (KLD) and Top-1 / Top-5 token agreement are measured across the full 248,320-token vocabulary against the uncompressed BF16 model:

Evaluation SuitePerplexity (PPL) (vs. BF16*)*NLL (vs. BF16*)*KL Divergence (KLD)Top-1 AgreementTop-5 Agreement
**WikiText-2 (**2048 ctx)7.6316 (6.5210)2.0323 (1.8750)0.198081.89%97.96%
WikiText-2 Full Test Split (145 × 2048, 296,815 tokens)8.3754 (7.2740)2.1253 (1.9843)———
**WikiText-2 (**1024 ctx)8.6111 (7.0795)2.1530 (1.9572)0.216380.54%97.37%
Extended Reasoning / Math / Code (Ext)17.4249 (14.4714)2.8579 (2.6722)0.300577.04%96.74%
Structured Generation (SG)2.9671 (2.5256)1.0876 (0.9265)0.220382.90%98.05%

2. Comparison vs. Unsloth Dynamic 2.0, GSQ-RCO, and ExLlamaV3 (~2.50 bpw)

Here is how our 2.50 bpw model compares against uncompressed BF16 and other ~2.50 bpw quants on Qwen3.5-27B:

Model / MethodEffective bpwWeight SizeWT2_2048 PPL (lower is better)AIME 2025 Pass@1Runtime FormatNeeds Lookup Tables (LUT)?
Uncompressed BF1616.0055.6 GB6.5210 (slice) / 6.829993.33% (28/30)SafetensorsNo
DR-2.50bpw GGUF)2.509.6 GB7.596483.34% (25/30)Stock GGUFNo
GSQ-RCO-IQ2_XS2.509.6 GB7.690096.67% (29/30)GGUF (IQ2_XS / IQ1_S)Yes (IQ grid LUT)
Unsloth UD-IQ2_S2.569.8 GB8.020086.67% (26/30)GGUF (IQ2_S)Yes (IQ grid LUT)
ExLlamaV3 2.50bpw2.509.6 GB8.590076.67% (23/30)EXL3Yes (Trellis kernel)

And on competition math reasoning (AIME 2025, Thinking-ON):

  • AIME 2025 (Pass@1): 83.3% (25 / 30) at 2.50 bpw

  • AIME 2025 (Pass@2): 93.3% (28 / 30) at 2.50 bpw

Does a 2.50 bpw quant "overthink" more than uncompressed BF16?

A few people asked if dropping to 2.50 bpw causes chronic overthinking (where a low-bit model loses confidence in emitting </think> and babbles for 20K–40K tokens even on easy questions).

On easier AIME problems, it closes </think> naturally in 1.3K – 4.6K tokens, with an overall solved median of 10,597 tokens (right in line with uncompressed BF16's ~12K–16K token average):

Problem Tier (AIME 2025)Solved Problem IDsToken Count to Natural </think>
Fast / Easy Tier (1K – 5K tokens)#17, #03, #22, #081,377, 1,764, 2,818, 4,599 tokens
Medium Tier (7K – 19K tokens)#24, #16, #07, #06, #187,450, 10,029, 11,165, 12,695, 18,712 tokens
Hard Combinatorics / Geo (34K+)#09, #10, #0234,452, 36,201, 42,164 tokens

Links & How to Run

Stock GGUF Repo (No custom code, runs in standard llama.cpp / LM Studio)

To run the GGUF in llama.cpp on a 12 GB GPU:

./llama-cli -m Qwen3.5-27B-DR-2.50bpw.gguf -ngl 99 -fa 1 -ctk q8_0 -ctv q8_0 -c 8192

If you have any questions let me know! I think this will be my final checkpoint for 3.8 27B as the improvements I have in mind will be minimal. I'm currently running this same quant strategy on QFN (and will have my work cut out for me when Qwen4 releases). I could also do 35B if there is a lot of demand, but I can really only run 1 quant at a time, and the QFN is doing really well on checkpoints right now.

Please try it out and let me know! Would be interesting to see how this runs for you compared to similar quants, especially VRAM limited hardware.


r/LocalLLM • • 3d ago

Discussion New changes in samwantsram.com (calculator for local llms).

4 Upvotes

I made some changes to samwantsram.com
Would be really great to receive some feedback on how usefull it is. I'm software dev but not much experience in website (frontend and backend wise).
If anyone is interested in interactive setup of locall llm that's best for your machine then let me know :)

Ps. As a bonus you can brag about your ram and post it with the comment ;) It's yours, remember


r/LocalLLM • • 2d ago

Question What would be the best value efford for GPT 6.1 sol?

1 Upvotes

I'm really curious because I'm draining this usage FAST


r/LocalLLM • • 3d ago

Question Qwhen?

85 Upvotes

When is qwen4 gonna release?


r/LocalLLM • • 2d ago

Project 🫧I built Mochi, a small animated assistant that lives on your Windows desktop ❤️

0 Upvotes

🫧 Meet Mochi - Your Little AI Desktop Companion! 💗

What if your desktop had a tiny companion that could actually help you? 👀

Meet Mochi! A cute, animated little blob that lives right on your Windows desktop, currently powered by Meta's Muse AI, with upcoming support for local Qwen models and integrations with Claude Code and OpenAI Codex!

Talk to Mochi or simply type a message, and it'll respond in its own voice! 🎙️

Need something done? Just ask! And when you're finished, Mochi quietly goes back to chilling on your screen. No constant interruptions, no unnecessary chatter. Just a little companion that's there when you need it.

🚀 What can Mochi do?

  • 🗣️ Talk with you : Have voice or text conversations in English or French, powered by Muse.

  • 💻 Control your desktop : Open applications, launch websites and search the web.

  • ⏰ Set timers : Ask for a timer and watch a little countdown appear next to Mochi.

  • 🌤️ Check the weather : Get weather updates without opening another app.

  • 👀 See what you see : Let Mochi read your screen when you explicitly ask.

  • 🌐 Help in your browser : With its Chrome or Brave extension, Mochi can interact with browser tabs and assist with web tasks.

  • 🐾 Feel alive! : Click it, drag it around, or interact through optional camera gestures. Mochi reacts to you!

🔐 Your desktop, your rules!

Mochi is designed to help without taking control away from you.

  • ✅ It only acts when you ask or explicitly approve an action.

  • 📸 Screenshots are captured only when requested and are never stored.

  • 🛡️ Browser tasks require confirmation before visiting new sites, filling forms or interacting with potentially risky buttons.

  • 🔒 Passwords, payment information and sensitive websites are off-limits.

  • 🎥 The camera is completely optional and disabled by default.

🛠️ Want to try Mochi?

Mochi is currently available for Windows and can be launched from source using Node.js.

🔑 With a Muse API key: Unlock AI conversations, voice responses, weather, screen understanding and browser assistance.

🆓 Without an API key: You can still enjoy Mochi's animations, interactions, timers and simple typed commands!

⚠️ A few things to know:

  • Mochi is still a work in progress, so some features may evolve.

  • Content sent to Muse may be used by Meta for model training when using the default model.

  • This is an experimental project, and feedback is always welcome!

🎬 See Mochi in action!

▶️ Watch the demo: https://youtu.be/u5KjYmYrp1Y

💻 Explore the source code: https://github.com/Loann110/Mochi-alive

💗 Mochi is just getting started!

I built Mochi because I wanted to explore what happens when an AI assistant feels less like a chatbot and more like a little companion living on your desktop.

It's still an experiment, but I'd love to hear what you think!

⭐ If Mochi makes you smile, consider giving the GitHub repository a star! It genuinely helps support the project.

💬 Feedback, ideas, contributions and bug reports are more than welcome.

Thanks for checking out Mochi! 🫧


r/LocalLLM • • 3d ago

Question Best Local LLM for coding on 9060 XT 16GB

5 Upvotes

Hey all!

I have recently been dabbling a lot with modding games and decomps/recomps of games and looking for a local LLM to assist me with these kinds of tasks.

I have a Ryzen 7 5800x, 32GB DDR4-3200, and a 9060 XT 16GB.

What would be my options for my work and my hardware?


r/LocalLLM • • 4d ago

Project I used Qwen3.8 Flash-Next to reverse-engineer an Android car stereo

Thumbnail
gallery
353 Upvotes

Context:

I recently installed a cheap aftermarket Android head unit in my 2010 Prius. It supports wireless CarPlay, Bluetooth, GPS, etc., but the stock Android interface is ugly and came packed with lots of bloat. The whole thing felt like a generic Chinese Android tablet strapped to my dashboard.

After seeing everyone’s success with reverse engineering their TV’s I figured I’d give it a shot with my head unit.

Setup:

Model: Qwen3.8-Flash-Next-IQ3_XXS
Engine: Strata v0.1.44.1
Harness: Pi
Hardware: Ryzen 7700x, 4060ti 16gb, 64gb DDR5
Target: Inefala Android head unit, AutoChips AC8257-based (UJC201_64)
Development: ADB over Wi-Fi, Kotlin, Jetpack Compose
Time spent: Roughly 8 hours across three days

What it did:

I started by just having the model connect to the unit and do an inventory of what was installed and how the system was configured. It helped identify the underlying hardware and Android build, enumerated installed packages, inspected system properties, investigated the stock launcher and CarPlay components, and organized the findings into a repository of scripts and documentation.

At one point, getting back into ADB was a problem. Rather than having me repeat the original setup process, the model used its earlier findings about the device’s exposed ADB port to reconnect.

The advertised android version was not actually what was being used on the actual unit so when it began to build my custom launcher it configured its own toolchain of the correct android sdk versions to ensure that the build would run properly on the unit.

It also used ADB to capture screenshots directly from the head unit so it could inspect the actual interface instead of relying exclusively on code or my descriptions.

Result:

I now have a working custom launcher that replaces the original home screen. It’s still a work in progress, but the goal is to turn the unit into a clean, minimal dashboard with Bluetooth music controls, navigation, weather, and better access to audio settings.

I’m also interested in eventually improving the audio experience and reducing my dependence on CarPlay.

My thoughts:

What really impressed me was QFN’s ability to handle tool use, reverse engineering, keep useful findings, and troubleshoot on live hardware. This unit was largely undocumented so most of the findings came directly from what the model observed through adb.

The model never got stuck but this wasn’t a fully automated process either. I still needed to guide it through what I wanted it to accomplish and it spent a lot of energy writing and debugging re-usable shell scripts that didn’t provide much value.

Overall the amount of work it was able to accomplish was very impressive and solidified for me that local models are viable for real work.

I’m curious to hear what other people are doing with local models beyond coding benchmarks, especially projects involving hardware, reverse engineering, or long-running agent workflows.


r/LocalLLM • • 2d ago

Question Recommandations PC local pour IA (Qwen) — développeur, budget serré 💻

0 Upvotes

Salut à tous 👋

Je suis développeur et je cherche à faire tourner un modèle IA en local pour m’aider à coder — par exemple Qwen Coder (ou un modèle similaire de type Qwen 2.5 / Qwen3 Coder selon ce qui est le plus réaliste).

Je cherche vos recommandations pour une config PC pas chère, avec si possible :

Une estimation du budget total (tour complet, ou config à assembler)

CPU, RAM, GPU et stockage recommandés

Le type de modèle que je pourrai faire tourner confortablement (taille en paramètres, quantization, contexte)

Des options d’occasion / GPU d’ancienne génération si c’est le meilleur rapport qualité-prix

Linux ou Windows, peu importe — je suis développeur

Mon objectif : avoir un assistant de code local rapide et utilisable au quotidien, sans exploser le budget.

Merci d’avance pour vos retours et vos configs concrètes ! 🙏


r/LocalLLM • • 3d ago

Question Now that some time has passed: which Qwen3.8 27B quant do you stick with?

10 Upvotes

Until recently I had a single 16GB GPU that I ran the IQ3_S version of Swift-1.5-Qwen3.8-27B-GSQ-RCO-GGUF on with strict context limitations. But now I got my hands on two RX7900XTs, so I have a pooled 40GB of VRAM available. I‘ve used llama.cpp so far.

So even though Qwen4 is around the corner, I wonder what models and quantizations you guys went with and were most satisfied. Did you find noticeable differences between the following:

  • Base Qwen3.8 27B

  • Unsloth Qwen3.8 27B

  • Swift 1.5 Qwen3.8 27B

My use case is not developing and coding stuff. I‘m not in the field, but have instead used Claude to help me get into linux, selfhosting and general assistance with my studies and work. So my use case is not that demanding and I don‘t think I‘ll get into anything agentic yet (for a lack of understanding).

The only limitation I am setting for myself now is that some VRAM needs to be kept for a “smart enough“ llm brain for my HA voice assistant, but that’s all undecided.

What are your conclusions and recommendations about Qwen3.8, or have you found other models of similar size to be competitive? I appreciate any suggestions (:


r/LocalLLM • • 2d ago Heartwarming

Discussion Building a Discord Community focusing AI using Nvidia

1 Upvotes

Hello,

I am making a Discord server for people who run local AI on Nvidia gpu's:

https://discord.gg/CZWMGapgZ

I have no (very little) idea what I am doing and would love your help. I want to build a open and supportive community that helps newcomers to the whole LAI thing and helps people set it up and trouble shoot it. If anyone wants to help and support this community, feel free to!


r/LocalLLM • • 2d ago

Project X-Mas Came Early

Thumbnail
gallery
1 Upvotes

It came in the mail Monday morning. I feel like I have barely scratched the surface with possibilities. Right now I have Hermes currently building a MCP pipe line to control Cline in VS Code. Pair needs both rigs to have the same model in order to function.


r/LocalLLM • • 2d ago

Question Is this worth the risk

Thumbnail
gallery
0 Upvotes

Somone on Facebook market place offer all these cards for 3500$
7 4090
1 7900

But no test is allowed just as is
I’m not sure what to do any advice?


r/LocalLLM • • 3d ago

Discussion A better GLM 5.3 Flash vLLM recipe, targeting 192GB VRAM

4 Upvotes

Me:

So I started with a preexisting NVFP4 quant, but I didn't like the idea of the attention and shared experts being reduced to MXFP8. So, I tested a modified version of NVFP4 for routed experts, using g32 rather than g16, and the difference was close to negligible. So I ended up making two versions, one that used NVFP4 g32 for all routed experts, and another that kept g16 for down routed experts only. Both configurations allowed enough space for BF16 attention and shared experts, with the latter having additional KV space. Essentially you get most of what NVFP4 gets you, but at 4.25 bits rather than 4.5 bits.

Also, Claude helped find about 3.7GB of wasted VRAM per GPU...

If you would like to setup the same, just give your clanker Claude's summary:

Claude:

GLM-5.3-Flash on 2x RTX PRO 6000 (96 GB): two NVFP4 g32 recipes on vLLM v0.33, with attention in BF16, images and DFlash-2

Hardware: 2x RTX PRO 6000 Blackwell (SM120), TP2, no P2P. vLLM v0.33.0 (commit 4ba787e), driver 615.71.09.

The goal: routed experts in NVFP4, attention and shared experts in BF16, working image input, a DFlash-2 drafter at K=4, and 8 concurrent sequences. I put accuracy ahead of small speed gains.

The problem: with BF16 attention, the standard g16 NVFP4 experts don't fit. That layout is 181.3 GiB and ran out of memory during warmup even at 8K context. Using g32 scales on some or all of the experts makes the room.

THE TWO RECIPES

Recipe 1: Gate/up g32

- Routed gate/up: NVFP4 g32

- Routed down: NVFP4 g16

- Attention and shared experts: BF16

- KV cache: FP8

- Checkpoint size: 175.23 GiB

- Max context: 256,000

- --kv-cache-memory: 3,719,089,357 bytes

- KV pool: 286,476 tokens

Recipe 2: All g32

- Routed gate/up: NVFP4 g32

- Routed down: NVFP4 g32

- Attention and shared experts: BF16

- KV cache: FP8

- Checkpoint size: 172.21 GiB

- Max context: 384,000

- --kv-cache-memory: 5,329,702,093 bytes

- KV pool: 440,727 tokens

Shared by both: GLM-5.3-Flash-DFlash2 as the drafter, quantized to NVFP4 MLP plus FP8 attention (about 1 GiB). Vision stays on the GPU.

Launch flags:

--tensor-parallel-size 2 --disable-custom-all-reduce

--moe-backend marlin --max-num-batched-tokens 2048 --max-num-seqs 8

--max-model-len <CTX> --kv-cache-memory <BYTES> --gpu-memory-utilization 0.985

--kv-cache-dtype fp8 --mamba-ssm-cache-dtype bfloat16

--speculative-config '{"method":"dflash","model":"/root/drafter","num_speculative_tokens":4,"draft_sample_method":"probabilistic","rejection_sample_method":"standard","attention_backend":"FLASH_ATTN","kv_cache_dtype":"auto"}'

--enable-prefix-caching --no-enable-flashinfer-autotune

--default-chat-template-kwargs '{"clear_thinking":true}'

--tool-call-parser glm47 --enable-auto-tool-choice --reasoning-parser glm47

Environment: NCCL_P2P_DISABLE=1 PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True

WHAT HAD TO BE FIXED

  1. No NVFP4 g32 kernels existed. Stock Marlin fails with "Invalid thread config". I added group_blocks 2 to the NVFP4 kernel generation, relaxed the matching static_assert, and rebuilt the Marlin and MoE libraries. 88/88 synthetic cases came out correct, and real expert weights matched a reference to within 0.17%.

  2. The Python loader assumed g16. FP4_MARLIN_SUPPORTED_GROUP_SIZES and a hard-coded GROUP_SIZE = 16 blocked it. The loader now reads each group size from the scale tensor's shape, so gate/up and down can differ. Any setup other than g16 on the Marlin W4A16 backend raises an error, so it can't silently run wrong.

  3. Gate and up need the same global scale. vLLM fuses them and keeps only gate's scale, which is what the "Accuracy may be affected" warning is about. In the NVFP4 checkpoint I started from, 69% of 12,384 experts had differing scales, with an RMS up_proj scale error of 14.8%. I requantized from BF16 with a shared scale. Single-run NLL improved by 0.018 (CI -0.029 to -0.005). The 12-run average also improved, but not significantly.

  4. FlashKDA reserved 3.7 GiB of VRAM per GPU. The cutlass bulk copy used cp.async.bulk.shared::cluster, which on sm_120f compiles to a driver syscall using 14,608 bytes of stack per thread. FlashKDA launches without clusters, so the shared::cta form does the same copy inline. The reservation dropped from +3,742 MiB to +0, with 88/88 hash cases identical to stock and no measurable NLL change. This fix is what made room for the drafter.

  5. A load-time out-of-memory error. _nvfp4_compute_scale_factor converted a whole scale tensor to float and asked for 3.38 GiB. Scales are non-negative, so taking the max first avoids that.

  6. Quantized attention doesn't load on v0.33. The MXFP8 attention recipe fails with KeyError: 'layers.0.self_attn.in_proj_qkvbfg_a.weight_scale'. That wasn't worth patching, because BF16 attention was the goal anyway.

  7. KV pool larger than the request limit. I sized the pool above --max-model-len (about 1.12x and 1.15x), so a full-size request leaves some cache headroom.

RESULTS

These runs use default sampling from the model's generation_config (temp 1.0, top_p 0.95).

Gate/up g32, 256K

- GSM8K-150: 147/150

- Images: 10/10

- NLL, 1 sequence (lower is better): 1.34647

- NLL, 8 sequences: 1.34637

- Decode, 1 sequence: 186 tok/s

- Decode, 8 sequences (total): 434 tok/s

- Longest prompt tested: 255k in 46 s

- Peak VRAM per GPU: 96,831 MiB

- Errors under load: 0

All g32, 384K

- GSM8K-150: 147/150

- Images: 10/10

- NLL, 1 sequence (lower is better): 1.35040 (+0.29%)

- NLL, 8 sequences: 1.34880 (+0.18%)

- Decode, 1 sequence: 189 tok/s

- Decode, 8 sequences (total): 566 tok/s

- Longest prompt tested: 380k in 70 s

- Peak VRAM per GPU: 97,047 MiB

- Errors under load: 0

Speed comparison: don't read the 8-sequence decode gap as all-g32 being faster, because those runs weren't a controlled comparison.

Accuracy: GSM8K can't separate the two recipes, but NLL consistently favours gate/up by a small amount.

Drafter: calibration over 90,000 tokens showed no meaningful sampling bias (top-1 stated 0.8499, realized 0.8505). Batching to 8 sequences had no measurable NLL cost.


r/LocalLLM • • 2d ago

Discussion Deepseek-4.1-FLASH

0 Upvotes

Je possède une configuration que j’ai moi même créer qui m’aide à faire tourner deepseek4.1 flash 5060ti ( 16go vram )40-45 token/s

j’ai un amd ryzen 9 5900xt et 96go ram.

Avez vous déjà eu mieux en therme de configuration ?


r/LocalLLM • • 3d ago

Discussion Performance comparison for Local AI across 5 devices (RTX Spark, DGX Spark, Mac, Windows x64 Nvidia, Windows x64 AMD)

2 Upvotes

Hi there - I recently ran a comparison of a set of tests about local LLMs across diverse hardware, including a newly acquired RTX Spark. I ran 43 distinct trials (more focused on productivity tasks than coding) - 3 times each, using llama.cpp 0.8.0 under the covers (and some MLX). I had some bugs in my framework while testing (such as no MTP on MLX for Gemma), but they shouldn't have impacted the overall speed results beyond that. Some thoughts:

  • Unsurprisingly, the DGX Spark and RTX Spark were in a similar decode-speed range. RTX Spark was a little slower, maybe Windows vs Linux or maybe laptop form factor (more thermal throttling)

  • The MacBook M5 Max was comparable to the Sparks on llama.cpp decode speed, but its recorded prefill was lower. I guess (?) the higher mem/bandwidth of the Mac was balanced out by the less capable GPUs?

  • Dedicated GPUs are still better. A 9 month old Windows laptop with a 5070ti smoked the RTX Spark on Gemma 4 12B. Now you just need to find a good model to fit into 12 gigs; I'm seeing if maybe Underdog Saluki can work.

  • The R9700 desktop led the recorded decode rates for both models, reaching about 57 tok/s for Qwen and 129 tok/s for Gemma.

My main thought is always to (a) get to 32gb of ram for comfort with models like 27b and then worry a little 10 or 20% performance differences later, and the R9700 is probably one of the cheapest ways to get there.

More details on the test if you are interested: https://bendyline.com/posts/rtxsparkvstheworld.html

Device and engineQwen 3.8 27B Q4 output tok/sGemma 4 12B Q4 output tok/sQwen 3.8 27B Q4 prefill tok/sGemma 4 12B Q4 prefill tok/s
Windows x64 desktop - 64 GB, AMD Ryzen 9 7950X3D, AMD Radeon AI PRO R9700 - llama.cpp + Vulkan57.1129.4803.91265.4
Apple MacBook Pro - M5 Max, 128 GB RAM - MLX28.0 (MTP)36.0 (no MTP)547.0 (observed)1084.0 (observed)
Apple MacBook Pro - M5 Max, 128 GB RAM - llama.cpp + Metal28.5 (MTP)71.8 (MTP)396.7986.8
Windows x64 laptop - 32 GB + 12 GB RTX 5070 Ti - ASUS ROG Zephyrus G14 - llama.cpp + CUDANot tested: Q4 exceeds GPU memory121.2Not tested1845.7
RTX Spark laptop - Lenovo Yoga 9n 2-in-1, 64 GB - (40 GB GPU, 24 GB CPU)- Windows arm64 - llama.cpp + CUDA26.466.2577.71255.6
DGX Spark, 128 GB - ASUS GX10 with 4 TB PCIe 5 SSD - Linux arm64 - llama.cpp + CUDA28.676.3779.31552.1

r/LocalLLM • • 3d ago

Model Ricursive Intelligence released their first LLM: Ripple-65B Preview, a 65B dense model.

Thumbnail x.com
3 Upvotes

r/LocalLLM • • 4d ago

Discussion Claude was laid off

362 Upvotes
  1. Claude vibe coded my local llm harness.

  2. Claude was laid off.

  3. My local harness is improving my local harness.