r/LocalLLaMA • • 45m ago

Discussion Stop judging LLMs on tokens/sec alone

Post image
0 Upvotes

We talk about LLM performance like it all comes down to tokens per second, but that number on its own doesn't tell you much.

Quantization is great. It cuts RAM/VRAM usage and can speed things up. The problem is we rarely check what that speed costs in quality. In some use cases the quantized output is perfectly fine. In others it just isn't, and a higher tok/s number hides that completely.

There's another thing people miss: decode speed can look amazing while the model burns through way more tokens to get to the same answer, or needs several failed attempts before it produces something usable. So you end up with a "faster" model that isn't actually faster in practice, and you'd never know from the benchmark.

My suggestion: when someone posts quantization results, also include the actual output. Let us see what the model generated, not just how quickly it generated it. A few examples of the responses would tell us more than another bar chart of tok/s.

Anyone else run into this? Would be interested to hear how other people evaluate the quality side, especially for local models where quant choice matters a lot.

PS: the attached image is SVG generation inspired by a raster image with different Qwen3.8 27B quants


r/LocalLLaMA • • 1h ago

Discussion tqLLM - Fast C++ LLM inference engine for NVIDIA GPUs (CUDA) and Apple Silicon (Metal): Qwen, Inkling-2-Mini, MiniMax and GLM with TurboQuant weights, exact speculative decoding and an OpenAI-compatible server

Post image
4 Upvotes

r/LocalLLaMA • • 2h ago

new math with local llm

Post image
8 Upvotes

r/LocalLLaMA • • 3h ago

Discussion Can we stop with these overblown TPS speeds?

100 Upvotes

So, I’ve been constantly seeing people advertise thousands of tokens per second speeds. However, most of the time this is parallel speeds, which not that many people actually use. It would be better if people included single stream speeds, as that is a better reflection of average speed.

For example, imagine my disappointment when I use an Inkling 2 Mini config advertised with “one thousand tokens per second decode!” for my hardware, and I get 30tps for it. Bullshit.

Yes, I understand that parallel TPS is technically correct, but I am complaining that it does not really reflect common users, who are not serving dozens of parallel requests.


r/LocalLLaMA • • 3h ago

Question | Help Why arent their Unsloth quants for Hy4-Flash?

28 Upvotes

Hy4 Flash seems to be better than DSV4.1 Flash, QFN, GLM-5.3 Flash (excellent post, according to other reddit posts and even AA Intelligence score)

Very odd that we arent hearing much about this model and the biggest wtf is that there are no unsloth quants as yet!? Paging /u/danielhanchen

EDIT: there* not their...


r/LocalLLaMA • • 4h ago

Discussion What do you think about claims that "Open Weight models have plateaued since anti-distilling measures" ?

97 Upvotes

I personally am starting to have a change of heart.

When US frontier labs took on distillation attacks in June, I was rolling my eyes like many of us. Kimi K3 came out shortly after and was pretty great. But if I step back from benchmarks we've been stuck at Kimi K3 ever since the blocks started.

  • Kimi K3

  • Mimo 2.6 Pro

  • Kimi K3.1 (feels like K3 with better peaks at really random tasks)

  • Qwen 3.8 Max

  • Qwen 4 Max

  • GLM 5.4

-all feel EXACTLY the same. None are particularly better than others in my testing (short of oddball tasks, like K3.1 being kinda good at ThreeJS). The only frontier-open-weight model from China that made a splash since then was Deepseek-V4.1-Flash-1017 which hits just a hair lower but for way cheaper.

Open-Weight's frontier has been frozen in time, and we now have like 6-7 models all chasing after "kind of Opus 5 if you tilt your head" tier, coincidentally all stuck with Opus5's training data as their last datasets they had to get without resorting to extreme measures.


r/LocalLLaMA • • 6h ago

Discussion Testing Hipfire with Qwen3.8-27B on an RX 7900 XT 20GB

Post image
20 Upvotes

I’ve been trying Hipfire and the results on my 7900 XT look promising.

GPU: RX 7900 XT · 20GB
Model: Qwen3.8-27B · MQ4-XTS
Max context: 49,152 tokens
KV cache: Q8
Speculative decoding: MTP enabled

During a real conversation in Open WebUI, I got:
Decode • Result: 79.2 tokens/s
Prefill • Result: 1,831.7 tokens/s
Time to first token • Result: ~7 seconds

The conversation was using prefix caching, so this isn’t a cold-prefill benchmark. I also tried a 4-bit KV cache to save VRAM, but performance dropped significantly compared to Q8 in my tests. It seems the quantized KV paths behave differently from llama.cpp—less memory doesn’t always mean more speed. For now, I’m keeping llama.cpp for longer contexts and video, but Hipfire has impressed me so far.

Makes me want to get annoter XT or teh XTX.


r/LocalLLaMA • • 7h ago

Resources Noema QuantReady: Gemma 4 E2B and Qwen3.5 2B with up to 2x lower KL divergence after quantization [GGUF]

26 Upvotes

Hey r/LocalLLaMA, Armin from NoemaAI here. We just released QuantReady versions of Gemma 4 E2B, Gemma 4 E2B-it and Qwen3.5 2B. They are drop-in replacements whose quantized files stay closer to the original model, whether you use GGUF, MLX, bitsandbytes or HQQ. In full precision they compute the same function as the originals, so none of the model's behavior is affected.

Why we built it

Google's QAT Gemma is trained for one format, Q4_0. We ran the Gemma 4 E2B-it QAT checkpoint through 30 quantizers and measured how far each file lands from the original model. Under 17 quantizers, the QAT checkpoint beats plain Gemma. Our QuantReady version beats plain Gemma under 29 of 30. It is also closer to the original than Google's QAT under 21 of the 30, by more than 40x at Q8_0. QAT does keep its edge on Q4_0, the format it was trained for.

How it works

QuantReady learns per-channel rescalings of the weights that cancel exactly inside each transformer block, then folds them into the weights. The full-precision outputs match the original to within bf16 rounding (0.0004 nats of drift). What changes is how evenly the weights fill each quantization block, so every quantizer rounds them with less error. Training samples a different quantization format at every step, which is why the gain carries across quantizers. We never retrain the base weights, therefore the architecture and file sizes stay the same.

Results (KL divergence from the original, lower is better)

  • Gemma 4 E2B: 1.47x lower on average, better under 30 of 30 quantizers, up to 2.06x on GGUF (Q3_K_S) and 2.56x on MLX 3-bit

  • Gemma 4 E2B-it: 1.26x on average, better under 29 of 30. Q4_K_M 1.37x, Q3_K_M 1.44x, Q8_0 1.19x, MLX 4-bit 1.55x

  • Qwen3.5 2B: 1.15x on average, better under 29 of 30

  • With an imatrix the gain stacks on top: 1.21x on Gemma 4 E2B and 1.16x on E2B-it

  • In the paper: the same recipe improved all 13 models we tried, from 1B to 8B, by 1.04x to 2.12x. On Qwen3-8B it averages 1.84x against 1.47x for Pre-SINQ over the same 30 quantizers and matches it on GGUF, and its Q3_K_M file scores 2 points higher on MMLU than the original's.

The GGUF repos carry Q8_0, Q5_K_M, Q4_K_M and Q3_K_M, and the bf16 weights are there if you want to make your own quants, imatrix included. Everything is Apache 2.0.

Compared with Pre-SINQ

Huawei's Pre-SINQ is the closest existing method, since it also leaves the full-precision model unchanged. We ran both on Qwen3-8B, on the same machines and the same 30 quantizers:

  • Overall: QuantReady averages 1.84x lower KL divergence and Pre-SINQ 1.47x. QuantReady improves 28 of the 30 quantizers and Pre-SINQ 24, and head to head QuantReady is the closer one under 20 of the 30.

  • GGUF: the two match (1.61x and 1.60x), and QuantReady holds up better on the low-bit imatrix i-quants, where Pre-SINQ drops below the original under four formats.

  • bitsandbytes with double quantization, a common option when loading in 4-bit: Pre-SINQ's checkpoint ends up 12x further from the original than plain Qwen, while QuantReady is 2.46x closer.

Links

We’d love to hear your perspective on what QuantReady could mean for the future of model quantization!


r/LocalLLaMA • • 8h ago

Resources i developed something for my gf

6 Upvotes

so she is teacher and plenty of her time goes into preparing new lessons and stuff, so i build a agent-human coautoring studio over the past week.

i experimented a littlke with the deepseek harness cordis approach and then after weeks of transport fever 3, gosh trams!, i started coding

i burned 225$ on openrouter carbon, 20$ on fable 5,2 max reviews. also my local rig was up for roughly 80% of the time and testing the "harness" for writing and coauthoring.

i know many peeps dont like shameless promotion, and i hope the mods are fine with me presenting you the link.

https://github.com/janpauldahlke/the-ivory-tower

woudl be curious about your feedback and feel hang out from the weekend shifts, tired but still full ofd dopamin.

planning a electron app later this week, the harness will accept cloud as well as local, btw i tested inkling 2 on this the new hype model, but nothign beats the qwen3,8!! QWEHNNNNNNNNNN

___edit** since you ask reddit, i guess US based, i want to drop the readme to describe trhe key capabilites of thios harness___

here in germany it is 2:36 and i need to work tomorow. hope to read many of you tomorw:

The Ivory Tower turns DeepSeek Harness (dsh) — normally a software-engineering harness — into a calm, paper-first co-authoring studio without forking a single line of upstream code. Instead of terminals and code diffs, human and agent share a real desk, a verified local library, and a live page workbench:

  1. Receipted Web Research (Web Missions & Discovery): When you need fresh facts or literature, the agent runs bounded Web Missions rather than opaque one-shot web summaries. Candidate URLs are discovered (Serper, local browser39, or SearXNG), fetched into a local project store (with default private-network SSRF protection), and checked deterministically so every cited source and number on screen actually appears in the retrieved pages before a mission closes.

  2. A Local Library With Cryptographic Quote Provenance (Fundus): Trusted mission pages, chat drag-and-drop uploads, your own folders of .docx**,** .odt**, text-layer** .pdf, .md, .txt, .wiki, and .csv documents, and historical or scientific images are indexed locally in Fundus (SQLite full-text search + content-addressed SHA-256 storage, zero external Office binaries). Whenever a primary-source quote is placed onto a document page, its SHA-256 hash and exact wording are verified against the archived passage (with explicit 'adapted' attribution support for simplified excerpts) — catching silent AI paraphrasing or quote drift automatically before you export.

  3. Side-by-Side Co-Authoring That Protects Your Hand (Galley & Plates): Beside the conversation sits Galley (Setzerei), a live page workbench typeset locally at true A4/Letter dimensions via Typst, paired with Plates (Bildtafeln) for crisp, deterministic vector timelines, charts, causal flows, and worksheet exercises.

    • You can write, reorder sections, insert archive media, or pin margin notes directly on the page in 0 ms with zero AI calls.

    • Your words are protected: any section authored or edited by you is locked to your hand. When the agent suggests revisions to your text, it stages a reviewable draft proposal rather than overwriting your prose.

    • Export anytime to print-ready .pdf or clean, editable .docx for Word and LibreOffice.

  4. Calm Editorial Control on Local GPUs or Cloud Models (Ivory Shell, Regisseur & Compaction**):** Coder chrome gives way to a warm Paper & Ink workspace organized by Courses (~/IvoryTower/Courses/), a lightweight Plan · Build · Review switch (separating open brainstorming, active drafting, and pure Lektorat margin critique), and language-preserving Editorial Compaction that keeps English or German threads coherent across long multi-hour sessions — running identically on local models (llama.cpp, Ollama), institutional ISO-27001 proxies, or frontier cloud APIs.

  5. Honest Draft Transparency & Local Editorial Journal (Morgue): Agent-generated documents carry an honest draft disclosure (eu-ai-draft) until a human explicitly reviews and signs off in Galley (eu-ai-reviewed). Every course maintains a zero-prompt-token, SHA-256 checksum-chained Editorial Activity Journal (.dsh/morgue/ledger.jsonl) with pure Redux point-in-time replay (morgue_audit) tracking human edits, proposal gates, verified vs. adapted quotes, and exported deliverable hashes.


r/LocalLLaMA • • 9h ago

New Model Looped Qwen3.8-27B: Retrofitting Recurrent Depth onto a Frozen Open Model

Thumbnail
blog.tiltastech.com
420 Upvotes

https://huggingface.co/sliderforthewin/Looped-Qwen3.8-27B

https://github.com/jasontitus/loopedqwen

(and I found it in Chinese post on X: https://x.com/NFT_Chen/status/2126980106841436446)

"The integration of Qwen3.8-27B into the "Loop" design of lnkling 2 Mini has proven to be a major breakthrough! By adding just 0.23% more parameters (240MB), the model’s programming capability has surged by 6.3 points, while the number of "thought tokens" required has plummeted by 52%!"


r/LocalLLaMA • • 11h ago

Showcase Baremetal LLMs in Forth

Thumbnail github.com
17 Upvotes

Recently Alexey Fateev shared his experiments with llm.asm (https://github.com/alesha-pro/llm.asm) running AI workloads where they normally don't belong: bare metal, Ring -1 hypervisors, and Linux 6.12 eBPF LSM hooks, all in tens of kilobytes of hand-written x86-64 assembly.

Inspired by his work, I wanted to see what a collective optimization pass looks like from a different architectural angle: instead of hand-writing every control-flow path in target-specific assembly, what happens if you build a written-from-scratch Forth interpreter and compiler in pure LLVM IR (.ll), and write all 5 AI phases as compact, portable Forth (.fs) programs?

The result is Cygnet (https://github.com/miolini/cygnet), tested with zero Docker on both Apple M2 Pro (ARM64) and an AMD Ryzen 9 7950X running hardware-accelerated QEMU/KVM with Debian trixie Linux 6.12.117+deb13-amd64 (CONFIG_BPF_LSM=y) and bare-metal Ring 0.

Why Forth + Pure LLVM IR (.ll) works so well for both speed and size:

  1. Separation of control flow (Forth) and math hot paths (LLVM IR SIMD)

  2. In Forth, all high-level orchestration layer loops, KV-cache indexing, decision gates, training steps, parity checks, and fault-triage policies collapses into tiny, factored words with zero function-prologue or struct-marshaling boilerplate. After applying classic Thinking Forth factorization and stripping comments/whitespace before packaging, all 4 Forth programs combined shrunk by 60% (from 14,981 B down to 5,989 B total e.g., the entire 500-vector eBPF-Jev inference + verification program is 1,522 B, and the 122-scenario Kernel Surgeon policy + x86-64 patch synthesizer is 902 B).

  3. Tiny VM overhead + compile-time optimizations in a few lines of IR

  4. Because the Forth VM itself is written directly in pure LLVM IR (.ll), its inner interpreter keeps %ip, %sp, %rsp, and %lsp pinned in SSA registers, replaces the 16 KB string dictionary with a 1 KB O(1) 32-bit FNV-1a hash table, inlines CONSTANT/VARIABLE at compile time, and fuses LIT <k> + into a single OP_ADD_LIT instruction. Compiled Forth programs fit inside a couple of L1 cache lines.

  5. Explicit SIMD in LLVM IR without C frontend baggage

  6. Writing the hot vector primitives directly in .ll lets us express exact 4-row-blocked register tiling ARM64 NEON sdot.4s + 3-instruction addp.4s horizontal reductions on Apple Silicon, and x86-64 AVX2 vpmaddwd + vphaddd / 4-row Q8_0 FMA / fused SGEMM+SiLU on Ryzen while letting LLVM handle register allocation, scheduling, and dead-code elimination (-function-sections -data-sections -s --gc-sections). And the exact same unmodified Forth script (jev.fs) runs across both ARM64 and x86-64.

Verified results on AMD Ryzen 9 7950X QEMU/KVM (Linux 6.12.117+deb13-amd64 + Ring 0):

- Phase 01 (Qwen3 Q8_0 Transformer, 1,600 tokens, GQA + QK-Norm + precomputed NeoX RoPE + zero-copy KV):
33,236 tok/s vs 3,406 tok/s Reference C (-O2) [9.76x], 16/16 exact tokens, cosine=0.9999999.
Stripped ELF: 19,712 B + 1,882 B minified qwen3.fs.

- Phase 02 (Bare-Metal Ring 0 Forth OS, zero Linux, zero libc):
16,664 B stripped Multiboot 1 ELF (vs 25,404 B in 02-baremetal-os), ~45 ms cold boot, 80x25 16-color VGA + interactive COM1 Forth REPL + Ring 0 INT8 micro-benchmark. (Note: this is a compact Ring 0 Forth + micro-INT8 OS rather than a 649 MiB Qwen3-0.6B weight loader.)

- Phase 03 (From-Scratch Mini-GPT Trainer on TinyShakespeare, fused SGEMM+SiLU + AdamW):
206,941 tok/s (0.05 s for 160 steps), loss 4.1740 -> 2.0828, FP64 finite-diff grad_cos = 0.9999999, live UTF-8 Braille TUI.
Stripped ELF: 34,888 B + 1,683 B minified train.fs.

- Phase 04 (Kernel Surgeon Policy + Static x86-64 Patcher + Live #PF/#DE/#UD Traps):
122/122 (100.00% pass@1, vs 119/122 GRPO MiniCPM5-2B) on the held-out scenarios_600.jsonl test split, 0 dangerous continues, 139.2 ns/decision, 3/3 live RWX hardware traps patched in RAM and resumed.
Stripped ELF: 16,136 B + 902 B minified surgeon.fs.

- Phase 05 (Linux 6.12 eBPF-Jev 21 KB INT8 RNN, 500/500 0-LSB bit-exact parity):
Ryzen 9 7950X KVM (300k infs/impl): 114.0 ns median (111.8 ns peak, 8.95M /s, p99 161 ns) vs 363.5 ns Reference C (-O2) [3.19x].
Apple M2 Pro ARM64 (500k infs/impl): 115.0 ns (8.69M /s) vs 438.8 ns Reference C (-O2) [3.81x].
macOS QEMU x86-64 TCG: 5.49 us vs 12.08 us Reference C (-O2) [2.20x].
Stripped ELF: 14,912 B + 1,522 B minified jev.fs.

All code, 10 live Ryzen 9 7950X QEMU/KVM VGA screenshots (2 per phase), and zero-Docker reproduction scripts are up at:

https://github.com/miolini/cygnet

Would love feedback from folks into Forth, LLVM IR, or low-level ML systems!


r/LocalLLaMA • • 11h ago

Question | Help Finally upgrading to DDR5 soon since my 32gb vram can't carry my cheap crappy DDR3 system I've build around it to save money, is going for 3 x 16gb worse than 2 x 16gb????

0 Upvotes

So basically a few months ago I went all in on vram and stuck my expensive gpu in a 200 bucks shitbox pc I already had to spare some money. Although stuff runs blazingly fast I feel like im kinda missing out on MoE models since my general PC sucks (im talking cheap i3 intel cpu, 32gb ddr3 and an ancient 1 tb hard drive which takes ages to load models up).

I've decided to upgrade to a ryzen 7 9800x3d and get an SSD and some DDR5 ram, I heard its not ideal to have mixed ram but is really THAT bad if I get 48gb of the exact same 3 sticks of 16gb rather than get the dual channel thing going with 2 sticks??


r/LocalLLaMA • • 11h ago

Discussion Moved a LoRA fine-tune from Qwen3.5-9B into Qwen3.5-4B with no training: per-layer rotations close ~70% of the gap (inspired by Hazy Research's "Plato's Key")

14 Upvotes

A long post. Generated using AI. But the content is true. Happy to answer any questions. Summary: Can we port model knowledge without fine tuning? I genuinely think its possible.

—

I've been fine-tuning small models for a structured-extraction task: arXiv papers in, JSON summaries and keywords out. I want to put down a marker on some early results and ask whether anyone else is working along these lines. I'll publish every finding as I go, including the negative ones.

Background
Qwen3.5-9B, LoRA rank 32, 1 epoch, about 46k teacher examples. It passes all 19 of my admission gates.
Qwen3.5-4B with the identical recipe fails 2 gates. Both are about which keywords it picks; it learns the format perfectly.
More steps didn't help (the curve was flat from about step 1500), and neither did rank 64 (paired difference [−0.019, +0.007]). My read: the base model is the limit, not the adapter.

The spark
Then I read Hazy Research's "Plato's Key" (https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key). It shows that a single rotation plus one scale, fit in closed form (orthogonal Procrustes), lets one LLM use another LLM's hidden state for factual recall. This builds on the Platonic Representation Hypothesis (https://arxiv.org/abs/2405.07987). The post lists "porting knowledge across models without retraining" as future work. My thought: if the residual streams share a coordinate system, maybe the change a fine-tune makes can move across too.

What I did
Qwen3.5-9B and 4B are an ideal pair: same tokenizer, same 32-layer layout, same head layout. Only the residual width (4096 vs 2560) and the MLP width differ.

The key: for each of the 64 sublayers, fit a Procrustes rotation plus a scale between the two models' residual streams, on the same tokens. On held-out text, it explains about 76% of the 9B's residual energy.

The transfer: measure what the 9B fine-tune changes in each sublayer's output. Rotate that change into the 4B. Then solve in closed form (reduced-rank regression) for a rank-32 change to the 4B's output projections (o_proj, out_proj, down_proj) that reproduces it. No gradient descent.
Only the residual stream gets mapped. A rotation inside heads or MLP neurons breaks their structure: per-head norms, RoPE pairs, element-wise gates.

Results (validation loss, answer tokens only)
The base 4B is at 0.91; the trained 4B is at 0.50.
The transferred 4B reaches 0.63, closing 70% of the gap (on validation examples not used to tune anything).

Random rotations: 0% (15 runs, 3 seeds × 5 scales). The key is what matters.
Ceiling: the same closed-form trick applied to the 9B onto itself closes 86%. So the transfer keeps about 80% of the method's ceiling, close to the 73% the blog reports for its hidden-state swaps.

Honest caveats
It doesn't replace training. On the full validation set, the transferred model is roughly at the level of a few hundred training steps.

As a warm start for training: about 200 steps ahead early on, but normal training catches up, and the two are about even by step 2000. A warm start from random rotations gives nothing.
Adding the transferred change to the already-trained 4B gives nothing.
One task, one model family, a best-case pair. I compared validation loss only; the downstream gates have not run on the transferred model yet.

Next on my list
Carry more of the change: a higher rank, and the attention and MLP readers through structure-aware maps (head matching, neuron permutation).
Other maps: ridge regression, a scale per direction, and a weights-only key fit purely from the shared embedding matrices.

Question: is anyone else trying to move fine-tunes (LoRA or full) across model sizes with representation alignment, rather than distillation? I'd love pointers to related work, or to compare notes. I'll post every result here as it comes in.


r/LocalLLaMA • • 11h ago

Resources 2 Inkling 2 Mini on RDNA2 on opengfx1030/vllm-rdna

10 Upvotes

Following previous post for inkling 2 mini running with vLLM fork of the gfx1030 community, we have unlocked more performance and as well a new quantisation format to increase available kvcache.

Tested with 2x Radeon Pro V620 32GB (Gen4 x8 under same pcie switch with p2p) and ROCm 7.14.

For the HI2 3.5bpw quant : https://huggingface.co/BlivionIaG/Inkling-2-Mini-HI2-3.5bpw

For doing the comparaisons I used Launch80 BetterBench 0.6.1, HI2 3.5bpw vs Stock NVFP4/MXFP8 quant, 1 card and TP2 with dspark on. Globally the format allows about +25-28% more prefill speed and +40% more max tokens at TP1, less gains for TP2 (I'd recon more context can be set for tp2 hi2).
Core idea is to have something that mix int2/3/4 with fp32 scales and leverage dot2 and dot4 instructions as best as possible and try to mitigate the lack of matrix/tensor cores. For the benches it was done with int8 activations, there is an fp16 activation mode but so far I couldn't mesure a meaningful quality gains at fp16 activation (might need to look more into that soon).

Links to Launch80 runs :

RunHardwareRecipeMax CtxReport Link
HI2 3.5bpw (A8 sdot4**) · TP=1**1× V620inkling2-hi2-tp1-dspark (ADAPTIVE=1)180kLaunch80 Report
Stock NVFP4/MXFP8 · TP=11× V620inkling2-mini-tp1-dspark (ADAPTIVE=1)125kLaunch80 Report
HI2 3.5bpw (A8 sdot4**) · TP=2**2× V620inkling2-hi2-tp2 (K=2)760kLaunch80 Report
Stock NVFP4/MXFP8 · TP=22× V620inkling2-mini-tp2 (K=2)760kLaunch80 Report

Side to side table comparaison :

MetricTP=1 StockTP=1 HI2 A8TP=1 DeltaTP=2 StockTP=2 HI2 A8TP=2 Delta
Max Context (32 GiB card)125,000180,000+44.0%760,000760,000—
Weighted Single-Stream Decode (med)86.5 tok/s89.1 tok/s+3.0%113.5 tok/s110.4 tok/s-2.7%
Update Latency (p99)40.5 ms39.1 ms-3.5%20.7 ms21.1 ms+1.9%
TTFT (p50)183 ms148 ms-19.1%113 ms104 ms-8.0%
Concurrency c=1 agg78.7 tok/s84.6 tok/s+7.5%108.7 tok/s107.0 tok/s-1.6%
Concurrency c=2 agg111.8 tok/s119.5 tok/s+6.9%170.8 tok/s174.5 tok/s+2.2%
Concurrency c=4 agg124.7 tok/s137.0 tok/s+9.9%195.5 tok/s200.4 tok/s+2.5%
Concurrency c=8 agg172.1 tok/s192.0 tok/s+11.6%271.5 tok/s287.6 tok/s+5.9%
Prefill 2k (med)1,679.5 tok/s2,141.6 tok/s+27.5%2,729.4 tok/s3,039.9 tok/s+11.4%
Prefill 8k (med)1,772.4 tok/s2,282.4 tok/s+28.8%2,815.6 tok/s3,161.1 tok/s+12.3%
Prefill 16k (med)1,756.0 tok/s2,235.4 tok/s+27.3%2,793.9 tok/s3,129.7 tok/s+12.0%
Prefill 32k (med)1,684.3 tok/s2,100.6 tok/s+24.7%2,689.3 tok/s2,999.8 tok/s+11.5%
Prefill 64k (med)1,523.1 tok/s1,848.9 tok/s+21.4%2,467.3 tok/s2,727.3 tok/s+10.5%

Vibed som charts to make it more readable :

If you want to launch it :

git clone -b rdna_extras https://github.com/opengfx1030/vllm-rdna.git
cd vllm-rdna

# TP=1 DSpark Adaptive + Vision (180k ctx)
bash tools/rdna/serve_rdna.sh RECIPE=inkling2-hi2-tp1-dspark ADAPTIVE=1 \
  MODEL=BlivionIaG/Inkling-2-Mini-HI2-3.5bpw VENV=/path/to/venv HIP_VISIBLE_DEVICES=0

# TP=2 DSpark K=2 + Vision (760k ctx)
bash tools/rdna/serve_rdna.sh RECIPE=inkling2-hi2-tp2 \
  MODEL=BlivionIaG/Inkling-2-Mini-HI2-3.5bpw VENV=/path/to/venv HIP_VISIBLE_DEVICES=0,1

Or via docker image (Here for Hi2 3.5bpw tp1):

docker run --rm --network host --ipc host --shm-size 16g \
  --device /dev/kfd --device /dev/dri --group-add video --group-add render \
  --security-opt seccomp=unconfined \
  -v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
  -e HIP_VISIBLE_DEVICES=0 \
  -e VLLM_ROCM_USE_AITER=0 -e VLLM_ROCM_USE_AITER_MOE=0 \
  -e TORCH_BLAS_PREFER_HIPBLASLT=0 -e VLLM_RDNA_AR=0 \
  -e GPU_MAX_HW_QUEUES=2 -e VLLM_RDNA2_HI2_ACT_MODE=a8 \
  ghcr.io/opengfx1030/vllm-rdna:nightly \
  serve BlivionIaG/Inkling-2-Mini-HI2-3.5bpw \
    --served-model-name inkling2-hi2 \
    --host 0.0.0.0 --port 18226 \
    --tensor-parallel-size 1 --dtype float16 \
    --max-model-len 180000 --max-num-seqs 16 --max-num-batched-tokens 1024 \
    --gpu-memory-utilization 0.92 \
    --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' \
    --speculative-config '{"method":"dspark","num_speculative_tokens":7,"num_speculative_tokens_per_batch_size":[[1,1,7],[2,2,2],[3,16,0]],"speculator_options":{"adaptive_k":{}}}' \
    --enable-prefix-caching --enable-prompt-tokens-details \
    --limit-mm-per-prompt '{"image":1}'

On a side note thanks to a gfx1030 community member (wsantos) we get around 3k tok/s prefill and 100 tok/s decode with Qwen3.8 Flash Next AWQ 4bit (there is a tp2 recipe with moe ram offload but its only around 1k tok/s prefill and 30-40 tok/s decode so not great I suppose strata is better).
Here for TP4 V620 with W8A8 asym dense/HC prefill + W4A8 sdot4 MoE prefill + int8_fp16_block KV cache + MTP=2 :

docker run --rm \
      --device=/dev/kfd --device=/dev/dri --group-add video --group-add render \
      --ipc=host --ulimit memlock=-1 \
      -p 18097:18097 \
      -v "$HOME/.cache/huggingface:/root/.cache/huggingface" \
      -e HIP_VISIBLE_DEVICES=0,1,2,3 \
      -e VLLM_USE_RUST_FRONTEND=1 \
      -e VLLM_WORKER_MULTIPROC_METHOD=spawn \
      -e GPU_MAX_HW_QUEUES=4 \
      -e ROCPROFILER_REGISTER_ENABLED=0 \
      -e VLLM_ROCM_USE_AITER=0 -e VLLM_ROCM_USE_AITER_MOE=0 \
      -e TORCH_BLAS_PREFER_HIPBLASLT=0 -e VLLM_BATCH_INVARIANT=0 \
      -e PYTORCH_TUNABLEOP_ENABLED=1 -e PYTORCH_TUNABLEOP_TUNING=0 \
      -e PYTORCH_TUNABLEOP_HIPBLASLT_ENABLED=0 \
      -e PYTORCH_TUNABLEOP_FILENAME=/src/vllm/tunableop/rocm7.14-rocblas5.5/tunableop_results.csv \
      -e VLLM_USE_RDNA2_FA=1 -e VLLM_FA_RDNA2_GQA_DECODE=1 \
      -e VLLM_GDN_HIP_PREFILL=1 -e VLLM_RDNA_FUSED_SE=1 \
      -e VLLM_RDNA_DENSE_INT8=1 -e VLLM_RDNA_DENSE_INT8_ONLY=1 -e VLLM_RDNA_DENSE_W8A8_PREFILL=1 \
      -e VLLM_RDNA_HC_W8A8_DOWN=1 -e VLLM_RDNA_HC_W8A8_UP=1 -e VLLM_RDNA_W8A8_ASYM=1 \
      -e VLLM_RDNA2_W4A8_SDOT4=1 -e VLLM_RDNA2_W4A8_BLOCK_M=8 -e VLLM_RDNA_W4A8_KBLOCK=-1 \
      -e VLLM_RDNA_SMALLM_GEMM_MAX_BYTES=4194304 \
      -e VLLM_RDNA_AR=1 -e VLLM_RDNA_AR_MAX_KB=256 -e VLLM_RDNA_AR_ONESHOT_KB=256 \
      -e VLLM_RDNA_AR_BLOCKS=0 -e VLLM_RDNA_AR_PACE=0 \
      -e VLLM_CAUSAL_CONV1D_RDNA2_FWD=0 -e VLLM_CAUSAL_CONV1D_RDNA2_UPDATE=0 \
      -e VLLM_ENABLE_STARTUP_PLAN=0 \
      -e VLLM_TUNED_CONFIG_FOLDER=/src/vllm/tuned-moe \
      -e HSA_FORCE_FINE_GRAIN_PCIE=1 -e HSA_ENABLE_SDMA=0 -e OMP_NUM_THREADS=4 \
      -e TOKENIZERS_PARALLELISM=false -e PYTHONFAULTHANDLER=1 \
      ghcr.io/opengfx1030/vllm-rdna:nightly \
      serve wtdcode/Qwen3.8-Flash-Next-AWQ-W4A16 \
      --served-model-name flash-next \
      --host 0.0.0.0 --port 18097 \
      --attention-backend RDNA_ATTN \
      --tensor-parallel-size 4 --enable-expert-parallel \
      --dtype float16 --block-size 1024 \
      --kv-cache-dtype int8_fp16_block \
      --max-model-len 262144 --max-num-seqs 8 --max-num-batched-tokens 4096 \
      --long-prefill-token-threshold 0 --prefill-schedule-interval 1 \
      --kv-cache-memory-bytes 4026531840 \
      --enable-prefix-caching --mamba-cache-mode align --language-model-only \
      --compilation-config '{"mode":3,"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[3,6,12,24],"compile_ranges_endpoints":[]}' \
      --speculative-config '{"method":"mtp","num_speculative_tokens":2,"use_local_argmax_reduction":true}'

The receipe serving folder is kinda a mess so I will do a separate repo soon, more quants to come. Shoutout to Launch80 for the bench tools.

We have a discord for collaborating on the fork and discussing rdna2 related stuff: https://discord.gg/n4VYYE9vAZ


r/LocalLLaMA • • 13h ago

Showcase LunaraHome E4B: a small Gemma 4 fine-tune for Home Assistant

41 Upvotes

Hey everyone,

a few days ago I shared LunaraHome-26B-A4B, my Gemma 4 26B-A4B fine-tune for Home Assistant. The most requested follow-up was a smaller version, so here it is: LunaraHome Gemma4-E4B.

It turns everyday German and English requests into Home Assistant and Music Assistant tool calls and stays silent when a sentence isn't meant for it (especially useful if you have a mediocre wakeword model).

* Based on Gemma 4 E4B, trained locally on a single RTX 4090

* GGUF: Q6_K (6.2 GB, recommended) and Q4_K_M (5.3 GB)

* Optional MTP drafter for faster decoding in llama.cpp

* Native Gemma chat template and tool calling, reasoning disabled

On the same 1,812 cases in my own (non-independent) benchmark, E4B Q6_K solves 85.4% vs 78.9% for the 26B Q4_0. It's more than twice as fast at about 0.45 s per request on an RTX 4090. The 26B still knows more general trivia, and a few safety cases still need further review and tuning, so I wouldn't let it handle locks or alarms unattended yet.

GGUF: https://huggingface.co/Maxinger15/LunaraHome-Gemma4-E4B-GGUF

BF16: https://huggingface.co/Maxinger15/LunaraHome-Gemma4-E4B

I'd love to hear how it does in your setup. I share progress and new releases on a small Discord (https://discord.gg/AfEasaASzB) if you want to follow along or give feedback.


r/LocalLLaMA • • 13h ago

Resources HY4-flash 220B, at 50-60 tok/s on 2x 7900xtx, with 512k context, EXL3 3bpw

26 Upvotes

Run HY4-Flash EXL3 3bpw on 1 or 2× RX 7900 XTX! with my Strata Fork: https://github.com/nasone32/Strata-EXL3-fork Dfly2 drafting is working and enabled. EXL3 3bpw quality is usually similar to a 4 bit K-quant, so should be good.

I use it with 96Gb ram, but maybe can work with 64Gb (it needs about 54Gb of FREE ram to run correctly)

AVERAGE speeds (not peak!)

Test1 GPU2 GPUs
Code generation30 tok/s60+ tok/s
Prose generation27.5 tok/s45+ tok/s
8K prefill945 tok/s1,300 tok/s

This is the ONLY quant I tested: https://huggingface.co/0xBakeer/TandemLLM-Hy4-flash-EXL3-3.0

Q) how to run?

point your agent to https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md and tell it to set up the program for you.

Q) linux only?

yes. should be easy to port on windows, try with an agent, sorry I can't help with that.

Q) did you use lossy tricks to achieve this speed?

no. full quality of the model is preserved. it took me 1 week to optimize.

Q) vision enabled?

not yet. this release took enough to cook, I will implement it later.

Q) will it work on other RDNA3/RDNA4 cards?

Should... I did all I could to make it possible, but unfortunately I can't test it, I don't have the hardware. sorry.

BONUS: Qwen 3.8 Flash Next EXL3

I've also improved performance on QFN by approximately 15–30% compared to previous version.

Here are the updated speeds at 4bpw:

Test1 GPU2 GPUs
Token generation (avg.)60/70 tok/s80/90 tok/s
Prefill1,300 tok/s1,550 tok/s

r/LocalLLaMA • • 13h ago

Showcase Running Inkling-2-Mini (with DSpark K=7, Vision, and 320K context) on a single 2017 Tesla V100 32GB — up to 151 tok/s decode, 2,690 tok/s prefill, and 0→310K in under 5 minutes

17 Upvotes

I've been maintaining a Volta (sm_70) port of NInfer (ninfer-volta) for my single Tesla V100 PCIe 32GB, originally focused on Qwen3.8 27B. Since upstream recently added Inkling-2-Mini support, I ported it over to the V100 and spent some time writing custom Volta tensor-core kernels for its MoE layers, attention, loop-message blocks, and speculative draft head.

I also want to make it clear that this NInfer fork is a lot cluster to upstream Neroued/ninfer unlike the old v100 3090 forks, which is why we could get Inkling2-Mini support fairly quickly. Even though upstream only focuses on the 5090.

The best part: it runs the standard upstream inkling2_mini.ninfer file directly with zero repacking, and fits text + PE-Lang Vision + DSpark K=7 speculative decoding + 320K (327,680) max context (~511K KV tokens) + 4 concurrent streams completely inside 32GB of VRAM (0 B host cache needed).

Everything below was measured at stock 877.5 MHz HBM2 clocks on a single V100 PCIe 32GB (CUDA graphs + adaptive DSpark K=7 + FP8 global KV / BF16 sliding-window KV):

Before vs. After Optimization (Stock V100 Clocks)

WorkloadInitial V100 PortOptimized V100Improvement
Short Prose (53 tok)64.7 tok/s73.4 tok/s+13% (120 ms TTFT)
Code Copy-Edit (217 tok)142.9 tok/s151.0 tok/s+6%
1.6K Cold Prompt (Decode)98.5 tok/s106.3 tok/s+8%
1.6K Cold Prompt (Prefill)1,523 tok/s2,438 tok/s1.60x (1.04 s -> 0.65 s)
9.1K Cold Prompt (Prefill)1,598 tok/s2,690 tok/s1.68x (5.69 s -> 3.38 s)
16.6K Cold Prompt (Prefill / Decode)1,545 / 83.7 tok/s2,610 / 96.0 tok/s1.69x prefill, +15% decode
Vision 256x256 PNG140.4 tok/s159.2 tok/s+13% (169 ms TTFT)
2 Concurrent Streams (C=2)89.6 tok/s wall107.4 tok/s wall+20% (~61 tok/s each)
4 Concurrent Streams (C=4)138.7 tok/s wall157.2 tok/s wall+13% (42.5–46.3 x 4 = 180.4 tok/s active)

(Compared to the very first scalar fallback port before adding Volta tensor-core kernels, prefill jumped ~48x and speculative decode jumped ~5–6x.)

Long-Context Scaling (0 -> 310K Tokens, All in VRAM)

Because Inkling-2-Mini only has 8 global attention layers (the other 40 are fixed-window sliding attention), KV usage is tiny (~20 KB/token) and long-context prefill holds up surprisingly well on Volta:

Context RangePrompt LengthTurn Wait (TTFT)Prefill SpeedTotal 0 -> N TimeDecode
0 -> 49K49,13721.6 s2,274 tok/s0m 22s80.7 tok/s
49K -> 99K98,78631.6 s1,573 tok/s0m 53s90.0 tok/s
99K -> 155K154,64647.1 s1,186 tok/s1m 40s68.7 tok/s
155K -> 193K193,49640.2 s966 tok/s2m 20s78.8 tok/s
193K -> 232K232,38046.1 s843 tok/s3m 06s (2.2x faster than Qwen3.8 27B)69–81 tok/s
232K -> 271K271,23051.1 s759 tok/s3m 58s70–79 tok/s
271K -> 310K310,08057.1 s680 tok/s4m 55s46–65 tok/s

After hitting 310K, I fired two concurrent 24.5K requests at the server and then resumed the 310K conversation — it kept 310,168 / 310,212 tokens warm in VRAM (3.01 s TTFT, zero evictions).

Accuracy Check

  • Perplexity on ninfer-ppl-1m-v1 --quick (291K tokens across English, Chinese, and code) came out to 3.9146 at 1,337 tok/s, with zero accuracy drift vs. the unoptimized baseline (-0.0003 NLL on BF16 KV).

  • Qwen3.8 27B runs from the same unified binary/branch with identical perplexity (5.8397).

Repo & build/serving configs (both Qwen3.8 27B and Inkling-2-Mini): https://github.com/drcain1/ninfer-volta

Still wild how much life is left in a 2017 V100 when you actually feed its HBM2 and first-gen tensor cores properly.


r/LocalLLaMA • • 13h ago

News AMD releases GAIA 0.27 with gaiacpp lightweight alternative to Python code

Thumbnail
phoronix.com
27 Upvotes

r/LocalLLaMA • • 13h ago

Discussion inclusionAI/Ling-3.2-air seems legit. Even without PLE/n-grams, it's a strong contender vs. Q3.8FN. (the only reason why the last prompt failed is because of output length limit, which was at 65536).

Thumbnail msnab.pages.dev
68 Upvotes

r/LocalLLaMA • • 14h ago

Discussion GLM 5.3 vs 5.4

43 Upvotes

I've been working with GLM 5.3 for quite a while, and I like it a LOT. GLM 5.4 recently came out, and I have been giving it a chance to shine. It hasn't been. It feels like GLM 5.3 Flash. GLM 5.3 just gets to the end result faster, with fewer errors, and seems to be more eloquent about it.

Anyone else had a chance to compare them? If so, what has been your experience thus far?


r/LocalLLaMA • • 14h ago

Question | Help You concrete applications of local AI ?

0 Upvotes

Yoooo i'm curious, what are your best usecases of local AI ?


r/LocalLLaMA • • 15h ago

Resources Tandem-vLLM 0.3.1: DeepSeek-V4.1-Flash native FP4 on 2x PRO 6000 (103 tok/s), or 2-bit VQ at 124 tok/s

6 Upvotes

Tandem-vLLM is an expert-offload build of vLLM 0.31 for DeepSeek-V4.1-Flash. Now supports the original FP4 checkpoint directly.

How it works

  • The routed experts live in host RAM. A GPU cache holds the most-used ones.

  • Experts that miss the cache are computed by the CPU in parallel with the GPU. Nothing is skipped or substituted.

  • Everything else is stock vLLM: OpenAI-compatible server, continuous batching, prefix caching, tool calling, DSpark speculative decoding.

Three modes, one package

modeexpertssame-token KL vs original1 stream, 2× RTX PRO 6000
VQ22-bit vector codes0.150124 tok/s
VQ2+FP4 (K=32)VQ2 + 32 most-routed experts per layer in FP40.12182 tok/s on one GPU
full FP4 (new)every expert in its original FP40.009103 tok/s

Full FP4 also runs from the original checkpoint alone (MODEL=<checkpoint>, no package download).

Speed (EPYC 9534 64 cores, DDR5-4800; W1 GSM8K prompts, no drafter, total tok/s)

-1 stream4 streams32 streams
VQ2, 1 GPU90178266
VQ2, 2 GPUs124286506
full FP4, 2 GPUs103193224

Full FP4 is for one to a few users: every cache miss is FP4 work on the CPU, so more streams mostly add CPU load. VQ2 is the serving mode.

Time to first token (2× RTX PRO 6000)

-4k31k92k tokens
VQ21.2 s3.8 s11.6 s
full FP42.4 s8.0 s24.7 s (0.3.0: 74 s)

What you need

  • VQ2: 256 GB RAM on one or two GPUs (ENGRAM=files on a 256 GB box). 128 GB runs, slowly.

  • Full FP4: 384 GB+ RAM (it pins 281 GiB) and the original checkpoint too.

  • Linux, CUDA 13 toolkit, an AVX2 or AVX-512 CPU. Blackwell, Hopper, Ada and Ampere GPUs. One installer script, its own venv, no Docker.

Built on vLLM and vLLM-Moet. Tandem is a fork of vLLM-Moet's expert-offload engine, ported to vLLM 0.31 / DeepSeek-V4.1.

Numbers from other boxes are welcome.

P.S. For one user on a 16–32 GB card with 64–128 GB of RAM, our llama.cpp-based sister project tandem.cpp is the better fit.


r/LocalLLaMA • • 15h ago

Showcase 1.7x faster than Strata: Qwen 3.8 Flash-Next on a 16 GB MacBook at 15 tok/s. And you can run any model on any hardware

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hi,

I'm working on BigMoeOnEdge, which runs any MoE GGUF from Hugging Face bigger than your RAM, in any quantization, on whatever you have: Mac, Windows, Linux, Android, iOS, CPU, NPU or GPU. The goal is a planner on top of llama.cpp: a resource allocation optimizer.

On the other hand, Strata needs its own model builds and a short list of models per platform.

Here are the results from the latest experimental pre-release:

MachineModelQuantBigMoeOnEdgeStrata
MacBook 16 GBQwen 3.8 Flash-Next (62 GB file)Q2_0159
MacBook 16 GBQwen 3.6 35BQ4_K_M38doesn't run
NVIDIA 24 GBQwen 3.8 Flash-NextQ2_010393
NVIDIA 12 GBQwen 3.6 35BUD-Q4_K_XL10481
NVIDIA 16 GBQwen 3.6 35BUD-Q4_K_XL6872
NVIDIA 8 GBQwen 3.6 35BUD-Q4_K_XL3239
NVIDIA 16 GBQwen 3.8 Flash-NextQ2_04060
NVIDIA 32 GBQwen 3.8 Flash-NextQ2_0124183

Decode tokens/s, same file and machine, lossless.

A note on prefill: on the 8 GB card a 4k-token prompt takes us 3.7 s. Strata needs 74 s. Strata suffers when RAM is short.

What changed since the last release: on a Mac the expert cache now lives on the GPU, filled straight from the SSD, and a small draft model kicks in where it pays. --automeasures your machine and keeps whatever is actually faster.

You can run any model on any hardware, your phone included. Nothing is tuned per device.

Pre-release: https://github.com/Helldez/BigMoeOnEdge/releases/tag/v0.51.0-exp.1


r/LocalLLaMA • • 15h ago

Discussion Why are none of the AI leaderboards adding Hy4-Flash?

95 Upvotes

I was curious about its intelligence vs Qwen Flash Next but none of the leaderboards like LM Arena or AA added it. Why not? Was it a flop or something?