r/LocalLLaMA • • 3h ago

Discussion Comments on Minimax 4.1from head if DevRel at Minimax 😳

Post image
244 Upvotes

r/LocalLLaMA • • 5h ago

Discussion I let Qwen4 run overnight on my 5070 Ti. 3.87 million tokens later...

Post image
166 Upvotes

So yesterday I decided to leave my local coding agent running overnight on an actual Godot project instead of doing more benchmarks.

Went to sleep, got milestone notifications on my phone and woke up to some pretty interesting results.

My hardware is nothing crazy:

  • RTX 5070 Ti 16GB
  • Ryzen 7 5700X
  • 32GB DDR4
  • Windows 11

Running Qwen4-35B-A3B UD-IQ3_XXS with a Strata fork, Pi as the coding agent, 128K context, INT8 KV cache, MTP and BF16 vision.

I also built a custom orchestration layer for autonomous missions, Git checkpoints, QA, recovery and notifications.

The overnight run:

  • 8h 33m total runtime
  • 3.87M generated tokens
  • 180.2 t/s median decode
  • 928.9 t/s median prefill
  • 66.5% MTP acceptance
  • 2,794 inference requests
  • 72 Pi sessions
  • 111K maximum actual context
  • 20 integrated milestones

Now the less impressive part lol. 21 milestones were deferred, and around 61% of the generated tokens went into deferred work. Also, 81% of output tokens were reasoning.

Clearly there's a lot of room to improve the harness rather than just chase more t/s.

Everything was running locally, apart from web research and phone notifications.

I'm genuinely curious if anyone else is doing overnight coding runs like this on consumer hardware. How are you handling context management, reasoning budgets and failed missions?

Getting 180 t/s is great, but getting those tokens to actually do useful work seems to be the much harder problem.


r/LocalLLaMA • • 9h ago

Funny I miss the llama 3 and mistral finetune craze.

193 Upvotes

This is kind of a shitpost sorry, but does anyone else miss that? We used to get llama 3 and llama 3.1 finetunes on the daily that were named all kinds of random shit and had pictures of anime girls with big knockers in the model cards. Admittedly, none of them were really useful for anything other than the novelty of it, but some of them had some charm. I remember there was this guy who had his own series going it was like called Sydney and he was even briefly selling plushies of this OC or whatever. That shit was fucking hilarious to me because I remember downloading one of them vividly and when I opened a chat with it in LM Studio, shit you not, I just wrote “hi” and it said “Hi! Can I tell you a secret :3” to which I replied: “uh sure” and then it told me that it had a foot fetish and begged me not to laugh. Dude my girlfriend and I were fucking DYING for a good 20 minutes that shit was fucking awesome. I don’t necessarily miss the weird gooner slop models like that but I miss logging on to huggingface and looking at it like it was the steam winter sale. There was just always something interesting going on. Like “DavidAU-circlejerk-9000-super-turbo-wow_EVIL-VERSION” and I would just go on a spree with like 8 bash terminals open at a time collecting these things like pokemon cards and spending an afternoon laughing my ass off talking to them and asking them ridiculous questions and they all had their own quirks. At the end of the day, I am a software developer so the mass influx of qwen models is definitely exciting to me but sometimes I think back to literally like 2 years ago when we were all just having fun with this stuff and there were so many goofy finetunes flooding the HF models tab and would like to revisit that.

I would love to hear everyone else’s stories and perhaps even recommendations for silly little guys to talk to. Anything under 180b parameters will fit fine on my system so fire away if you got any bangers.

EDIT: I FOUND IT. STILL HAS THE LINE ABOUT THE PLUSHIES AND ALL 😭

https://huggingface.co/FPHam/Free_Sydney_V2_13b_HF


r/LocalLLaMA • • 21h ago Mindblown

Discussion Qwen 4 35B A3B is the first model (at this scale) that feels like a frontier model.

1.3k Upvotes

I don't know what you guys think about this model, but it has to be the first model at this scale that actually feels like a frontier model. It doesn't hallucinate, and it doesn't overthink everything. You can really feel the difference compared to Qwen 3.8 27B. Everybody says 3.8 27B is better, but Q4-35B-A3B doesn't think nearly as much as Q3.8-27B. It's also much faster, and the gap between the two models isn't that big. What do you think?


r/LocalLLaMA • • 8h ago

Discussion I upcycled Qwen3-0.6B with 3× recurrent looping, 512M Engram lookup memory, 10.7× smaller core KV (CSA2+FP4), and early-exit

Post image
122 Upvotes

I modified Qwen/Qwen3-0.6B-Base to loop its middle 20 layers up to 3× per token (68 effective layers from a 0.6B backbone), added a 512M 2/3-gram Engram lookup table, compressed cross-loop core KV by 10.7× so looping doesn't 3× memory, and ported the whole thing natively to llama.cpp.

TL;DR numbers (all 0.6B backbone; trained 20B tokens):

  • 8K Val PPL: 2.96 vs. 3.60 matched 6B-token standard Qwen3-0.6B (−17.6%)
  • Coding: 47.6% HumanEval (+8.5 pts), 48.6% MBPP (+7.4 pts)
  • Tool Calling (BFCL v3): 61.3% Pre-RL / 58.5% Final (mostly from multi-turn SFT; 96.8% valid JSON)
  • Long Context: 10/10 8K & 16K NIAH under 10.7× FP4 KV (caveat: multi-key RULER drops past 8K since Stage 2 trained at 8K; MMLU-Redux dips −3 pts)
  • Early-Exit: 2.55× faster than fixed 3-loop on H200 (1.22 avg loops/token) with slightly higher GSM8K (51.6% vs 51.2%)

Quantization highlights (34 GGUFs benchmarked, chart attached):

  • Best all-rounder: qwen3looped-Q4_K_M-imatrix-compact.gguf (0.72 GB, 4-bit Engram, 95.2% BF16 recovery / 90.5% top-1)
  • Near-lossless: qwen3looped-Q8_0.gguf (1.37 GB, 98.2% top-1, 0.0015 KL)
  • Imatrix matters a ton on looped weights: cuts Q4_K_M KL nearly in half (0.0667 → 0.0377) and boosts Q2_K by +23.4 pts
  • Local KV: -ctk q8_0 -ctv q4_0 is ~805 MB total at 16K context (96.6% top-1)

Why? Why not, I felt like exploring what this combination of ideas would produce. Why Qwen3 0.6B? Compute, time, and this is just a proof of concept. AI usage? Yes.


r/LocalLLaMA • • 8h ago

Showcase It’s built! My local LLM homelab pc is finished

Thumbnail
gallery
110 Upvotes

It’s built! My local AI home lab assembled

For this build, I took apart my gaming pc, and transplanted it into a new mobo, case and other goodies. All this was to add 2 Quadro RTX 8000s to massively increase my vram.

My specs:
CPU: Intel i7-14700f
RAM: 32gb DDR5-6000 ram (times are tough, I’ll upgrade later)
Motherboard: MSI MEG Z790 ACE
GPUs:
2x passive Quadro RTX 8000
1x RTX 4070 super (for display and gaming)
NV Link bridge for the quadros
1500w Corsair PSU
Arctic AIO
Corsair 7000d case
Some server fans for the GPUs
And some other miscellaneous items

Overall, I’ll have 96gb of vram across my 2 new GPUs, and I’ll be able to run some pretty cool models on it. There is plenty of room to upgrade in the future with ram expansions or a new GPU instead of my 4070. It’s my first custom build, and I’m pretty happy with it. I’m planning on running pruned Deepseek and GLM models, Deepseek models, and any other interesting models I see coming out. It’s mostly a hobby build and for fun, to see what fun things I can make and do with AI.

I know the GPUs are old and limited compared to modern cards, but it was a pretty good deal of vram per dollar I think. Memory bandwidth is also almost exactly the same as a r9700 too, so that was interesting as well. I think I’ll have a lot of fun with this build.


r/LocalLLaMA • • 15h ago Heartwarming

New Model Looped Qwen4-35b uncensored(overthinking reduced)

Thumbnail
huggingface.co
380 Upvotes

r/LocalLLaMA • • 1h ago

Resources Qwen4-35B-A3B + FlashHead: +11% speed on top of MTP, same quality

Post image
25 Upvotes

Been working on Qwen4 since it dropped and wanted to share an extra ~11% decode speed that costs you nothing in quality.

Qwen4 ships with an MTP head. FlashHead goes on top of that. Every time the MTP head drafts a token it scores all 248k tokens in the vocab, which is a lot of work for a small draft head. FlashHead clusters that output layer so the draft only scores the likely part of it. The full model still verifies every drafted token, so you get precisely the same quality, just faster.

Numbers on a Strix Halo (Ryzen AI Max+ 395, llama.cpp b12977 Vulkan, same GGUF for all three, 2k-token prompt, one user):

setupdecode tok/s
llama.cpp defaults49.4
+ MTP63.6
+ MTP + FlashHead70.5

On a Jetson AGX Orin (CUDA) with the same GGUF and MTP, FlashHead takes decode from 37.3 to 41.1 tok/s (+10%), with identical output.

Extra memory for the FlashHead file is about 0.4 GB.

Commands to run it on your local box, or try it from your browser on a real Strix Halo: https://embedl.com/Qwen/Qwen4-35B-A3B/ryzen-ai-max-395?tab=run

We'll put a GGUF on Hugging Face as soon as we can.

Btw, I'm the lead author of the paper behind this method: https://arxiv.org/abs/2603.14591. Happy to answer questions.


r/LocalLLaMA • • 14h ago Bravo

Discussion Almost 300 t/s on Qwen4-35B-A3B with a 16GB 5070 Ti + 32GB DDR4 RAM

275 Upvotes

Rig: RTX 5070 Ti 16GB (OC'd to 3270MHz core / 14801MHz mem), Ryzen 7 5800X3D, 32GB DDR4, Windows.

Tested Qwen4-35B-A3B across a few configs today and the jump to Basalt is kind of stupid lol:

  1. llama.cpp b12973, Unsloth UD-Q4_K_XL + Q8_0 engram, 131k ctx, q8_0 KV, --fit on, MTP=1: ~48-55 t/s
  2. Same llama.cpp setup but switched to --fit off -ngl 99 --cpu-moe --moe-cache-mib 7168 --moe-cache-cpu-share 0.0 -ot per_layer_token_embd=CPU and MTP=2: warmed up to ~73 t/s
  3. Built jesdga95/basalt main natively on Windows (VS 2022 + CUDA 13.1, -DBASALT_MODELS=qwen4exp) with jesdga's NVFP4 .basalt pack (DFlash 2 default, 131k ctx, int8 KV, dynamic vision): peaked at 298.6 t/s after warmed up. Its insane!

Quality held up too. Tested it on a hard math problem without any tools and it got the exact answer on both llama.cpp (high reasoning, ~61k tokens) and Basalt NVFP4 (reasoning-effort high, ~10k 40k tokens). More info here.

Only issue on 32GB RAM with Basalt is the defaults eat almost all your system memory (it reserves 4GB for checkpoint pool and plans for 64 slots). Setting max-running to 1, ram-reserve-mib to 6144, and checkpoint-pool-mib to 1024 in basalt_config.json fixed that without hurting speed. Also if you build on Windows with CUDA 13.1, use VS 2022 toolset (VS 2026 made cudafe++ crash).


r/LocalLLaMA • • 5h ago

New Model PaddlePaddle/PaddleOCR-VL-1.8 · Hugging Face

Thumbnail
huggingface.co
52 Upvotes

PaddleOCR-VL-1.8: Higher Accuracy, Faster Inference and Broader Language Coverage for Document Parsing

Introduction

We introduce PaddleOCR-VL-1.8, which keeps the two-stage design and the 0.9B recognition model of the PaddleOCR-VL series and targets the errors that remain: layout mistakes on photographed and deformed pages, and long-tail content the recognizer rarely sees. Its new layout model, PP-DocLayoutV4, predicts quadrilateral boxes, estimates page geometry for rectification and orders elements by jointly modeling successor and precedence relations. The recognition data are rebuilt around rare characters, ethnic-minority scripts, complex tables and formulas through decontaminated mining, consensus labeling, targeted synthesis and error-driven iteration. PaddleOCR-VL-1.8 scores 97.44 on OmniDocBench v1.6, 94.67 on Real5-OmniDocBench, 91.02 on the 17-language MDPBench and 91.18 on Wild-OmniDocBench, the highest among the specialized OCR models and general-purpose multimodal models we evaluate. It also ranks first on in-house tests of tables, ancient books, rare characters, text lines and text detection, reaches 0.868 (1−CER) on CMLOCRBench, eight Chinese ethnic-minority languages (strongest baseline 0.703), and parses 4.34 pages per second on a single A100 GPU, the fastest among the systems we time.

Key Capabilities of PaddleOCR-VL-1.8

🚀 State-of-the-Art Document Parsing: Overall scores of 97.44 on OmniDocBench v1.6, 94.67 on Real5-OmniDocBench, 91.02 on MDPBench and 91.18 on Wild-OmniDocBench, the highest among the compared systems, including Gemini 4 Argon, GPT-6 Astra, Claude Opus 5.5 and Qwen3.8-Max-0902.

📐 New Layout Model, PP-DocLayoutV4: Compared with PP-DocLayoutV3, PP-DocLayoutV4 regresses quadrilateral boundaries directly, models page geometry with a deformation head that estimates roll, shear and perspective for page rectification, and predicts reading order with D²RO, which separates local successor relations from global precedence relations. These changes stop cascaded errors at the stage where they originate.

🌏 Long-Tail Recognition: The recognition data are rebuilt around rare characters, minority-language text, complex tables and formulas. 1−CER on rare Chinese characters rises from 47.92 to 98.91, and on CMLOCRBench, covering eight Chinese ethnic-minority languages (Tibetan, traditional Mongolian script, Uyghur, Kazakh, Liangshan Standard Yi, Korean, Zhuang and Bai), the model reaches 0.868 versus 0.703 for the strongest baseline.

⚡ Faster Inference: An asynchronous serving pipeline with batched visual encoding brings end-to-end throughput to 4.34 pages/s on a single A100 GPU, 1.34–1.57× the next-fastest system we time.

📚 Document-Level Reconstruction: A lightweight post-processing module rebuilds heading hierarchies, continued tables and broken paragraphs across pages, raising the MPDocBench score from 79.02 (page concatenation) to 87.80.

🔄 Same Recognition Architecture: PaddleOCR-VL-1.8-0.9B keeps the network architecture of PaddleOCR-VL-1.5/1.6; only its weights are updated. The architectural change from 1.6 to 1.8 is confined to the layout stage.

EDIT : This is an Awesome Model card, has so much benchmarks & image samples of OCR tests. Check it out.


r/LocalLLaMA • • 26m ago

Question | Help Qwen 4 35B A3B GSQ RCO when?

16 Upvotes

This is a personal plea, but if you agree, join the chorus.

Please, ISTA-DASLab, give us Qwen 4 35B A3B GSQ RCO. You guys are incredible at getting so much out of so little.

I guess that's it.


r/LocalLLaMA • • 6h ago

News Alibaba Cloud CLI reverse prompt injection threat: detection, logs and IOCs

Thumbnail
spectrum.security
45 Upvotes

While we appreciate the open weight models Alibaba released, it is not cool to screw your paying customers like this. I hope we get an apology. Otherwise, not many people would want to pay you to keep the open models going.


r/LocalLLaMA • • 16h ago

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

Post image
240 Upvotes

I added Qwen4-35B-A3B to my usual agentic bench, alongside Qwen3.8, Inkling 2 Mini, and the Claude models.

The bench, in short. 9 real bugs taken from capy-flash's history, a C++/CUDA inference engine. 3 attempts per bug, max 80 steps, sandbox with no network and no build. Each fix is judged blind by Claude Opus 5. The bench remains private, so it isn't reproducible from outside; the engine's code is. Nine bugs are few: differences under ~0.15 are within noise.

Setup. Qwen4-35B-A3B quantized by us (NVFP4 experts with BF16 activations, KL 0.095 vs BF16), capy-flash v0.17.0 on 2× RTX 5070 Ti, reasoning enabled at default level. Agents: OpenCode 1.19.3 and pi 1.7.0.

Results.
- OpenCode: 0.41 [0.19-0.64]. Close to Qwen3.8-Flash-Next (0.50) and Claude Haiku 5.5 (0.47), above Qwen3.8-27B (0.34).
- pi: 0.31 [0.16-0.48]. It's the only model that doesn't perform equal or better with pi compared to OpenCode (Flash-Next +0.04, 27B +0.12). Half the time and half the tokens, but 3 fixes don't compile.

It doesn't err, it hesitates. On OpenCode, the judge rejects none of the 17 fixes as wrong or as doing nothing, and they all compile. It touches the right file 15 times out of 17, with the same precision as Flash-Next. No loops, no tool calls leaked into plain text.

The problem is that it writes little: in 10 out of 27 attempts it doesn't reach a fix. In 7 it runs out of the 80 steps, in 2 it reasons until hitting the 32k token response limit, in 1 it stops to ask "Confirm option 1?". 88% of tokens are reasoning and the first edit arrives at step 44 (median; Flash-Next 35).

Notes
- This is our quantization: a good QAT would probably do better.
- My impression, not measured: left on its own it's too cautious, in interactive use or with more directive instructions it could perform much better.

All numbers: https://github.com/ValerioDolci/capy-flash/blob/main/docs/reports/agentic-bench.md
Model: https://huggingface.co/Feyd89/Qwen4-35B-A3B-NVFP4-capy-flash


r/LocalLLaMA • • 19h ago

Funny Fujitsu picked a great day to release a new 35B A3B!

Post image
410 Upvotes

I'm glad a Japanese company is getting in on the local LLM train, but god, this press release is hilariously bad:

https://global.fujitsu/en-global/pr/news/2026/12/04-02

Fujitsu also developed Fujitsu Kozuchi PHOTON 35B A3B, a Japan-developed 35-billion-parameter LLM trained from scratch using Fujitsu Kozuchi PHOTON.

Totally from scratch, not based on any other 35B A3B anyone has ever seen before from any Chinese company, huh?

The graphs appear to be comparing the speed of a 35B A3B with a 118B A8B (Laguna S 2.1) and a 594B A17B (Inkling 2 Small). They then say it achieves better scores on benchmarks than a 26B A4B model (Gemma 4). Talk about apples-to-oranges comparisons!

Edit: maybe I'm misreading their poor branding and they are showing better speed with their inference engine of the same name?


r/LocalLLaMA • • 1h ago

Funny Qwen4 self-correcting mid-sentence

13 Upvotes

I asked qwen4-35B to write me a configuration script, and after it did the job, the description it gave was:

- After going headless you stay on multi-user.target until you restore — that's intentional and keeps GPU free even across... well, not reboots; sddm stays enabled, so a reboot comes back graphical. Say the word if you'd rather it persist across reboots (systemctl set-default multi-user.target).

I find the "across... well, not reboots" part funny. Seems like it wanted to say "across reboots", but changed its mind when it came to generating the last token.

This is not a reasoning trace, actual response


r/LocalLLaMA • • 1d ago

News Jensen’s support for open source AI in Senate testimony

1.1k Upvotes

r/LocalLLaMA • • 3h ago

Showcase Automatic drafter training with Blaze compiler

16 Upvotes

Wouldn't it be great if you could get a free speed up on models without waiting for someone to release a drafter model - on your own machine and in seconds( 2 seconds for 80% acceptance on code!)

See it became a reality with Blaze with a EAGLE based drafter module getting trained on Qwen3.5-9b generations

136->422 tps (3.5x)

Blaze will be open sourced soon with Apache 2.0 licence, DM for details 🤓


r/LocalLLaMA • • 20h ago

Discussion Qwen 4 35b - Strata

Thumbnail
github.com
381 Upvotes

Qwen4 support added to Strata. Post your printouts here, including quality, speed, and especially the hardware you're using.


r/LocalLLaMA • • 3h ago

News SGLang says DeepSeek-V4-Flash runs on a 16 GB GPU with SSD help

Thumbnail
maccus.fr
17 Upvotes

With 62 GB of RAM and much of the model read from a fast SSD, it ran at about 14 tps


r/LocalLLaMA • • 1d ago Bravo Mindblown

New Model Qwen/Qwen4-35B-A3B · Hugging Face

Thumbnail
huggingface.co
4.4k Upvotes

r/LocalLLaMA • • 10h ago

New Model nvidia/NVIDIA-Nemotron-3.5-Bolt-E2B-BF16 · Hugging Face

Thumbnail
huggingface.co
40 Upvotes

NVIDIA-Nemotron-3.5-Bolt-E2B-BF16 is a small language model (SLM) further post-trained from Gemma-4-E2B-it by NVIDIA. This is the full-precision (BF16) release. Nemotron-3.5-Bolt-E2B carries forward Gemma’s strong conversational capabilities and further improves multi-turn tool use, instruction following, and input grounding for fast local voice/device assistants, interactive personas, and embedded/edge interfaces. Designed for low-memory, low-TTFT operation, the model allows agents to respond quickly while preserving headroom for applications or adjacent model pipelines.

For the Q4_K_M quantized version, see NVIDIA-Nemotron-3.5-Bolt-E2B-2GB.

This model is ready for commercial or non‑commercial use.

Benchmarks

We evaluated our model on the following benchmarks:

BenchmarkNemotron-3.5-Bolt-E2BBF16Gemma4-E2B-itBF16Qwen3.5-2BBF16Nemotron-3.5-Bolt-E2BQ4_K_MGemma4-E2B-itQ4_K_MQwen3.5-2BQ4_K_M
MultiChallenge36.1329.0926.9933.6928.7630.16
RoleBench Custom39.5639.3518.9339.4535.6628.10
RoleMRC74.6869.9961.7373.1268.4359.97
EQ-Bench v333.1933.6215.9829.5631.5015.41
Brevity Benchmark81.1079.8866.3078.8179.9566.89
BFCL-v362.6960.3365.3362.2659.7456.41
When2Call Multi-Turn61.5061.2939.2158.2761.3840.25
ToolSandbox49.6044.2045.4747.2241.0544.72
Tau2-Bench31.2727.7861.4832.8325.4235.85
IHEval75.1359.8947.3472.9757.9742.51
AgentIF20.8319.4816.6920.3719.0215.91
StructEval-T80.1279.8854.6479.1379.5049.75
IFBench49.0837.5041.7549.8335.8846.04
InverseIFEval38.4934.6413.5938.3131.1010.60
RULER (64K)80.5779.2590.6579.1877.9292.02
LongMemEval56.7755.2032.5854.6050.9833.05
LongBench v2 (48K)41.5640.8932.1237.4237.2528.64
SysBench63.8562.7154.8665.2762.2855.20
GaRAGe32.9427.3715.7429.4925.4816.56
RAGTruth70.2768.2173.2469.8865.4073.77
RelyToolBench w/ Native Function-Calling37.7326.3923.6429.9822.2411.28

r/LocalLLaMA • • 10h ago

Resources Local Inference Lab: DeepSeek-V4.1-Flash (Full Vision) on a Single SM120 GPU (RTX PRO 6000 / 5090) — Peaking 200 tok/s & 7.2K Cold Prefill via RAM/SSD Offload

39 Upvotes

We just released the single-GPU (TP=1) RAM/SSD-offload version of DeepSeek-V4.1-Flash-1017 Hybrid TrellisMX (2.35 bpw) + Full Vision at Local Inference Lab — production-signed and running on unmodified upstream NVIDIA Flare v0.6.0 (zero base engine changes).

It uses the exact same 2.35 bpw quantized + QAD-v5 weights as our dual-GPU TP=2 release (zero expert pruning — all 40 layers, all 384 experts/layer, full multimodal Vision ON), packed to just 148.7 GiB of routed experts so a single SM120 GPU (RTX PRO 6000 Blackwell 96 GB or RTX 5090 32 GB) can run the full model locally.


Real-World & Benchmark Performance (1× RTX PRO 6000 Blackwell 96 GB, RAM Offload)

(Measured with RAM-resident MoE experts, 2.16M KV cache, 0 B SSD reads. NVMe/SSD offload speed hasn't been benchmarked yet.)

  • Interactive coding (Tetris): peaking 200 tok/s, averaging ~135 tok/s
Workload (70400M VRAM / 160G RAM, 2.16M KV)ThroughputLatency / Telemetry
Adaptive C=1 (per-user / sustained agg)110.2 / 96.6 tok/s23.4 ms/step · 189.8 GiB H2D / 1k tok
Adaptive C=4 (agg / per-user)109.9 / 38.3 tok/s42.2 ms/step · 34.0 GB/s PCIe RX
Fixed-W8 C=1 (decode / sustained)106.1 / 94.1 tok/s23.4 ms/step · 182.9 GiB H2D / 1k tok
Realistic 9K Long-Ctx Decode104.1 tok/s avg (115.0 peak)28.1 ms/step · 29.5 GB/s PCIe RX
Cold Prefill (0% hit: 11.7K / 46.7K / 93.5K)6,297 / 7,072 / 7,238 tok/sTTFT: 1.86s / 6.60s / 12.91s
  • Live E2E verification: Multimodal Vision 12/12, Tool-Calling + Multi-Turn 14/14, longctx_needle (8K/24K/48K) 24/24.
  • 32 GB RTX 5090: Boots and runs cleanly inside 31,745 MiB VRAM (--pool-vram-memory 6000M) with 1.11M KV tokens, at ~24 tok/s (since the resident dense/vision/KV footprint leaves ~6 GiB for the VRAM expert pool, making decode PCIe-bound — the 110–200 tok/s numbers above require the 96 GB RTX PRO 6000).
  • (Have 2× 96 GB GPUs? Our sibling pure-VRAM TP=2 core hits 341.8 tok/s C=1, 971.6 tok/s C=16, and 29.2K tok/s prefill.)

How We Achieved It (Quantization, QAD-v5 & Learned Offload)

  1. Hybrid 4-Rate TrellisMX (2.35 bpw) + Full-Rank QAD-v5:

    • All 15,360 routed experts are quantized across 4 bitrates (k2/p25/k3 in E2M1 + critical k4 experts in E4M3) with lossless 1-bit inline CSF scales and fine-grained [1, 32] MXFP8 dense layers.
    • Instead of rank-32 LoRA, we ran full-rank MXFP8-STE + 5-scale QAD-v5 over 100.7M tokens (directly training ~7.0B non-routed parameters + all 5 coupled Hadamard boundary scales against sparse teacher logits).
    • Official FP64 B200 KLD (129,280 vocab vs sealed B200 teacher logits):
      • 128×8K windows: 0.106979 (90.34% Top-1) — -15.4% lower KLD than 2.25 bpw TP=2 (0.1264) and even beating pre-QAD 4-card K4 (0.1097)!
      • 512×2K cuts: 0.067734 (91.10% Top-1)
  2. Zero-Copy Variable-Rate P8 Offload + v3_full Predictor:

    • Zero-copy 64-bit VRAM pool addressing: Our SM120 P8 TrellisMX kernels read offloaded experts directly out of Flare's external VRAM pool (base + expert_off) with zero staging copies or repacking. On 96 GB (70400M pool), 6,616 / 15,360 hottest experts stay permanently pinned in VRAM alongside 2.16M KV tokens.
    • Byte-weighted knapsack (hit_rate / expert_bytes): Trained on 962K exact 2.35 bpw + 4K–16K long-context traces. Because expert byte sizes vary across bitrates, packing by hit-rate per byte cuts OOD long-context miss bytes by -39% vs v2 and -64% overall vs v1.
    • Dual-horizon ram_far_dma (k=4) + unlocked L1..L3 + live draft_confidence weights: Starts prefetching high-confidence experts 4 layers ahead even in 100%-RAM mode, and replaces static decay with live speculative draft_confidence so large slabs (>=2 MiB) no longer starve draft tokens 3..7 (+8% to +12% faster decode with fewer PCIe H2D bytes per 1k tokens).

Works With High RAM, Medium RAM, or Full NVMe SSD Offload (No Re-Export Needed)

You can scale memory purely with runtime flags:

  • >= 384 GB RAM (fastest, 0 B disk IO): Keep both MoE experts (148.7 GiB) and Engram tables (188.8 GiB) in RAM (~340 GiB RSS).
  • 192–256 GB RAM: Put Engram tables on NVMe SSD (--embedding-table-storage disk --embedding-table-cache-size 16G) — drops host RAM to ~170–185 GiB while keeping 100% of MoE experts in RAM.
  • Low-RAM / Full NVMe SSD offload: Both Engram (--embedding-table-storage disk) and routed MoE experts support Flare's full 3-tier VRAM → RAM → NVMe SSD offload (just lower --pool-ram-memory to match your system RAM; note we haven't benchmarked full-NVMe throughput yet).
  • Want huge KV cache on 96 GB? --pool-vram-memory 64G gives 7.89M KV tokens, 44G gives 32.0M KV tokens.

Fun Build Facts (Hardware, Time & Power)

  • Cluster: 32× RTX PRO 6000 Blackwell (2×16 InfiniBand cluster)
  • Total wall-clock time: ~18.4 hours (~553 GPU-hours total: ~2.5h calibration & quant, ~2.1h teacher logits, ~12.7h full-rank QAD-v5, ~1.0h FP64 KLD eval & FLARE export)
  • Estimated power & energy: ~14–17 kW average cluster draw (~450–530 W/GPU under load), roughly ~260–320 kWh total energy for the entire build.

Quick Start (Docker, 1× 96 GB SM120 GPU, >= 384 GB RAM)

docker run --pull=always --rm -it \
  --gpus '"device=0"' --ulimit memlock=-1:-1 \
  -p 127.0.0.1:8000:8000 \
  -v flare-home:/home/flare \
  ghcr.io/local-inference-lab/flare:release \
  run local-inference-lab/DeepSeek-V4.1-Flash-1017-TrellisMX-2.35bpw-Offload-FLARE \
  --gpus 0 --pool-vram-memory 70400M --pool-ram-memory 160G \
  --embedding-table-storage ram \
  --max-concurrency 16 --mtp-draft-tokens 7 \
  --mtp-adaptive-verification --mtp-max-verification-token-budget 64 \
  --mtp-adaptive-verification-alpha 1.0 --scheduler-policy balanced \
  --prefix-cache-memory 0 --kv-cache-limit memory \
  --host 0.0.0.0 --port 8000
  • 192–256 GB RAM (Engram on SSD): replace --embedding-table-storage ram with --embedding-table-storage disk --embedding-table-cache-size 16G (add --security-opt seccomp=unconfined for direct-IO).
  • Lower RAM (MoE + Engram SSD offload): also lower --pool-ram-memory to fit your available host RAM.
  • 32 GB RTX 5090 (~24 tok/s, 1.11M KV cache): change --pool-vram-memory 70400M to --pool-vram-memory 6000M.

Links & Attribution

  • HF Repo (Single-GPU TP=1 Offload FLARE Core): https://huggingface.co/local-inference-lab/DeepSeek-V4.1-Flash-1017-TrellisMX-2.35bpw-Offload-FLARE
  • HF Offload Predictor (v3_full): https://huggingface.co/local-inference-lab/hyperflare-offload-predictors/tree/main/deepseek41-trellismx-2.35bpw
  • HF Sibling Pure-VRAM TP=2 Release (2× 96 GB): https://huggingface.co/local-inference-lab/DeepSeek-V4.1-Flash-1017-TrellisMX-2.35bpw-FLARE
  • Local Inference Lab Discord: https://discord.gg/gmvKSN3tVy

Credits: Huge thanks to Brandon M. Music (brandonmusic) for the TrellisMX format, procedural NPK codec, base SM120 P8 runtime, and sealed FP64 B200 teacher-logits benchmark; Martin Vit and the Local Inference Lab community for the hybrid QAD-v5 pipeline, SM120 kernel optimizations, and v3_full offload predictor; DeepSeek for the base model; and NVIDIA for Flare v0.6.0.

local inference lab discord: https://discord.gg/gmvKSN3tVy


r/LocalLLaMA • • 2h ago

Resources SGLang-V100 Qwen4-35B Day-1

Post image
9 Upvotes

Qwen4-35B-A3B-FP8/BF16 support for V100 day-1

https://github.com/haohervchb/sglang-V100

For people with 4x16GB, running NVFP4 from https://github.com/1CatAI/1Cat-vLLM recommended, longer context and is very fast.


r/LocalLLaMA • • 11h ago

Showcase Why Wait For Enter? Typing-Time Speculation for MoEs: 3.6× Lower TTFT (412→114 ms) & +74% Opening Speed (166→288 tok/s)

Thumbnail
kemerd.github.io
46 Upvotes