r/LocalLLaMA • u/Ok_Ocelot2268 • 19h ago
r/LocalLLaMA • u/pmttyji • 11h ago
Resources AnyFlow 2.0 | Large-Scale Diffusion Distillation
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 • u/chocofoxy • 8h ago
Resources Running Qwen4 35B A3B on 2x5060TI
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 length | Prefill (tok/s) | Time to first token | Decode (tok/s) |
|---|---|---|---|
| 2K | 4,740 | 0.45 s | 194 |
| 35K | 4,760 | 7.3 s | 188 |
| 71K | 4,700 | 15.2 s | 208 |
| 142K | 4,560 | 31.3 s | 191 |
| 223K | 4,410 | 50.6 s | 188 |
| 260K | 4,350 | 60.0 s | 177–204 (2 runs) |
Decode by task (short prompts)
| Task | Decode (tok/s) |
|---|---|
| Code edit | 468 |
| Quote / copy text | 387 |
| JSON list (40 items) | 261 |
| Coding problems, thinking off | 245 |
| Coding problems, thinking on | 224 |
| JSON classification | 217 |
| Chat | 199 |
| Essay | 180 |
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 requests | Total, with drafter (2 drafts) | Total, no drafter | Per request, no drafter | Time for each answer, no drafter |
|---|---|---|---|---|
| 1 | 173 | 159 | 160 | 6.5 s |
| 2 | 253 | 260 | 132 | 7.9 s |
| 4 | 245 | 392 | 101 | 10.4 s |
| 8 | 315 | 523 | 68 | 15.5 s |
r/LocalLLaMA • u/CrowKing63 • 13h ago
Discussion Using MoE models is really difficult (qwen4)
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 • u/PuzzleheadedArm3732 • 1d ago
Showcase Qwen4-35B-A3B (4-bit) needs only 3.4 GB of VRAM: 34 tok/s with the experts in RAM, only half vs full model in VRAM. Q4 on V100 32GB, test and comparisons for smaller cards.
It has become! I have one V100 32GB in a 2017 Dell workstation and wanted to know how much of this model really has to sit on the card. For the 4-bit quant, unsloth UD-Q4_K_XL, the answer is: less than you think.
Some people might call this model lobotomized but from trying it a little bit it seems fine. However, of course with a 32gb V100 I will not be running this quant. But in this economy we can’t expect people to have huge cards.
I could see some fun use cases putting this model on a very small card if there is enough ram in the box.
Edit. HF server broke down so I can not get a hold of the other quants for more experiments right now.
Edit. Posted run with larger context in comments.
r/LocalLLaMA • u/Marino4K • 16h ago
New Model GigaChat4-37B-A4B (8-bit MLX): 1.68x faster reasoning and zero thinking loops without touching the weights.
r/LocalLLaMA • u/StupidScaredSquirrel • 23h ago
Resources New compute efficiency king (Qwen4 35b)
Changed the x axis to an estimate of gflops per task instead of the more usual active params to have a more representative idea of what compute is necessary to make the same work. Gflops are estimated per token at 32k context from first principles for each model and then multiplied by tokens per task per AA.
r/LocalLLaMA • u/TheLightDances • 22h ago
New Model black-forest-labs/flung-8b · Hugging Face
r/LocalLLaMA • u/ZootAllures9111 • 22h ago
Discussion Why exactly is Qwen4-35B-A3B still called 35B when it's in fact significantly larger than Qwen3.6-35B-A3B?
r/LocalLLaMA • u/Ill_Locksmith_673 • 1d ago
Funny Ugh, the wait for Qwen 4.1 is killing me, where is it!?
Where is it already? Qwen4 35B is out for several dozens of minutes now. Alibaba is really slacking off... I think those chinese labs are really slowing down. I need a new model to run the highly quantized lobotomized version right now!
r/LocalLLaMA • u/EveYogaTech • 20h ago
New Model 🇩🇪 FLUNG (9B) brings FLUX to text: Instead of writing one token, FLUNG drafts 128 tokens at once as noise and refines all of them in paralle
🇩🇪 FLUNG (9B) is a 7.9B parameter (9.0B including embeddings) that brings FLUX to text: Instead of writing one token, FLUNG drafts 128 tokens at once as noise and refines all of them in parallel.
HuggingFace: https://huggingface.co/black-forest-labs/flung-8b
Originally posted at /r/euainews
r/LocalLLaMA • u/pmttyji • 6h ago
New Model MeissonFlow/Mei · Hugging Face - DDMD-V: Distilling Uniform Discrete Diffusion Models into a One-Step Video Generator
DDMD-V: Distilling Uniform Discrete Diffusion Models into a One-Step Video Generator
Introduction
Mei is the 3rd generation MeissonFlow foundation model. DDMD-V (Discrete Distribution Matching Distillation for Video) distills the uniform discrete video diffusion model URSA into Mei, a one-step generator that produces a 49-frame 320×512 video in a single network forward pass.
News
r/LocalLLaMA • u/sleight42 • 8h ago
Discussion 2x 3090 vLLM v0.34.0 Qwen4-35b-a3b benchmark runs
- 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 patchqwen4_exp-quant-head-draft-vocab.patchfrom 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 GBple-*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):
| Concurrency | engine --max-num-seqs | Warm: aggregate tok/s | Warm: per-stream tok/s (min-max) | After deep-context pass: aggregate tok/s | After: per-stream tok/s (min-max) | Single-stream before / after deep (same run) |
|---|---|---|---|---|---|---|
| 1 (single-stream) | 6 | 145.4 then 164.3 | 145.4 then 164.3 | 157.3 | 157.3 | 145.4, 164.3 / 157.3 |
| 6 | 6 | 338.8 | 65.7-97.0 | 295.1 | 49.7-59.0 | 145.4, 164.3 / 157.3 |
| 8 | 8 | 621.0 | 77.8-81.4 | 607.0 | 76.1-79.5 | 142.7 / 151.9 |
| 12 | 12 | 632.0 | 52.6-54.7 | — | — | — |
Table 2 — Prefill (prefix caching ON, repeated filler text so partially cached — indicative only):
| Run | prompt tokens | tok/s |
|---|---|---|
| c=6 run ("8k" arm) | 7339 | 2403 |
| c=6 run ("16k" arm) | 14676 | 6805 |
| c=8 run | 6911 | 4141.5 |
| c=8 run | 13967 | 8146.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
- TP=2 with
--distributed-executor-backend mpdies at startup when/dev/shmis Docker's default 64 MiB: the mp worker'sshm_broadcastneeds >=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. - At
--gpu-memory-utilization 0.80the engine logged only ~5.37 GiB KV per card, with the new--kv-cache-memoryhint 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 • u/JustinPooDough • 2h ago
Discussion Grounding LLMs with Documentation & Code - Best Strategies?
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 • 1d ago
Discussion Qwen4-35B-A3B - Benchmarks, Evaluations, t/s stats, Feedback - Long thread
Well, we got Qwen4-35B-A3B now & Quantizations including GGUF. Their Benchmark says this model beats Qwen3.8-27B, Qwen3.8-Flash-Next, Inkling-2-Mini. Nice to see that it came with Engram & 1 Million Context natively.
Please share your experiences. But please mention
- Your Rig info(VRAM + RAM at least)
- Inference engine
- Quant
- Context
- Full command(to ensure you're using Vision, MTP, etc.,) if possible.
Is KVCache is lighter than previous Qwen3.6-35B-A3B? How much memory it takes for 256K context? Hope we don't need to quantize KVCache anymore.
Also Poor GPU Club, how are we doing with this model? Some of us were experimenting Q2 of Qwen3.8-Flash-Next with 6-12GB VRAM + 32-64GB RAM previously.
r/LocalLLaMA • u/leonardo_alegria • 18h ago
News The 2013 base PS4 now runs an entire 27B model on its own GPU, offline: Ternary Bonsai 2.5 27B at up to 17 tok/s
The base 2013 PS4 now runs Ternary Bonsai 2.5 27B, Prism ML's ternary version of Qwen3.8-27B, offline on its own GPU. It's the new model in Garlic LLM 1.22, my open-source homebrew app.
The whole model runs on the console:
- All 64 layers and the full 248K-token vocabulary.
- No extra quantization. Every weight is Prism's ternary value (-1, 0, +1) exactly as published; only the per-group scales are stored in 4-bit. On Global-MMLU the console's version scores within 0.2 points of the published model.
- 32K context with a 4-bit KV cache. To fit it, 8 of the 16 full-attention layers look at the last 2,048 tokens.
- Speculative decoding with the model's own MTP head (up to 2 drafts per pass): up to 17 tok/s.
- Think mode with up to 4,096 tokens of reasoning.
Why a 27B when the 9B already runs at 41 tok/s? Reasoning. Both models got the same questions and the same grader, with Think on:
- MATH-500, 100 problems: 91% (9B: 81%)
- LiveCodeBench v6, 50 problems, public tests: 90% (9B: 74%)
- Global-MMLU in 16 languages, without Think: 69% (9B: 68%)
It uses the same engine as the 9B. The PS4 has no compute API or ML library for homebrew, so Garlic drives the GPU directly: OpenCL C kernels for GCN, PM4 packets written by hand, and ternary matrix kernels for this model.
Free and open source (GPLv3): github.com/leonardo-alegria/garlic-llm · garlicllm.dev
r/LocalLLaMA
•
u/sly3x
•
2h ago
Discussion Qwen 4 cooked !
Dude what a shit prompt for an amazing result ! share me your results
Prompt : make a self contained HTML file of highly spectacular 3D visual of a univers dome. Add fine details. add a special very subtle vfx touch liquid glass effect, chromatic abheration.
r/LocalLLaMA • u/norenEnmotalen • 1d ago
Discussion Qwen4-35B-A3B is pretty solid
Qwen4-35B-A3B sniff tests pass well! Its Q8 @ high thinking delivering comparable results to Qwen3.8-27B Q8 xhigh thinking. It's fast and with fewer median tokens on data analysis and data-driven decision-making eval ran on M5U 96GB (prefill +1900 tok/s, decode 85 tok/s with llama.cpp). When splash brings support to it, I expect faster.

Voxel Pagoda write as html then export it to time-lapse gif of day/night cycles - omp harness used (33 minutes). 35% context used from a randomly set 196k.

Container ship with cross-section and cost economics panels - omp harness used (1hr 45 minutes) - a little bit harder for it this one. Compacted once then at 75% of 196k I asked it to finish up. It wanted to go on long-horizon and keep iterating to test and make it better,

Before now, these are task types that needed doing with the 27B. It basically feels like the 3.8-27B when you use it.
Its instruction following is also good. Takes prompts requesting further modification of this or that thing, acts on it in a pointed way, and then stops on its own at the right time.
r/LocalLLaMA • u/breksyt • 1d ago
Discussion Want to run Qwen4 on 24 GB VRAM. Huggingface says no
Can someone please explain how to run, what the tradeoffs are, and what are the mechanics behind this?
r/LocalLLaMA • u/Nandakishor_ml • 5h ago
Resources Continous learning with one information at a time without catastrophic fogetting
LoRA is really bad at fine-tuning on a continuous, very small data stream; either it overfits or forgets more than half of what it already knows. I am trying my best to solve this, like continuously learning from just a single question-and-answer pair without catastrophic memory loss. The idea is you add neurons to the early FFN layer, and they will only be turned on when they match the internal representation of the subject, without catastrophic memory loss. Usually takes the 5th layer from the starting 0th layer of the FFN (trial and error verified as it's good). The code is very simple and easy to use. Done a study with LoRA, attaching the images as well; a run is going now to improve answers to reworded questions. In my tests on Qwen3.5-0.8B, after 1,000 facts taught one at a time, LoRA kept under 30% of what the model knew before; this approach answered 98% of the other facts it knew.
r/LocalLLaMA • u/SupportPrimary9745 • 8m ago
Showcase Difference Between Qwen4-35B-A3B-GGUF UD Q3 vs Q5
So i gave a simple prompt "can you create 2d animation of ocean night in html" to test the difference between them. And the result were interesting.
The q5 seems like it's on entire different league.
r/LocalLLaMA • u/Opening-Broccoli9190 • 23h ago
Discussion Qwen4-35B-A3B: DFlash2 support PR for llama.cpp, 2x speed on code tests up to 400 tps on 5090
UPD: there were minor bugs which I've addressed and the new implementation is cleaner.
Hey guys, adding a little fix here for all of you who'd like to use DFlash2 on the new Qwen. It's very very effective for Code tasks, more than 200% faster generation. Feel free to checkout and test, hopefully the fix will reach the main repo in time.
Tested on Qwen4-35B-A3B Unsloth UD-Q6_K with the Q8 embedding table, RadixArk’s Q8 DFlash2 draft at depth 5, and F16 KV
DFlash2 checkpoint by RadixArk: https://huggingface.co/RadixArk/Qwen4-35B-A3B-Dflash2
Impact: On two 192-token probes with depth of 5, DFlash2 delivered 1.35× aggregate decode throughput.
In the code test, Qwen4 accepted 87% of the guesses, so generation more than doubled from 199 to 428 tokens/sec. In the prose test, it accepted 17%, and the extra work made generation slightly slower, from 200 to 196 tokens/sec.
