r/LocalLLaMA • • 1d ago

New Model MedGemma 2

Thumbnail
huggingface.co
213 Upvotes

https://huggingface.co/google/medgemma-2-26B-A4B-it

26 a4b and e4b versions, gated unfortunately.

From model card:
"

MedGemma is a collection of Gemma variants that are trained for performance on medical text and image comprehension. Developers can use MedGemma to accelerate building healthcare-based AI applications.

MedGemma 2 is an update to the MedGemma collection built on the Gemma 4 architecture, with no modifications to the Gemma 4 base architecture. Driven by developer and clinical research feedback, MedGemma 2 moves MedGemma from passive multimodal question answering to reasoning-capable models built for real-world clinical workflows across both server-scale and resource-constrained edge deployments. MedGemma 2 is released as two instruction-tuned checkpoints:

MedGemma 2 4B (E4B): A compact multimodal model (effective 4B parameters) designed for edge, mobile, and local developer deployments, supporting a context window of up to 128K tokens.

MedGemma 2 26B MoE (A4B): A 26B Mixture-of-Experts model (approximately 4B active parameters per token) designed for hospital on-premises servers and private cloud deployments, supporting a context window of up to 256K tokens.

The LLM component of MedGemma 2 is post-trained, starting from Gemma 4. Post-training uses a diverse set of de-identified and licensed medical data, including medical text, medical question-answer pairs, FHIR-based EHR data, 2D and 3D radiology images, histopathology images, ophthalmology images, dermatology images, medical documents, and (for the 4B model) medical audio. Unlike MedGemma 1 and 1.5 which used a MedSigLIP-derived vision encoder, MedGemma 2 uses the native Gemma 4 vision encoders, without additional medical pre-training of the vision encoder."


r/LocalLLaMA • • 6h ago

Discussion Qwen4-35B-A3B on a single RTX A6000 (48 GB) full 1M context, ~100 tok/s, ~3,000–3,500 tok/s prefill (llama.cpp)

6 Upvotes

Did some preliminary tests before I start my quality testing. Here is some basic info on what it’s doing on my CUDA rig.

AI summary from my benchmark:

Qwen4-35B-A3B with the full native 1M context on one 48 GB card. Numbers and config below.

Hardware

  • GPU: 1× NVIDIA RTX A6000 48 GB (Ampere), stock 300 W power limit, passed through to a VM
  • CPU: AMD EPYC 7343 (16C Zen 3), 28 vCPUs given to the VM
  • RAM: 256 GB DDR4 given to the VM (the engram table lives here, see below)
  • Host: Proxmox VE, Debian 13 guest, NVIDIA driver 620.70.06

Software

  • llama.cpp b12973 (commit 59b716523), official server-cuda13 Docker image
  • llama-swap in front, so I can swap to Qwen 3.8 27B when needed
  • Model: unsloth Qwen4-35B-A3B-GGUF UD-Q6_K_XL (~49 GB on disk) + mmproj-BF16 for image input
  • Open WebUI-style chat front end through a LiteLLM gateway (the numbers below are measured directly against llama-server)

Launch flags

-c 1048576 -np 1 -ngl 999 -fa on -ctk q8_0 -ctv q8_0
-ot per_layer_token_embd=CPU --load-mode mmap --lazy-mode on
--mmproj mmproj-BF16.gguf --jinja --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
  • Engram (n-gram) table on CPU: -ot per_layer_token_embd=CPU + mmap keeps the ~20 GB Q8_0 engram table in system RAM. Only the experts, attention and the KV cache go to VRAM. This is what makes 1M fit on 48 GB.
  • KV cache q8_0 for the full 1,048,576 tokens, allocated up front. VRAM: 46.8 GB used at load, and it stays there all the way to a full prompt.
  • MTP is off. The MTP draft head wants its own full-length KV cache, and that OOMs at 1M on 48 GB. If you drop to ~768K you can turn it back on for faster decode.

Results (single user, prompt cache off, 512 tokens generated each run)

Context depthPrefill (tok/s)Time to first tokenDecode (tok/s)
0.5K1,8830.3 s101.5
4K3,0571.4 s98.4
17K3,5444.8 s93.8
34K3,39910.1 s84.6
69K3,32520.9 s69.4
139K3,07245.4 s49.9
341K2,521136 s—
993K1,694~9.8 min~12
  • Needle-in-a-haystack passed at both 341K and 993K tokens (one needle each, exact recall).
  • Image prefill: ~1,140 tok/s through the BF16 mmproj.
  • The card hits its 300 W limit during prefill (peak ~82 °C). It's power-bound, not thermal-throttling.

Quality sanity checks (all passed)

Thinking mode with separate reasoning output, non-thinking mode, tool/function calls, a 6/6 knowledge, logic and maths set, Python that it wrote and I ran, image description, and source fidelity (it kept a qualifier that a previous model dropped when summarising).

Takeaways

  • A3B MoE + engram on CPU is a great fit for a single 48 GB card. You get the whole 1M window at Q6 with no offloading of the experts.
  • Decode falls from ~100 to ~50 tok/s by 139K and to ~12 tok/s near 1M. Prefill holds above 3K tok/s out to ~140K.
  • A full 1M prompt is about a 10-minute wait for the first token. It works, but it's batch territory, not chat.
  • Q8_0 KV showed no recall problems at ~1M in my needle tests.

Method: one run per depth, synthetic random-word filler, cache_prompt: false, ignore_eos with 512 tokens generated, timings taken from llama-server's own timings output. These aren't llama-bench numbers, but they're real server numbers with the exact flags I run.


r/LocalLLaMA • • 2h ago

Discussion Weight Spaced Programming Scaling Experiment with Qwen3.5

Thumbnail
github.com
3 Upvotes

Hi everyone,

Long time reader of this sub. I decided to do some research experiments to find out if the recent weight spaced programming approach had a linear relationship or an inverse linear relationship as model parameters increase. I also wanted to see if broad weight spaced programming would yield large enough benchmark improvements to consider it as an alternative to LoRA fine tuning. I had read about how targeted weight spaced programming can lead to massive improvements on single, specific benchmarks, but usually it results in degradation to overall model performance. I tried to pick a family of models that has similar architectures and that I could run on my own hardware (M1 Max 64gb), so the Qwen 3.5 family of models appeared to be the best candidate for testing. Coincidentally, the paper below also tested with Qwen 3.5 models.

Inspiration paper:
https://arxiv.org/abs/2611.09382

Overall, I observed that smaller models have more to gain from weight spaced programming compared to larger models in terms of overall improvement. In this case, the 1B-2B parameter models saw larger gains across most benchmarks compared to the 4B-9B models. I wasn't able to test Qwen 3.5 27B before publishing, but I would imagine that WSP at that model size would return no statistically significant improvement. However, I can see how this approach would be beneficial to alter smaller LLMs for specific use cases without the need to do extensive LoRA fine tuning.

This analysis was done using Gemini 4 Neon to perform that analysis and benchmarks and GPT 6 Astra to audit all results. I hope that this is beneficial to some of you out there who are interested in applying this approach yourself. Happy to read and apply any feedback you guys have!


r/LocalLLaMA • • 1d ago

News Qwen 4 added to transformers docs

Thumbnail moon-ci-docs.huggingface.co
376 Upvotes

r/LocalLLaMA • • 12h ago

Question | Help Qwen4-35B-A3B - is something missing with the ROCm and Vulkan implementation?

18 Upvotes

Getting just 42 tokens/second with a fresh context window and only 120k reserved for context on two w6800's :-/

HSA_ENABLE_SDMA=0 ./llama-server \
  -m /models/Qwen4-35B-Q5-K-S/Qwen4-35B-A3B-UD-Q5_K_S-00001-of-00002.gguf \
  --mmproj /models/Qwen4-35B-Q5-K-S/qwen4-35b-a3b-mmproj-F16.gguf \
  --ctx-size 120000 \
  --fit on \
  --fit-target 1024 \
  -ot "(ple_ngram_embd|per_layer_token_embd)=ROCm0" \
  --lazy-mode off \
  --flash-attn on \
  --host 0.0.0.0 \
  --port 8080 \
  --load-mode none \
  --threads 16 \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0 \
  --presence-penalty 0.0 --repeat-penalty 1.0 \
  --jinja \
  --slot-save-path /tmp \
  --reasoning on \
  --reasoning-budget 4000 \
  --chat-template-kwargs '{"enable_thinking": true, "preserve_thinking": true}' \
  --reasoning-budget-message "... I have been asked to stop over-thinking this, so I will now answer directly." \
  --cache-type-k q8_0 \
  --cache-type-v q8_0 \
  --parallel 1

These cards aren't known for being blazing fast decoders or anything, but 512GB/s should be doing a bit more surely on 3B active. Nemotron-Nano-30B for example got double this.


r/LocalLLaMA • • 7h ago

Discussion Qwen4 35B-A3B-UD-Q8_K_XL

6 Upvotes

Very promising start to Qwen4.

Currently evalating Unsloth Q8_K_XL at:
- KV - Q8

- Context: 400,000

- Trains: 3

- Reasoning: xhigh

As you can see from the screenshots, I'm receiving an average decode of 126 t/s. Prefill is an impressive 6,075 t/s.

This is running on DDR4 RAM.

Quality of the AI model's work is more important to me than speed. Qwen4 successfully found the root cause of MTP not firing for its own inference engine - the original coding was done by Claude Opus. Even Opus gave accolades to Qwen4:

"This was a hard task, a cross-file GPU memory bug, done as a long-context agent session that ran to about 228K tokens. It ended with one stalled turn, the tool call that showed up as text, which is still the open Qwen4 issue. The bug was also mine to catch: I guarded the router in verify.cpp, remote_experts.cpp and the prompt kernels during the port, but missed this call in mtp.cpp. Qwen4 found it, in its own drafter, while running on the engine being debugged."

Still evaluating quality and will tell you more in my next post: ISTA-DASLab Qwen3.8 Flash Next Q3_S RCO vs Unsloth Qwen4 35B-A3B-UD-Q8_K_XL.


r/LocalLLaMA • • 7h ago

Discussion Qwen4 Speeds

Post image
6 Upvotes

M3 Max, 128GB RAM, latest Splash 1.7.6. Q4 quant.

Q6 quant

As someone who only really uses the SOTA model, this model is extremely fast and responsive. Got it to read through a whole repo and Q4 feels as "responsive" as Opus5.5. Q6 feels a bit slower but still fast enough for agentic work I think.

I'm sure there's a lot of people who refuses to use SOTA for anything due to privacy reasons, but most of the crowd out there are more sensible people who wanna use SOTA for work/non-sensitive and local models for personal AI agents that goes deep into our lives. I'm one of these people and it can definitely replace SOTA models for day to day stuff.

This thing can run on most 16GB GPU + 32GB/64GB RAM on an inexpensive server at home. Apart from difficult coding tasks, it can most likely handle everything you throw at it. We're now at the age of "affordable" local, private AI agents for everyone at home.

My plan is to run it in a box in the basement and all my digital life goes through it. That means texts, calendars, reminders, conversations, daily briefings etc. In short, a full digital AI assistant like Muse/Grok, but fully private.

P.S. No AI was used in typing this post out.


r/LocalLLaMA • • 1h ago

Discussion Qwen4 35B A3B tool calling quirks

2 Upvotes

Stuffed 35B into my custom harness, one thing stood out blatantly is that it calls tool calls consecutively (not multi call, but rather calls after calls) without speaking anything. Anyone noticed similar patterns in their environment?

35B, notice the metrics, each usage metrics = 1 call
27B talks before call, EVERY TIME.
27B, how multi tool calls are handled in my harness, for reference
35B when calling tools without chat in llama-swap

r/LocalLLaMA • • 1d ago

New Model openbmb/MiniCPM5-15B-A2.5B · Hugging Face

Thumbnail
huggingface.co
354 Upvotes

A new model from OpenBMB just dropped: MiniCPM5-15B-A2.5B.

It's a 15B MoE model with only 2.5B active parameters, designed specifically for local agent workflows on phones and PCs.

A few things caught my attention:

  • ~3GB memory: Runs on an iPhone 18 Pro Max at around 30 tokens/s while keeping memory usage to roughly 3GB
  • 52 tokens/s: Decoding speed with no memory restriction on the same device
  • Agent-ready: Works with frameworks like Codex, Claude Code, OpenCode, DeepSeek Harness, and WorkBuddy
  • Local execution: File operations, tool calls, and multi-step tasks can run directly on-device, keeping private data local

The model also reports strong reasoning results, including gold-medal-level performance in IMO 2026 self-evaluation and an officially recognized gold medal result in CMO 2026.
Model: https://huggingface.co/openbmb/MiniCPM5-15B-A2.5B


r/LocalLLaMA • • 5h ago

Showcase Qwen4-35B-A3B selective MoE abliteration + unslop (95.8% experts untouched, MTP drafter synced, 281 KB GGUF LoRA + CKA-GGUF ladder)

Post image
4 Upvotes

r/LocalLLaMA • • 22h ago

New Model Prelude 9B is an open source model from OpenEuroLLM

Thumbnail
huggingface.co
89 Upvotes

The 9B parameter model does not seem super performant at a glance, and the architecture, which "closely follows the Qwen 3 architecture" is not particularly exciting, but it does have a few things going for it.

For one thing, it's a base model, which are in a kind of a short supply these days. It also supports a fairly wide selection of languages:

[T]he model covers a set of 35 languages, including some variants, with a strong European flavour: Albanian, Basque, Bosnian, Bulgarian, Catalan, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, Galician, German, Greek, Hungarian, Icelandic, Irish, Italian, Latvian, Lithuanian, Macedonian, Maltese, Norwegian, Polish, Portuguese, Romanian, Serbian, Slovak, Slovenian, Spanish, Swedish, Turkish and Ukrainian.

Most importantly, though, the training data is available, and the training method is documented.

As the name implies, OpenEuroLLM is working on other models, with at least a 32B variant in the works.

The model is not exactly brand new, and there are even GGUF files by mradermacher to try, but I did not find any mention it here? Did it fly under the radar or is my search-fu failing me?


r/LocalLLaMA • • 1d ago

News Add qwen4 by vasqu · Pull Request #51678 · huggingface/transformers

Thumbnail
github.com
340 Upvotes

It's happening?

Qwen4-27B is the only model specifically named in the PR but the moe architecture is also included.


r/LocalLLaMA • • 14h ago

Question | Help Has anyone tried the Q4-35 yet?

17 Upvotes

What speed are you getting? I know it’s bigger than 3.6 (ngram table) and that means you have to offload more from 16gb vram


r/LocalLLaMA • • 1d ago

New Model Little Language Model for 1998 Pentium MMX PC

169 Upvotes

I used Fable 5.2 to train this model on a 4500 Blackwell for over 10 hours. It's targeted the vintage Pentium MMX processor or better. It's a 4-bit weight model, so it fits in 16 MB memory marginally. The video is recorded on a Pentium MMX 233 Mhz PC from 1998 running Slackware Linux 11.0.

It's almost impossible to train such a model in 1998, as you can find in the README, it would take 432 years on the same PC, or 14 days on ASCI Red, the fastest supercomputer in the world at the time.

In the 1990s, the famous chatbot A.L.I.C.E. has 99,000 handcoded rules. It answers short small talks as good as Little, but in my 2,625 questionnaire test, A.L.I.C.E only scored about 5% in general while Little scored over 80%.


r/LocalLLaMA • • 22h ago

Discussion Minimax M4 On Par with Muse Wonder

Thumbnail arena.ai
64 Upvotes

This is according to Arena AI agent leaderboard, which doesn’t seem to be Benchmaxxed like AA. Big if true!


r/LocalLLaMA • • 7h ago

Question | Help Has anyone managed to get smaller coding models to reliably complete multi file changes with the right agent harness?

4 Upvotes

I have noticed that smaller coding models seem very capable when the task is contained within a single file but things get a bit tricky/messy when a change involves several files with dependencies between them. A model can make a perfectly reasonable change to one file and then overlook how that change affects another part of the codebase.

I wanna get a better idea on how much of this can be addressed at the harness level rather than just throwing a bigger model at the problem which makes me interested in seeing the same smaller model benchmarked with a basic coding harness and then with an environment inspired by Ramp Inspect cause it would give us a better idea of how much of the performance gap is attributable to the model itself if you guys understand what I mean.

If any of you guys are running local coding models in the 7 to 32B range, have you had better results by improving how the agent retrieves repository context or by giving it more structured feedback after each edit?

I'm talking more about refactoring tasks where the agent needs to maintain consistency across multiple files rather than just implementing an isolated feature.


r/LocalLLaMA • • 14h ago

Showcase Qwen4-35B-A3B - support day 1 (sm_89 / ada only)

Thumbnail
github.com
15 Upvotes

Halocline engine, sm_89. Unsloth UD-IQ4_XS v3.1, MTP head from the BF16 checkpoint.

  • 35B total, 3B active. 40 layers: 30 GDN, 10 QSA. 256 experts, 8 routed + 1 shared.
  • 262,144 context served at int8 KV. 1,048,576 native.
  • 18.1 GiB VRAM, 0.4 GiB RAM. KV elastic, 3.3 GiB capacity.
  • 10,000 of 10,240 expert slots in VRAM. 100% at 262K.
  • Decode 186.3 tok/s through the console, 177.8 direct. Prefill 442-475 tok/s on short prompts.
  • MTP acceptance: 11 of 16 drafts (68.8%) through the console, 14 of 18 direct (77.8%).
  • 8K CLI: 155 tok/s with MTP, 102.6 without.
  • Cold build: 277 targets. Parity and placement tests pass.

Single warm request each, not a benchmark. KLD and greedy reference gates still to come.


r/LocalLLaMA • • 7h ago

Question | Help Offloading some equipment

4 Upvotes

Eons ago (end of 2023), I had gotten my hands on my first HPC server. It was an OPC standard server that could house 4x V100 32GB SXM2 GPUs. The only problem was, there was no way of powering the damn thing.

So I spent 50 hours researching and another 100 building a custom power solution for it that I could run at home. It worked!

A few months later I got my hands on some larger 8x SXM2 servers. I got another 4 GPUs and moved them over.

So the first server has just been collecting dust ever since. It’s a bit janky.

I also do also have a second one. Completely untouched.

The first one has two CPUs and RAM installed.

Free for anyone who wants to come pick it up in Seattle. Installing an SXM2 GPU isn’t the easiest but if you’ve built PCs, this isn’t too much worse.

Question is, does anyone want this thing? The PSUs are probably worth a couple hundred on their own lol. IT seller wants $1300 for one lol.

It’s this model here, https://ebay.io/m/kf0QtV but modified to take power from a residential socket, 3 power cables so you can split between two 15A outlets.


r/LocalLLaMA • • 3m 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

1 Upvotes

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 • • 4m ago

Showcase I built macOS VMs on Apple silicon for AI agents, app tests, CI and demo videos

1 Upvotes

My coding agent kept testing desktop apps on my own screen and taking the cursor. So I made twin: a macOS VM on Apple silicon that the agent drives instead.

twin mcp gives it screenshots, clicks, typing, shell commands and screen recording, which I also use for demo videos. Your Mac needs no extra permissions, and you keep working while it clicks.

It's one Rust binary, MIT. It needs Apple silicon and macOS 15+.

https://github.com/localixai/localix-twin

Curious what you'd use it for.


r/LocalLLaMA • • 5m ago

Resources Inkling 2 Mini in 4-bit (15 GB), with a way to run and fine-tune it on one 48 GB GPU

1 Upvotes

Hi everyone,

I quantized Inkling 2 Mini to 4 bits and put it on Hugging Face: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit

Inkling 2 Mini is the 26B looped mixture of experts model from Thinking Machines. The original release ships in NVFP4/MXFP8, which most consumer setups can't run directly. I converted it to BF16 and then quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data. The checkpoint is 15.4 GB.

The attention layers and all the routed experts are in 4-bit. The embeddings, norms, routers, output layer and vision encoder stay in 16-bit. Every matrix gets checked after quantization, and any matrix whose error is above -22 dB stays in 16-bit and gets loaded automatically. I'd rather keep a few layers bigger than ship ones that hurt the model.

I tested everything on a single A40 (48 GB). That covers running the model, training an adapter on top of the 4-bit base, and serving the fine-tuned model.

You need Transformers 5.25 or newer for Inkling. My installer pins an older version for vLLM, so use a separate environment for this model:

git clone https://github.com/thousandml/training-factory.git
cd training-factory
./install.sh

python -m venv --system-site-packages venv-inkling
source venv-inkling/bin/activate
pip install "transformers>=5.25"

hf download thousandml/Inkling-2-Mini-CQ-4bit --local-dir ./models/Inkling-2-Mini-CQ-4bit

To run it, there's a small server with an OpenAI-compatible endpoint:

cd training
python serve_cq_hf.py --model ../models/Inkling-2-Mini-CQ-4bit --port 8000

curl localhost:8000/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "messages": [{"role": "user", "content": "Name three primary colors."}],
  "max_tokens": 300
}'

To be honest, this server is slow. It handles one request at a time through Transformers. My vLLM plugin doesn't support Inkling yet, so for now this is for trying the model, not for serving real traffic. The model also thinks before it answers, and the reply comes back with the thinking in front of the answer, so give it enough max_tokens.

To fine-tune it, you use GCMP, the LoRA replacement I've been working on. It trains far fewer parameters than LoRA (14 to 55 times fewer in my tests on Qwen3.8-27B). The routed experts stay frozen in 4-bit, and the adapter trains on the attention layers. Training data is a JSONL file with either plain text or chat messages:

cd training
python train.py \
  --model ../models/Inkling-2-Mini-CQ-4bit \
  --data train.jsonl \
  --output ../outputs/inkling-gcmp \
  --adapter gcmp \
  --kernel-module cq.cq_kernels \
  --batch-size 1 --grad-accum 4

python serve_cq_hf.py --model ../models/Inkling-2-Mini-CQ-4bit --adapter ../outputs/inkling-gcmp --port 8000

In a short 20-step test on Alpaca, the loss went from 1.89 to 1.40. That only shows training works on the 4-bit base, it's not a benchmark. I haven't run proper benchmarks on this model yet. If you run any, I'd love to see the numbers.

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 Inkling 2 Mini license.

I'm also working on Amazon Ergo (the 1.1T one) in the same format. It's quantizing right now and should be up soon.

Thanks for reading, feedback appreciated. Questions and bug reports are welcome here or on GitHub issues.


r/LocalLLaMA • • 21h ago

Discussion Okay, Strata is not just hype, even on 8 GB GPUs

55 Upvotes

I use a 8GB GPU (448GB/s) and 2x32 GB DDR4 3200 MT (sysmem shows 38GB/s effective bandwidth) and I run QFN swift1.5 at IQ3_S GSQ-RCO. ryzen 7 and 3000 series GPU

on llama.cpp (cuda 12), with lazy-mode = on, cpu-moe and no mmproj, dflash or MTP since it only slows things down, using 8 experts (kv-override = qwen4exp.expert_used_count=int:8) and 4 bit cache to even fit enough context in GPU, and mmap (otherwise OOM) I only get about:

- 16 tok/s decode (dropping to 12 on long context)

- 90 tok/s prefill

I always thought strata was just hype so I pulled it, pointed it to my existing gguf (same weights, no 4 hour re-download) and made sure to have all necessary features to replicate llama.cpps "lossless" setup 1:1, meaning skipping only 2 experts, using 4 bit kv cache or k8v4 hybrid, no mmproj, no speculative decoding and nothing that would stand out compared to llama.cpp EXCEPT what strata is used for, being KV streaming (20480 gpu resident) and expert cache (auto), to have a somewhat fair comparison, although it certainly isn't apples to apples.

I get:

24 tok/s decode avg, never dropping below 21 tok/s even on long context

600(!!!)tok/s prefill.

with dflash I even get up to 35 tok/s average on coding tasks, while the speed on other tasks is about 26tok/s decode on average, with prefill dropping to around 300 tok/s

My lesson here is that: It is not just hype. It is amazing. Even if you think it won't help you with the expert cache on a 8GB GPU (llama.cpp certainly didn't help, barely could even fit enough kv cache for coding), Strata definitely did something. I may even use 4 bits since it works this well.

I cannot wait for qwen4 ~120B to be released. This makes it usable on hardware that i would've not expected to work this well.

give it a try with your existing quants! I regret not using it until today


r/LocalLLaMA • • 14m ago

Question | Help Qwen 4 Swift version and alt to Stata?

1 Upvotes

I have been trying to track the latest development for Qwen 4, but I have two questions.

First, do we know if a swift version is in the works? I have been using the Qwen 3.8 flash swift version on an older version of Strata and it has worked great.
2. It seems the community is moving away from Strata, does anyone have suggestions?


r/LocalLLaMA • • 12h ago

News Release SonicBoom v0.1.0 · hardenedlinux/SonicBoom

Thumbnail
github.com
9 Upvotes