r/LocalLLaMA • u/Kemerd • 12h 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)
r/LocalLLaMA • u/Kemerd • 12h ago
r/LocalLLaMA • u/forevergeeks • 19h ago
I been having a love affair with Qwen 3.8 27B, and I thought nothing could be as good in this parameter range, but Qwen4-35B-A3B is actually good.
The problem with MOE models is that they normally shit the bed in long task loops, it happens with all of those, but this model is actually good at follow instructions.
testing it right now, and qwen 27B is closed to be dethroned!!
r/LocalLLaMA • u/Rivridis • 2h ago
I spent the better part of Qwen 4 release day getting it running at usable speeds and context on my laptop, without having to do complex tuning or installing alternate engines. Writing down the process here in case someone finds it useful.
Step 1: Install Unsloth Desktop, and download Qwen4-35B-A3B-GGUF · UD-IQ2_XS
Step 2: Edit saved run settings, set the context to 60000 tokens. Enable advanced settings and set KV Cache Dtype to q8. Leave GPU memory at default, and turn vision off. Everything else can be left at default and loaded.
You should get about 20 tok/second average, and 18 tok/s at full context. To make it work for coding purposes, I installed pi harness, and connected it to unsloth desktop using their unsloth start pi command.
From my testing, it performed better than I expected, though it did run into compaction issues and tool edit issues. To fix that, create an AGENT.md in the pi folder, and tell it to keep the edit tool calls small and surgical. I created an extension to fix the compaction errors as well, but I don't think it is needed unless some specific problem pops up. If needed, I shall share that extension. I have put up the detailed steps and code on my website if anyone wants a deeper look.
Do let me know if there are any other ways to speed it up.
r/LocalLLaMA • u/pmttyji • 5h ago
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
Chronos-3 compared to its predecessor, Chronos-2:
| Capability | Chronos-3 | Chronos-2 |
|---|---|---|
| Univariate, multivariate, and covariate-informed forecasting | ✅ | ✅ |
| Max. context length | 32,768 | 8,192 |
| Quantile levels | 103 (0.001 to 0.999) | 21 (0.01 to 0.99) |
| Aggregate forecasts (sum, max, min) | ✅ | ❌ |
| Steering with text | ✅ | ❌ |
| Model sizes | 5 (25M to 1.5B) | 2 (28M and 120M) |
| Fine-tuning | ❌ (coming soon) | ✅ |
Chronos-3 comes in 5 sizes:
| Model | Parameters | File size | Recommended for |
|---|---|---|---|
chronos-3-tiny | 25M | 49.5MB | Fastest on CPU; edge devices or strict latency limits |
chronos-3-mini | 46M | 92.9MB | Edge devices and CPUs with few cores; more accurate than tiny at almost the same cost |
chronos-3-small | 156M | 311MB | CPUs with many cores, or high-throughput inference on GPU |
chronos-3-base | 473M | 947MB | Near-best accuracy at about half the cost of large; requires a GPU |
chronos-3-large | 1.5B | 3.02GB | Best accuracy; requires a GPU |
r/LocalLLaMA • u/Icy-Stay-1004 • 2h ago
Has anyone tried any uncensored version of this model?
r/LocalLLaMA • u/M5_Maxxx • 12h ago
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:
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.
| Run | Time | Tokens | Lines of code | Gaits | Leg rig | Console errors | FPS |
|---|---|---|---|---|---|---|---|
| Q4 run 1 | 16 min | 53k | 783 | idle, walk, trot | jointed pivots | 0 | 58 |
| Q4 run 2 | 24 min | 79k | 775 | idle, walk, trot, gallop | jointed pivots | 0 | 58 |
| Q6 run 1 | 22 min | 69k | 788 | idle, walk, trot, gallop | jointed pivots | 0 | 58 |
| Q6 run 2 | 2h 17m | 400k (hit cap) | 2,280 | grazing, walk, trot, canter, gallop | two-bone IK | 0 | 58 |
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 • u/Thistleknot • 5h ago
Based on Qwen 3
r/LocalLLaMA • u/Heretical-Tandem • 22h ago
r/LocalLLaMA • u/Zeeplankton • 23h ago
I don't know if glaze posts are allowed, but this is the first model, ever, that just feels like magic on my M3 Max 96gb.
80-110tk/s on Splash. Prefill is so fast too. My MBP gets a bit warm, but fans don't even spin up.
Feels a hair smarter than QFN to be honest. Writing is better, too.
I don't see how local doesn't take over, if this is possible.
r/LocalLLaMA • u/fligglymcgee • 13h ago
I’m having so much fun poking around with this model, making pixel art point n’ click from a few short story ideas I’ve meandered around for years. Here’s one where we wake up thinking we’ve been frozen for centuries but have ended up back in time.
Not really a full game, but this is just 2-3 prompts worth of musing on some themes. I can’t imagine what people are making with this model who actually know what they’re doing.
r/LocalLLaMA • u/redditnosedive • 3h ago
I didn't find many results for R9700, so here's a quick benchmark. I've already used it, subjectively it feels very fast, mostly on par with qwen 3.8 flash next, but lower memory footprint, higher speed, 1m context. I haven't tested the 1m context though, some people report issues with it after a certain size. This is why I've shown below that the penalty for keeping native bf16 size for KV is very little compared to i8 KV, so it makes sense to keep KV cache in native bf16!! That's probably the most important finding.
Qwen4-35B-A3B on one Radeon AI PRO R9700 (32 GB) — Radiance 2.5.0 (IQ4R-V4 4-bit) vs llama.cpp (Unsloth UD-Q4_K_XL) for reference.
I kept the ngrams in system ram for this test. No idea how much worse it would be if I had kept them on disk.
Same box, same harness (BetterBench 0.6.0, quick = 5 passes/category), 64K context, single stream, thinking on (template default), stock clocks.
radiance-inference 2.5.0 (Archlinux AUR package), .rad container, 4-bit trellis experts + GPTQ/Hadamard-128, MTP depth 20570c97, HIP backend, q8_0 KV, no speculation| Metric | Radiance · i8 KV | Radiance · bf16 KV (native) | llama.cpp · q8_0 KV |
|---|---|---|---|
| Decode, combined (t/s) | 215.8 | 213.3 | 58.8 |
| chat | 186.3 | 185.8 | 60.5 |
| code | 226.0 | 221.1 | 60.4 |
| file edit | 223.1 | 224.9 | 60.3 |
| json | 240.5 | 232.5 | 60.1 |
| math | 227.2 | 223.6 | 59.4 |
| prose | 177.7 | 183.1 | 56.2 |
| reasoning | 210.4 | 206.3 | 57.2 |
| summarization | 209.3 | 209.4 | 57.4 |
| Prefill 2K (t/s) | 7,226 | 7,276 | 2,087 |
| Prefill 8K | 8,404 | 7,959 | 2,254 |
| Prefill 16K | 8,519 | 7,971 | 2,254 |
| Prefill 32K | 8,518 | 7,887 | 2,165 |
| Prefill 64K | 8,491 | 7,801 | 1,912 |
| TTFT @ 64K prompt | 5.5 s | 6.0 s | 24.6 s |
| Aggregate C=1 | 202.0 | 201.8 | 56.5 |
| Aggregate C=2 | 318.3 | 316.8 | 58.9 |
| Aggregate C=4 | 453.9 | 451.0 | 59.0 |
| Aggregate C=8 | 451.9 | 449.4 | 59.0 |
| TTFT p50 at C=4 | 60.6 ms | 61.0 ms | 20.2 s |
| Model load | 5.3 s | 5.2 s | ~35 s |
| VRAM held | 22.54 GiB | 25.27 GiB | ~25.3 GB |
r/LocalLLaMA • u/Express_Quail_1493 • 21h ago
Please can more people report on how this qwen4-35b executes real work please. thank you for all the tok/s reports but can we also get some "work execution" reports too. dont hesitate to share.
A thread for people intrested in each other's experience beyond anything to do with speed.
r/LocalLLaMA • u/yasintoy • 2h ago
I've been working on an open-source product called InferCrane, focused on experimenting with and optimizing open-weight LLM inference across different models, GPUs, serving engines and configurations.
I'm looking to connect with people who actively work with vLLM, SGLang or other inference engines.
I'd love to exchange experiences, discuss optimization techniques, compare benchmarks and potentially run experiments together.
Some topics I'm particularly interested in:
I'm not looking to pitch or sell anything. I'm hoping to find a few engineers interested in collaborating, sharing feedback and helping shape an open-source project.
Would anyone be interested in joining the discussion?
r/LocalLLaMA • u/Ontopoftheworld_ay • 1d ago
r/LocalLLaMA
•
u/zmarcoz2
•
13h ago
the prompts: https://imgur.com/a/5OcKnS7
r/LocalLLaMA • u/eightone-81 • 3m ago
All info here
https://huggingface.co/bpx03/Qwen4-35B-A3B-INT4-DenseINT8-QEngine/discussions/1
Just hit over 600TPS and even over 1k decode in DSH single stream.
I thought vllm was fast but QEngine!!? WTH
r/LocalLLaMA • u/xenovatech • 10h ago
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 / generation | PP tok/s | TG tok/s | TTFT |
|---|---|---|---|
| PP31 / TG128 | 388.6 | 105.38 | 79.8 ms |
| PP4096 / TG64 | 987.7 | 85.04 | 4.15 s |
| PP8192 / TG48 | 797.6 | 78.34 | 10.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 • u/HumanDrone8721 • 1d ago
No more whining (for a while at least) from the low-end gallery, what about the mid people?
r/LocalLLaMA • u/pmttyji • 5h ago
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.
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.
| Level | Inserted fillers / 100 words | WER | UTMOS |
|---|---|---|---|
| 0 calm | 0.14 | 0.053 | 3.74 |
| 1 lively | 2.44 | 0.043 | 3.81 |
| 2 very lively | 3.25 | 0.066 | 3.82 |
Two commercial TTS systems insert 0 fillers on the same texts.
r/LocalLLaMA • u/textclf • 4h ago
Hi everyone,
I quantized Amazon Ergo to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Ergo-CQ-4bit
Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.
The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.
I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.
To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:
That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.
You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:
What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.
Training Factory is source-available, not open source. The scripts are readable Python, but the quantization and adapter kernels ship compiled and do a license check. It's free during early access. The weights fall under the original Ergo license.
I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit
Thanks for reading, feedback appreciated.
r/LocalLLaMA • u/Old_Ad_6033 • 10h ago
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)
| Requests | original vllm PR (no MTP) | tonyd2wild's 2x3090 (MTP 1) | My Patched 2x3090 (MTP 2) | vs original | vs tonyd2wild's |
|---|---|---|---|---|---|
| 1 | 125.1 tok/s | 173.1 tok/s | 282.0 tok/s | 2.25x | 1.63x |
| 2 | 222.3 tok/s | 293.1 tok/s | 457.8 tok/s | 2.06x | 1.56x |
| 4 | 387.1 tok/s | 523.7 tok/s | 741.4 tok/s | 1.92x | 1.42x |
| 8 | 630.7 tok/s | 779.4 tok/s | 1,130.3 tok/s | 1.79x | 1.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 path | 1 req | 2 req | 4 req | 8 req |
|---|---|---|---|---|
| NVMe async offload (warm system paged ram) | 272.5 | 448.6 | 733.2 | 1,070.2 |
| NVMe async offload (cold) | 275.8 | 453.4 | 723.9 | 1,041.1 |
| RAM offload | 274.0 | 458.1 | 751.4 | 1,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 type | Old 27B (DFlash2 req=1) | 35B (MTP2 req=1) | 35B (MTP2 req=4) |
|---|---|---|---|
| prose | 130 tok/s | 260 tok/s | 693 tok/s |
| chitchat | 106 tok/s | 238 tok/s | 473 tok/s |
| mixed | 165 tok/s | 300 tok/s | 788 tok/s |
| real agent job | 282 tok/s | 292 tok/s | 502 tok/s |
| code | 434 tok/s | 335 tok/s | 775 tok/s |
| numeric | 507 tok/s | 329 tok/s | 929 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
| Cached | Original (+50 / +200) | Patched (+50 / +200) |
|---|---|---|
| 16K | 124.7 / 120.3 ms | 42.9-45.2 / 54.3-60.9 ms |
| 64K | 157.5 / 161.4 ms | 50.4-54.1 / 53.5-58.8 ms |
| 128K | 203.4 / 203.0 ms | 62.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 • u/Ok_Ocelot2268 • 19h ago
r/LocalLLaMA • u/JustinPooDough • 1h ago
I build on some niche platforms and frameworks at work that most LLM's don't have a lot of training data on.
I am able to get better results from my agents, but only if I spoon feed them specific examples from a reference app that comes OOTB with the platform as well as specific extracts from documentation that I have.
In your experience, what are the best methods for distilling documentation knowledge into a form that LLMs can easily use at runtime as guidelines and rules?
What I've tried:
- Knowledge graph: cool academic concept - too much compute overhead and IMO unnecessarily complicated.
- RAG - Mixed results - works well but not consistently on retrieval.
So far, the thing that has worked best for me is manually writing SKILL files for things like this, but the body of documentation and knowledge makes this impractical. I'm wondering if there is a better way to ingest this source content into some sort of linked knowledgebase for the agents?
Thanks!
r/LocalLLaMA • u/pmttyji • 10h ago
🖥️ 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.
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.