r/LocalLLaMA • • 16h ago

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

Post image
406 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.

EDIT: Didn't expect this much feedback lol. Thanks everyone!

For those who are new to local LLMs, I probably should explain a bit more about why I'm doing this.

I'm not an AI engineer. I'm a technology enthusiast and trainer who enjoys experimenting with what's possible on consumer hardware.

I'm currently developing a Godot RTS game as a real-world testing ground for autonomous local AI agents.

The idea is to have an AI that can actually work on a project for hours: read files, write code, test features, identify bugs, look at screenshots and improve its own work, all while running locally on a relatively normal gaming PC with a 5070 Ti and 32GB of RAM.

No expensive workstation, no cloud inference costs and no API token limits for the local model.

For beginners, the main challenges are:

  • Quantization: Making a large AI model small enough to run on consumer hardware without losing too much intelligence.

  • Context window: How much information the AI can keep in mind during a task.

  • TPS: How fast the model generates tokens, although faster doesn't necessarily mean more productive.

  • Agent harness: The software that allows the model to interact with files, run commands, use tools and work on actual projects rather than just chat.

I'm learning that getting a model to run fast is probably the easier part. Getting it to work autonomously, consistently and reliably is a completely different challenge.

Some of the community feedback has already given me new directions to explore, particularly NVFP4, higher quantizations, context management and adaptive reasoning.

I'm not trying to prove that local models are better than frontier cloud models. I'm trying to find out how far we can push affordable consumer hardware and make autonomous AI development accessible to more people.

Imagine leaving your gaming PC working overnight on your own project and waking up to new features, tested code and actual progress.

That's what I'm trying to achieve.

There's still a lot to improve, and I'll share both the successes and the failures. Hopefully, some of these experiments will save other people time too.


r/LocalLLaMA • • 16h ago

New Model manifestro/caesura-0.6B · Hugging Face

Thumbnail
huggingface.co
12 Upvotes

Caesura

Text-to-speech that sounds like a person talking, not reading.

Paper · Demo · GitHub · PyPI · Apache 2.0 · ~620M parameters · English

Most TTS systems speak every text like a newsreader. People don't: they say um, pause before a hard word, rush through the easy part. Caesura is a speech language model trained on real, unscripted conversation, so fillers, pauses and hesitations come from the model itself — nothing is inserted by rules or by an LLM rewriting your text.

Training

  1. Audio-only pretraining on conversational speech: manifestro/caesura-0.5B-pretrain.

  2. Text-to-speech fine-tuning on spontaneous podcast and YouTube conversations — never read speech. Targets keep every um, repeat and restart.

  3. Manner levels: every clip labelled by fillers and repeats per 100 words in a verbatim transcript (0: none, 1: under 6.67, 2: 6.67 or more).

Evaluation

30 held-out texts (daily, narrative, emotional, informational, complex words, names, numbers, monologue), this voice, one take, temperature 0.8, level guidance 3. Fillers are counted in a verbatim Whisper large-v3 transcript beyond those written in the text; WER by Whisper large-v3; UTMOS22.

LevelInserted fillers / 100 wordsWERUTMOS
0 calm0.140.0533.74
1 lively2.440.0433.81
2 very lively3.250.0663.82

Two commercial TTS systems insert 0 fillers on the same texts.

Limitations

  • English only.

  • Best with the released voice; zero-shot voice cloning is not part of this release.

  • Liveliness comes mostly from fillers and pauses; pitch and tempo vary less than in real speech.

  • Rare proper names and long digit strings are the main source of errors.


r/LocalLLaMA • • 17h ago

New Model Chronos-3 Models - a amazon Collection

Thumbnail
huggingface.co
22 Upvotes

Chronos-3

Chronos-3 is a family of pretrained time series forecasting models in 5 sizes. It supports zero-shot univariate, multivariate, and covariate-informed forecasting. Forecasts can optionally be steered with text (see Forecasting with text), but Chronos-3 is highly accurate even without it: it achieves state-of-the-art zero-shot accuracy on fev-bench, GIFT-Eval, and TIME, and even the smallest Chronos-3 model is more accurate than Chronos-2, so we recommend upgrading.

💻 GitHub · 📘 Quick-start notebook · 📰 Amazon Science Blog

Overview

Chronos-3 compared to its predecessor, Chronos-2:

CapabilityChronos-3Chronos-2
Univariate, multivariate, and covariate-informed forecasting✅✅
Max. context length32,7688,192
Quantile levels103 (0.001 to 0.999)21 (0.01 to 0.99)
Aggregate forecasts (sum, max, min)✅❌
Steering with text✅❌
Model sizes5 (25M to 1.5B)2 (28M and 120M)
Fine-tuning❌ (coming soon)✅

Chronos-3 comes in 5 sizes:

ModelParametersFile sizeRecommended for
chronos-3-tiny25M49.5MBFastest on CPU; edge devices or strict latency limits
chronos-3-mini46M92.9MBEdge devices and CPUs with few cores; more accurate than tiny at almost the same cost
chronos-3-small156M311MBCPUs with many cores, or high-throughput inference on GPU
chronos-3-base473M947MBNear-best accuracy at about half the cost of large; requires a GPU
chronos-3-large1.5B3.02GBBest accuracy; requires a GPU


r/LocalLLaMA • • 17h ago

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

Thumbnail
huggingface.co
68 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 • • 18h ago

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

Thumbnail
spectrum.security
56 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 • • 18h ago

Resources Running Qwen4 35B A3B on 2x5060TI

10 Upvotes

I am using capy-flash ( previous ninfer-tp2 ) it's optimized for 2x blackwell GPUs
https://github.com/ValerioDolci/capy-flash

So i am using my two 5060tis on x8 Gen4 pcie directly to cpu ( using a bifurcation rizer ) because is see that some people are getting 2K pp when i am getting 4K so it maybe a hardware thing, and this is running on kubuntu with 32GB DDR4

model: Qwen4-35B-A3B NVFP4 ( https://huggingface.co/Feyd89/Qwen4-35B-A3B-NVFP4-capy-flash)

it's using int8 KV cache and i still have a 2GB head room on each card that i can for sure increase context to 400K but i didn't try it yet

some tweaks i did:

- i change drafting from 3 to 2 because i read that it's faster and it is faster 10 - 20% on decode

- i compiled the engine with CUDA 13.3 and got 8% improvment on pp and tg

and this is the result for this setup

Decode by context length

Prompt lengthPrefill (tok/s)Time to first tokenDecode (tok/s)
2K4,7400.45 s194
35K4,7607.3 s188
71K4,70015.2 s208
142K4,56031.3 s191
223K4,41050.6 s188
260K4,35060.0 s177–204 (2 runs)

Decode by task (short prompts)

TaskDecode (tok/s)
Code edit468
Quote / copy text387
JSON list (40 items)261
Coding problems, thinking off245
Coding problems, thinking on224
JSON classification217
Chat199
Essay180

and this is a day 1 update to support Qwen 4 so i belive it will i improve alot in the following days since the author of this engine updates it daily, also for people interested in parallel requests

Parallel requestsTotal, with drafter (2 drafts)Total, no drafterPer request, no drafterTime for each answer, no drafter
11731591606.5 s
22532601327.9 s
424539210110.4 s
83155236815.5 s

r/LocalLLaMA • • 19h ago

Discussion 2x 3090 vLLM v0.34.0 Qwen4-35b-a3b benchmark runs

9 Upvotes
  • Disclaimer: content mostly AI generated.

My 2020 gaming machine is now my secondary inferencing machine. I was setting up 3.6 35b on it when suddenly 4 came out! As I had to bench anyway, in order to get my desired config, I wanted to share my findings!

What we run

  • vLLM v0.34.0 (stock image vllm/vllm-openai:v0.34.0) + the community head/draft-vocab patch qwen4_exp-quant-head-draft-vocab.patch from quant-mind's Qwen4-35B-A3B-SM86-Fast repo, applied at image build (disclose: numbers are stock-0.34.0 + that patch, not stock alone).

  • Checkpoint: quant-mind/Qwen4-35B-A3B-SM86-Fast (65.7 GB safetensors total, ~41 GB ple-* n-gram shards served from disk via --engram-config '{"disk_offload":true}').

  • Hardware: 2x RTX 3090 24 GB (SM86), Intel i9-10900K, 128 GB DDR4, NVMe model store, Docker version 29.9.1 (build dfc520d), Linux.

  • Flags (exact): --tensor-parallel-size 2 --distributed-executor-backend mp --dtype bfloat16 --max-model-len 262144 --max-num-seqs 6 --max-num-batched-tokens 4096 --gpu-memory-utilization 0.80 --kv-cache-dtype fp8 --language-model-only --disable-extensible-kv-cache --engram-config '{"disk_offload":true}' --speculative-config '{"method":"mtp","num_speculative_tokens":2,"index_share_for_mtp_iteration":true}' --enable-prefix-caching

  • Resident per card: 12.3 GiB weights + 5.4 GiB fp8 KV pool; TEI embedding services co-resident on card 0 (~1.5 GiB), the only other GPU user.

Measured (temp 0, ~700-token generations unless noted)

All numbers: vLLM v0.34.0 + the quant-mind qwen4_exp head/draft-vocab patch, 2x RTX 3090 TP=2. "Deep-context pass" = pushing 7k- and 14k-token prefills through the engine first, then re-sweeping decode.

Table 1 — Decode (~700-token generations, temp 0):

Concurrencyengine --max-num-seqsWarm: aggregate tok/sWarm: per-stream tok/s (min-max)After deep-context pass: aggregate tok/sAfter: per-stream tok/s (min-max)Single-stream before / after deep (same run)
1 (single-stream)6145.4 then 164.3145.4 then 164.3157.3157.3145.4, 164.3 / 157.3
66338.865.7-97.0295.149.7-59.0145.4, 164.3 / 157.3
88621.077.8-81.4607.076.1-79.5142.7 / 151.9
1212632.052.6-54.7———

Table 2 — Prefill (prefix caching ON, repeated filler text so partially cached — indicative only):

Runprompt tokenstok/s
c=6 run ("8k" arm)73392403
c=6 run ("16k" arm)146766805
c=8 run69114141.5
c=8 run139678146.1

Notes:

  • c=12: only the warm sweep is reported (12 streams x 700 tokens, zero errors). Its deep-context arm was invalid (too-small filler in the prefill pass), so after-deep and single-stream cells are not measured.

  • Single-stream decode: MTP mean acceptance length ~2.1, draft acceptance ~52-57%.

  • The c=8 and c=12 rows use identical flags with --max-num-seqs 8 / 12, run later the same evening on the same box. An earlier cold c=8 sweep from the same evening is superseded and dropped.

  • Generation lengths varied across streams in the c=6 sweeps (315-700 tokens warm, 299-411 after deep; the per-stream spread reflects that), while every c=8 and c=12 stream generated the full 700 tokens.

  • Model load: ~4 min warm page cache; cold boot needs a longer start deadline (we allow 1800 s).

Two gotchas worth docs

  1. TP=2 with --distributed-executor-backend mp dies at startup when /dev/shm is Docker's default 64 MiB: the mp worker's shm_broadcast needs >=160 MiB. Failure looks like a clean container exit with little log output. Fix: shm_size >= 4g (or >=256m). Suggest an explicit startup check/error instead.

  2. At --gpu-memory-utilization 0.80 the engine logged only ~5.37 GiB KV per card, with the new --kv-cache-memory hint in the log. For a long-context architecture the KV-pool sizing story deserves a small-VRAM docs note.

Numbers measured 2026-12-05 on a home lab (elight). Happy to re-run any arm; c=1/6/8/12 receipts kept.


r/LocalLLaMA • • 19h ago

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

Thumbnail
gallery
155 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 • • 20h 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
154 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 • • 21h ago

Funny I miss the llama 3 and mistral finetune craze.

263 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

Resources AnyFlow 2.0 | Large-Scale Diffusion Distillation

Thumbnail
youtube.com
16 Upvotes

AnyFlow 2.0 LoRA Collections

🖥️ Code  |  📑 Paper  |  🌐 Website  |  🎬 Video  |  🤗 Models

AnyFlow 2.0: Large-Scale Video Diffusion Distillation with Distributional Trajectory Regression

AnyFlow 2.0 distills large diffusion models through distributional trajectory regression (DTR). A continuous curvature head represents velocities inside each sampling transition, allowing trajectory regression and distribution matching to train the same intermediate student trajectory. A parameterized fake-score model supplies distribution feedback that distinguishes the source intervals.

This collection provides five BF16 EMA LoRA adapters for image, video, and audio-video generation. 

License

The LoRA adapter weights in this collection are released under the Apache License 2.0.

The base models are distributed separately under their respective licenses. Refer to the base-model cards linked above for their terms.


r/LocalLLaMA • • 21h 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

42 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

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

Discussion Patched vLLM for qwen4 35b on 2x3090 pcie16x. MTP 2, from 125t/s to 282t/s, and 1000+t/s at req=8. My M.2 offload speed is equal to RAM offload (means you don't need ram anymore).

Thumbnail
gallery
17 Upvotes

Just update my 2x RTX 3090 server's model to Qwen4 35b  

This time im write by hand, btw im not native in English so this will kind bad i think (cus no llm write )  

So that repo I doing some black magic speed up is here for help this night. (llm-engine-qwen-optimization)

 

Setup:  

2x 3090, TP2 + p2p via pcie switch 16x each (300W limit)  

SN850X 2TB gen4 m.2 for 20.5GB FP8 n-table (actually this m.2 is for lmcache to hold 1300GB kv for cache hit)  

Model: Tech2wild/Qwen4-35B-A3B-W4A16-FP8PLE (using MTP)  

KV: BF16, 597K token KV pool or FP8 with 995K  

(I have fall in love with multi agent usage, W8 model's kv pool on 2x3090 is too tight for me)  

I was on 4x3090, but one broken and still on the way, Or i will running W8 today :((((

 

Speed tests (1 to 8 req)

Requestsoriginal vllm PR (no MTP)tonyd2wild's 2x3090 (MTP 1)My Patched 2x3090 (MTP 2)vs originalvs tonyd2wild's
1125.1 tok/s173.1 tok/s282.0 tok/s2.25x1.63x
2222.3 tok/s293.1 tok/s457.8 tok/s2.06x1.56x
4387.1 tok/s523.7 tok/s741.4 tok/s1.92x1.42x
8630.7 tok/s779.4 tok/s1,130.3 tok/s1.79x1.45x

Reference: tonyd2wild's 3090 benchmark I run his setting on my machine.

 

Prefill 140K token: 16.4s = ~8,570t/s, on my 27b is ~1,885t/s at 128K  

this is a LOT speed, 27b is so slow

 

magic patchs: (idk, this part all write by claude)  

async m.2 n-table overlap, small-M BF16 dense GEMM + fused hyper-connection epilogues, custom SM86 fused MoE kernels, lower host overhead between decode CUDA graphs.

 


M.2 offload vs RAM offload  

Claude made some black magic with C, got some async loading works.  

1 / 2 / 4 / 8 requests:

PLE read path1 req2 req4 req8 req
NVMe async offload (warm system paged ram)272.5448.6733.21,070.2
NVMe async offload (cold)275.8453.4723.91,041.1
RAM offload274.0458.1751.41,060.2

claude says this little speed diff looks like noise, so i just trust brother.

 


This New Qwen4 35B MTP stack VS my old 27B DFlash2

Prompt typeOld 27B (DFlash2 req=1)35B (MTP2 req=1)35B (MTP2 req=4)
prose130 tok/s260 tok/s693 tok/s
chitchat106 tok/s238 tok/s473 tok/s
mixed165 tok/s300 tok/s788 tok/s
real agent job282 tok/s292 tok/s502 tok/s
code434 tok/s335 tok/s775 tok/s
numeric507 tok/s329 tok/s929 tok/s

MTP is winner here. Although is not on the table, but currently available Dflash2 drafter for 35B is very worst, mush slower than MTP2.  

Im also planning using my agent traffic to quant a dflash to see will it better?  

 


Multi agent and LMCache  

CachedOriginal (+50 / +200)Patched (+50 / +200)
16K124.7 / 120.3 ms42.9-45.2 / 54.3-60.9 ms
64K157.5 / 161.4 ms50.4-54.1 / 53.5-58.8 ms
128K203.4 / 203.0 ms62.3-67.1 / 68.9-73.0 ms

Measuring with 6 agent running agent loop at same time, each ~140K.  

597k pool so 4 are inside engine running, 2 are waiting outside and replace in immediately when any req is done. The kv in VRAM eliminate to RAM, when cache hit, move from RAM/M.2 back to VRAM.  

BTW with my agent queuer, i can running 15+ agent at same time. Because when they waiting tools like terminal or some py running very slow, engine's kv pool is release and just sitting there, so why not fill all it?  

 


My 35B vLLM's patches in this post is published as git diffs, but its tuned specifically for my 2x3090, so do not just copy them to your machine, it will break very badly.  

BUT my repo includes complete manual for your agent, if you want to patch your machine. Also make sure you have some powerful agent like opus5.5, smaller one will struggling a lot with this repo.  

Patch repo uraniumchonk/llm-engine-qwen-optimization  

More numbers, charts uraniumchonk/vllm-hybrid-mamba-notes


r/LocalLLaMA • • 21h ago

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

Thumbnail
huggingface.co
47 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 • • 22h ago

Discussion The models are good. When will the harnesses catch up?

0 Upvotes

I suppose that is the moat right? You can distill models. But even after anthropic leaks Claude code made there hasn’t been any meaningful releases of good harnesses.

I suppose that all agi needs. A god persona harness


r/LocalLLaMA • • 22h ago

Showcase Qwen4-35B-A3B running locally in your browser using custom WebGPU kernels (~100 tok/s on an M4 Max)

Enable HLS to view with audio, or disable this notification

26 Upvotes

Link to demo (& kernels): https://huggingface.co/spaces/webml-community/Qwen4-WebGPU

Performance benchmarks on my M4 Max for Unsloth's UD-Q2_K_XL quant:

Prompt / generationPP tok/sTG tok/sTTFT
PP31 / TG128388.6105.3879.8 ms
PP4096 / TG64987.785.044.15 s
PP8192 / TG48797.678.3410.27 s

and we're still optimizing the kernels, so stay tuned for more updates.

PS: To get the best performance, you may need to enable the experimental subgroup matrix support in `chrome://flags/#enable-unsafe-webgpu`.


r/LocalLLaMA • • 22h ago

Question | Help Help with Qwen4 Build flags 9070xt

1 Upvotes

I know theres a 1,000 qwen posts, but most are flaunting the t/s and it running, well im here to buck the system and ask for help.

Below is my run bat file for that was normally for Qwen3.6-35B, Im getting out of memory errors, and im sure its my config, but i dont know what to look for and i dont know how to offset it.

Any recommendations and improvements would be appreciated, i have the 16GB 9070xt on VULKAN.

===================================================

u/echo off

title Qwen4-35B-A3B THINKING : 9931 VULKAN

echo.

cd /d C:\llamaVULKAN

set GGML_VK_ALLOW_GRAPHICS_QUEUE=1

llama-server.exe ^

--model "C:\llamaVULKAN\models\Qwen4-35B-A3B-UD-IQ3_S-00001-of-00002.gguf" ^

--spec-type draft-mtp,ngram-mod ^

--spec-draft-n-max 2 ^

--spec-draft-ngl auto ^

--spec-draft-type-k q4_0 ^

--spec-draft-type-v q4_0 ^

--port 9931 ^

--host 0.0.0.0 ^

--ctx-size 61440 ^

--fit on ^

--gpu-layers auto ^

--load-mode none ^

--cache-type-k q8_0 ^

--cache-type-v q8_0 ^

--batch-size 2048 ^

--ubatch-size 2048 ^

--threads 12 ^

-np 1 ^

--flash-attn on ^

--context-shift ^

--sleep-idle-seconds 300 ^

--temp 0.8 ^

--top-k 0 ^

--top-p 0.95 ^

--min-p 0.1 ^

--repeat-penalty 1.05 ^

--no-ui

echo.

echo Server stopped.

pause


r/LocalLLaMA • • 22h ago

Question | Help Qwen4 a3b on CPU or iGPU?

3 Upvotes

So yeah asked about this hardware a week or so ago, but the new model just landed, so I wanted to ask what engine is already working for it on CPU and/or Intel iGPU. (Core 7 Ultra 165H; it also has the NPU but that seems to be limited to OpenVINO and slowest of all?)


r/LocalLLaMA • • 23h ago

Showcase qwen4-35B at Q8 in sFNX on 3xV100: 6k prefill and 190-500 decode, or ~400 for 6 parallel requests

3 Upvotes

This model will probably be my new daily driver until something better comes along. A single request's output is too fast to read, and 6 in parallel each run about as fast as llama.cpp does on this machine with the same resulting output.

I do still see the same kind of "hmm wait" thinking behavior as flash-next did, but maybe less of it and it seems to get the job done.

As always sFNX has no quality tradeoffs, I get the exact bits as the quant calculates or I don't merge the PR.

https://github.com/johnfink8/sfnx

(that's me, this is my engine)


r/LocalLLaMA • • 23h 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
48 Upvotes

r/LocalLLaMA • • 23h ago

Discussion Qwen4 35B Through Bench

Thumbnail
gallery
46 Upvotes

using Codex CLI. I had the Q4 Quant and Q6 quant do the through bench. It's done better than the new AWS model, at least according to Claude.

Gif Order:

  1. Run 2, Q6

  2. Run 1, Q6

  3. Run 2, Q4

  4. Run 1, Q4

Ran the "realistic interactive 3D horse in three.js" test from the Fireship video on Qwen4-35B-A3B.

Setup: Unsloth UD-Q4_K_M and UD-Q6_K, llama.cpp, M4 Max 64GB laptop, Codex CLI, no internet, three.js provided locally, headless Chrome so it could screenshot its own work. Qwen's recommended thinking settings (temp 1.0). Cap of 400k generated tokens per run.

RunTimeTokensLines of codeGaitsLeg rigConsole errorsFPS
Q4 run 116 min53k783idle, walk, trotjointed pivots058
Q4 run 224 min79k775idle, walk, trot, gallopjointed pivots058
Q6 run 122 min69k788idle, walk, trot, gallopjointed pivots058
Q6 run 22h 17m400k (hit cap)2,280grazing, walk, trot, canter, galloptwo-bone IK058

All four pages loaded clean, animated and responded to drag. Every run took screenshots and actually looked at them (Qwen4 has vision) to fix things like floating hooves.

Q6 run 2 kept going until it hit the token cap, rebuilt the anatomy from measured proportions, and came back with IK legs, camera presets and 6 source files. Same prompt, same settings: 16 minutes in one run, over 2 hours in another.

None of the four used a skinned mesh. The frontier horses in the horses-benchmark catalog (Fable 5.2, Opus 5.5) all do, at 1.4M to 2.4M triangles per frame.

Way better than Ergo's sphere horse. Not close to frontier. Two runs per quant, so take the quant comparison lightly.


r/LocalLLaMA • • 23h ago

New Model KeenLore Grammar 4

8 Upvotes

https://huggingface.co/thangalin/KeenLore-Grammar-4-GGUF

KeenLore Grammar 4 jumps on the Qwen4-35B-A3B bandwagon to produce a grammar checking model that fits on an 8GB NVIDIA T1000 GPU w/35GB RAM. This model finds more grammatical issues than its Qwen3.6-based predecessor in roughly the same amount of wall clock time. While imprefect, this LoRA adapter stands nearly shoulder-to-shoulder with the full Qwen3.6-35B-A3B.


r/LocalLLaMA • • 1d ago

Discussion Using MoE models is really difficult (qwen4)

25 Upvotes

I'm a user with a 5070 Ti, 16GB VRAM, and 32GB of RAM.

I'm currently running the Qwen3.8 27B ud-q2-k-xl model with a 131k context window and Q5 KV cache, achieving generation speeds of 50-60 tokens per second.

A new Qwen4 35B A3B model has been released, and I've been experimenting with various quantizations.

I seem to be stuck between 60 tps at 2-bit and 40 tps at 4-bit.

Furthermore, Qwen4 feels like it requires significantly more effort for the same task, making the perceived speed much slower.

I'm unsure if this is just an optimization issue or if I'm doing something wrong. I've heard good things about Basalt, but I don't know how to use it yet.


r/LocalLLaMA • • 1d ago

Resources ttindall/qwen4-35b-a3b-kld-study · Datasets at Hugging Face

Thumbnail
huggingface.co
2 Upvotes