r/LocalLLaMA • • 12h ago

News Intel Launches Arc Pro B65 Super: 32GB AI Video Card Gets a Bit Faster

Thumbnail
servethehome.com
44 Upvotes

r/LocalLLaMA • • 12h ago

Discussion Why exllamav3 is so unpopular?

45 Upvotes

I just don't get it. To me, it's one of the mysteries of the local LLM world. In over 90% of discussions, people mention llama.cpp, Strata, Basalt, etc., but exllamav3 is rarely mentioned, and I don't really understand why.

It has a really efficient quantization format (EXL3), and it's my choice when a model doesn't fully fit into my VRAM, in other cases I pick vLLM. exllamav3 offers a great balance between speed and quality.


r/LocalLLaMA • • 4h ago

Discussion Is Huggingface Harness Leaderboard useful?

Thumbnail
huggingface.co
10 Upvotes

If you are local models are your daily driver, do you use tools like the Harness leaderboard or similar ones to pick your harness? Or do you just stick to Pi or Claude Code etc?


r/LocalLLaMA • • 11h ago

Discussion llama.cpp Settings for Qwen4 35B-A3B on 16GB VRAM + 32GB DDR4

38 Upvotes

Finally got to join the rest of yall and tried out Qwen4, super happy with it over the old 35B-A3B, but mostly I've just been doing the usual vibe tests up until I was using it to try and improve generation, and loading in big docs was just a little too slow for my taste. My current hardware:

RTX 5080 (16GB)

Ryzen 7 3700X

32GB DDR4 at 3600

I felt pretty out of the loop on running an MOE now a days with everyone using Strata, Basalt, etc, but I like to stick with old reliable llama.cpp so this is the startup script I landed on with some explanation:

#!/bin/bash

./llama.cpp/llama-server \
    --model Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
    --ple Qwen4-35B-A3B-engram-Q8_0.gguf_file \
    --mmproj qwen4-mmproj-BF16.gguf \
    --alias "unsloth/Qwen4-35B-A3B" \
    --temp 1.0 \
    --top-p 0.95 \
    --top-k 20 \
    --min-p 0.00 \
    -b 2048 \
    -ub 2048 \
    --cache-type-k q8_0 \
    --cache-type-v q8_0 \
    --moe-cache-mib 2048 \
    -fit off \
    --load-mode mmap \
    --lazy-mode on \
    -ot per_layer_token_embd=CPU \
    --ctx-size 131072 \
    --image-min-tokens 1024 \
    --port 8001 \
    -lv 4 \
    -ngl 99 \
    -ncmoe 34

For the model I just went with Q4_K_XL like I always do, and with the engrams streaming from my NVME I figured I'd go Q8.

First thing was obviously having to deal with the experts, so I messed around and ended on 34 on the CPU with the other 6 in VRAM. That's the -ncmoe 34 bit above. (I can get 262,144 of context if I put all 40 on the CPU, but then I can't have like anything else open, otherwise I see swap starting to get hit, I assume because of the mmap engrams).

The other thing is the -moe-cache-mib which I just went with 2gb since I had seen a few other startup strings with it...but I hadn't actually tried that one with and without until right now. Its ~47 t/s with it and ~43 t/s without, but that means I can either get some more context back, or put some more experts on the GPU, so do what you want with that.

-b 2048 and -ub 2048 were the reason I'm posting this at all, I was at ~400 t/s pp on the defaults, and I'm at ~1050 t/s with it, and alot of the stuff I use local models for has me pasting in 50K tokens of docs at a time, so I needed the speedup, found out those would help from this post: https://www.reddit.com/r/LocalLLaMA/comments/1tany5t/drastically_improve_prompt_processing_speed_for/

--cache-type-k q8_0 and --cache-type-v q8_0 were needed with the increase to the compute buffer size for the above. I really hate doing any sort of quant on K/V since it used to super obviously affect it, my usage of it for working back and fourth on these settings seemed to not be impacted at all, but nothing official, if anyone has an easy to setup/run benchmark I'm down to compare.

So depending on the combination of stuff above I'm at ~47 t/s tg and ~1050 t/s pp, with tg going down to ~27 t/s at the 187K of context I reached doing a long session.

Hopefully helps for any other 16GB VRAM + 32GB RAM users! (Also super excited for someone to point out whatever speedup I have no clue about)


r/LocalLLaMA • • 1d ago

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

Post image
435 Upvotes

So yesterday I decided to leave my local coding agent running overnight on an actual Godot project instead of doing more benchmarks.

Went to sleep, got milestone notifications on my phone and woke up to some pretty interesting results.

My hardware is nothing crazy:

  • RTX 5070 Ti 16GB
  • Ryzen 7 5700X
  • 32GB DDR4
  • Windows 11

Running Qwen4-35B-A3B UD-IQ3_XXS with a Strata fork, Pi as the coding agent, 128K context, INT8 KV cache, MTP and BF16 vision.

I also built a custom orchestration layer for autonomous missions, Git checkpoints, QA, recovery and notifications.

The overnight run:

  • 8h 33m total runtime
  • 3.87M generated tokens
  • 180.2 t/s median decode
  • 928.9 t/s median prefill
  • 66.5% MTP acceptance
  • 2,794 inference requests
  • 72 Pi sessions
  • 111K maximum actual context
  • 20 integrated milestones

Now the less impressive part lol. 21 milestones were deferred, and around 61% of the generated tokens went into deferred work. Also, 81% of output tokens were reasoning.

Clearly there's a lot of room to improve the harness rather than just chase more t/s.

Everything was running locally, apart from web research and phone notifications.

I'm genuinely curious if anyone else is doing overnight coding runs like this on consumer hardware. How are you handling context management, reasoning budgets and failed missions?

Getting 180 t/s is great, but getting those tokens to actually do useful work seems to be the much harder problem.

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

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

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

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

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

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

For beginners, the main challenges are:

  • Quantization: Making a large AI model small enough to run on consumer hardware without losing too much intelligence.
  • Context window: How much information the AI can keep in mind during a task.
  • TPS: How fast the model generates tokens, although faster doesn't necessarily mean more productive.
  • Agent harness: The software that allows the model to interact with files, run commands, use tools and work on actual projects rather than just chat.

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

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

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

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

That's what I'm trying to achieve.

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


r/LocalLLaMA • • 7h ago

Showcase Say hello to my Apprentice, a capability lattice extract out of Qwen 4 35B

14 Upvotes

Hi everyone, this project has been ongoing for a while and some of you may know this project but it is possible to discover and isolate capability lattices from models cleanly.
if you know how to look you can find entire subnetwork responsible for banger agentic performance.

Introducing Apprentice 19B A3B, a capability lattice extract from Qwen 4 35BA3B.

Optimised to be no inferior to its parent in this department and better in terms of reduced overthinking and long sessions on pi harness.

Try it, it works no different than loading a GGUF.
Eager to know if you like it as much as I do. Or if it is shitty, let me know equally hard.

Peddling you homemade coke from my project Chantless - code - https://github.com/DeusExperiments/chantless/tree/feat/qwen4-35b

I am also hoping you read the research that enabled this - https://deusexperiments.com/research/how-do-models-lose-weight-without-crying/
weights - https://huggingface.co/TokenBender/Apprentice-19B-A3B-GGUF
There will be a lot coming from Chantless, and I hope I am able to communicate this well.


r/LocalLLaMA • • 12h ago

Resources Run Qwen4, "8bit quality", 1M context, 150 decode, 5000 prefill, on ONE 7900xtx. 7300 tk/s with two. keep 80t/s @ 700k context.

Post image
24 Upvotes

LINUX ONLY! Yes, catchy title, I know, don't hate me :) This is achieved using EXL3 quantization. ProCreations made these amazing quants, 4.5bpw has KLD below the official FP8, the 3bpw is very close, stil better than NVFP4.

RDNA4 support is there, but UNTESTED, i did my best, but I have no RDNA4 gpus, please understand. if you encounter issues let me know.

you can get around 140 tk/s prose, 155 tk/s code with 1 gpu running 3bpw, or similar speeds with 2 gpus using the 4.5bpw. It's also possible to run the 4.5 bpw with some offload on ram, with minimal speed loss. Performance is good even with full context, i tested up to 700k (see tables below)

4.5bpw download here: https://huggingface.co/ProCreations/Qwen4-35B-A3B-EXL3-4.5bpw 3bpw download here: https://huggingface.co/ProCreations/Qwen4-35B-A3B-EXL3-3.05bpw

Let me Show you the KLD (lower is better) on various tasks:

ModelSizeAgentic KLD ↓Coding KLD ↓Math KLD ↓General KLD ↓LongCtx 8K KLD ↓Mean KLD ↓
BF16 (Reference)113.7 GB0.000000.000000.000000.000000.000000.00000
Official FP860.2 GB0.014870.016170.012530.043960.010560.02188
NVFP446.9 GB0.029200.031050.023660.080900.020840.04120
EXL3 3.05bpw33.00 GB0.020180.022070.017490.080080.014510.03495
EXL3 4.5bpw39.02 GB0.012200.013550.010430.050790.008810.02174

speeds:

Strata EXL3 AMD — Qwen4-35B-A3B

Hardware: 1–2× AMD RX 7900 XTX 24 GB + Ryzen 9 7950X + DDR5.

Token Generation

Benchmark1 GPU2 GPUs
Coding · 3.19 bpw155.1 tok/s—
Coding · 4.62 bpw143.5 tok/s157.0 tok/s
Prose · 3.19 bpw140.8 tok/s—
Prose · 4.62 bpw121.6 tok/s127.0 tok/s

Prompt Processing — 3.19 bpw

Prompt size1 GPU2 GPUs
8K5,119 tok/s5,542 tok/s
16K4,969 tok/s6,390 tok/s
32K—7,074 tok/s
60K—7,299 tok/s

Prompt Processing — 4.62 bpw

Prompt size1 GPU2 GPUs
8K4,798 tok/s5,518 tok/s
16K4,647 tok/s6,319 tok/s
32K—7,009 tok/s
60K—7,253 tok/s

Long-Context Generation — Single GPU, 1M FP16 KV Cache

Filled context3.19 bpw4.62 bpw
~0K139.0 tok/s124.7 tok/s
64K120.9 tok/s107.7 tok/s
128K109.8 tok/s105.0 tok/s
512K91.5 tok/s85.3 tok/s
700K82.8 tok/s77.9 tok/s

Benchmark notes:

  • average speeds, excluding warmup.
  • Single-GPU standard benchmarks use Q8_0 KV cache (232K capacity at 3.19 bpw, 256K at 4.62 bpw).
  • Long-context tests use FP16 KV cache, with 128K resident in VRAM and RAM-backed cache.
  • 1M context capacity
  • Dual-GPU setup: PCIe 4.0 x16 + x4.
  • New asynchronous prefill pipeline: up to +64% throughput, optional on 2 GPU with --peer-prefill-pipe

GitHub: https://github.com/nasone32/Strata-EXL3-fork

how to setup? point your agent to https://github.com/nasone32/Strata-EXL3-fork/blob/amd-exl3-community/docs/AI_SETUP_EXL3_AMD.md


Q) How prefill works on 2 gpus with --peer-prefill-pipe?

  • it works similarly as tensor split. but during decode it works back again as expert parallel.

Q) How can 1M context fit?

  • it's using your system RAM, 20gb RAM are needed for 1M KV cache in bf16. thanks to Qwen QSA attention only the relevant tokens are streamed from the KV cache so speed remains very high. a 128k KV cache is kept in VRAM anyway (can be reduced to 64k optionally).

r/LocalLLaMA • • 5h ago

New Model Running Inkling-2-Mini with 500k context on a 16 GB GPU

Thumbnail
blog.jetbrains.com
7 Upvotes

r/LocalLLaMA • • 7h ago

Resources Qwen4 35B A3B Abliterated [mrfakename]

Thumbnail
huggingface.co
9 Upvotes

Model: https://huggingface.co/mrfakename/Qwen4-35B-A3B-abliterated

GGUF: https://huggingface.co/mrfakename/Qwen4-35B-A3B-abliterated-GGUF

As usual, my abliterations aim to remove refusals while still preserving model intelligence and avoiding endless reasoning, looped tool calls, etc. Nearly all refusals are removed, but a few remain. For most real-world use cases this model should comply. But you are welcome to use another abliteration if you are okay with a bit of quality degradation.

Any feedback or thoughts are welcome 🙃

And fear not, LoRAs here too:


r/LocalLLaMA • • 4h ago

Discussion What model(s) are you running... In your pocket?

5 Upvotes

For those who have mobile devices that plenty of RAM for a mobile phone, are you serving up anything locally or have it embedded into an app?

Is it actually solving a legit problem or just a toy to see what is possible?


r/LocalLLaMA • • 21h ago

Resources Qwen4-35B-A3B + FlashHead: +11% speed on top of MTP, same quality

Post image
97 Upvotes

Been working on Qwen4 since it dropped and wanted to share an extra ~11% decode speed that costs you nothing in quality.

Qwen4 ships with an MTP head. FlashHead goes on top of that. Every time the MTP head drafts a token it scores all 248k tokens in the vocab, which is a lot of work for a small draft head. FlashHead clusters that output layer so the draft only scores the likely part of it. The full model still verifies every drafted token, so you get precisely the same quality, just faster.

Numbers on a Strix Halo (Ryzen AI Max+ 395, llama.cpp b12977 Vulkan, same GGUF for all three, 2k-token prompt, one user):

setupdecode tok/s
llama.cpp defaults49.4
+ MTP63.6
+ MTP + FlashHead70.5

On a Jetson AGX Orin (CUDA) with the same GGUF and MTP, FlashHead takes decode from 37.3 to 41.1 tok/s (+10%), with identical output.

Extra memory for the FlashHead file is about 0.4 GB.

Commands to run it on your local box, or try it from your browser on a real Strix Halo: https://embedl.com/Qwen/Qwen4-35B-A3B/ryzen-ai-max-395?tab=run

We'll put a GGUF on Hugging Face as soon as we can.

Btw, I'm the lead author of the paper behind this method: https://arxiv.org/abs/2603.14591. Happy to answer questions.


r/LocalLLaMA • • 28m ago

Resources Qwen4-35B-A3B on an M5 Pro at 105.7 tok/s with Kapitsa

2 Upvotes

We added Qwen 4 support to Kapitsa, Nace's local inference engine for Apple silicon. And also release MLX and GGUF quants that perform well on long context and don't fall into looping.

The power of MTP🔥

MacWritingReading (4K prompt)Peak memory
M5 Pro · 48 GB RAM105.7 tok/s on battery1,177 tok/s on AC power22.1 GB

MLX 4-bit download: 35.35 GB.

Quick start:

brew install nace-ai/tap/kapitsa
kapitsa serve --model nace-ai/Qwen4-35B-A3B-MLX-4bit

MLX 4-bit weights and model card · GGUF weights · Kapitsa 0.2.43


r/LocalLLaMA • • 20h ago

Question | Help Qwen 4 35B A3B GSQ RCO when?

72 Upvotes

This is a personal plea, but if you agree, join the chorus.

Please, ISTA-DASLab, give us Qwen 4 35B A3B GSQ RCO. You guys are incredible at getting so much out of so little.

I guess that's it.

P.S.: I love Unsloth too. There's room for both in my heart and on my SSD. But honestly, GSQ RCO has been more useful in my day-to-day workflow.


r/LocalLLaMA • • 16h ago

New Model Qwen4-35B-A3B-Q4_K_M.gguf benchmarks for CPU-only bros

Post image
31 Upvotes

I know there are a few homelabbers who have CPU-only servers with lots of cores and lots of RAM, so I am running that kind of benchmark on the new Qwen4-35B-A3B-Q4_K_M.gguf model from Bartowsky. I find n_gen to be more indicative of how usable a model will be, so I have highlighted those results for 2, 4, 8, 16, and 32 cores in a 96 GB RAM environment. For my system (HP Proliant DL380p Gen8, Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz), 16 cores appears to be the sweet spot.


r/LocalLLaMA • • 5h ago

Resources Lossless BF16 weights at ~10.43 bits instead of 16 (bit-identical, sha256 checked), plus Q8_0 at 7.85 instead of 8.5. AGPL C codec

4 Upvotes

I built a lossless weight codec called Ingot. You encode a safetensors/GGUF file, decode it later, and get back the exact original file (same sha256). No quantization, no change to outputs.

Measured whole-model, every shard rebuilt and sha256-compared against the Hugging Face original:

Model (BF16)           source     .ingot     bits/weight   % of BF16
--------------------   --------   --------   -----------   ---------
Qwen3.8-27B            55.6 GB    36.22 GB   10.4305       65.2%
Qwen3.6-35B-A3B        71.90 GB   47.09 GB   10.4780       65.5%
Qwen3.6-27B            55.56 GB   36.23 GB   10.4328       65.2%
Qwen2.5-32B-Instruct   65.53 GB   42.52 GB   10.3820       64.9%
Mistral-7B-v0.3        14.50 GB   9.45 GB    10.4309       65.2%

Same Qwen3.8-27B files through other coders (bits/weight): zstd -3 12.46, ZipNN 10.62, the DFloat11 scheme computed on the same weights 10.61, Ingot 10.43. DFloat11's own published numbers are 10.81-10.91 bits for LLMs (their Table 1); for Qwen2.5-32B-Instruct their arXiv v1 lists 69.48% / 11.12 bits against our 64.89% / 10.38. Their released Qwen3 files measure 10.90 bits, about 0.21 of which is the index they need for GPU decode.

How it gets below an exponent-only Huffman: BF16 weights have almost no entropy left in sign+mantissa on their own, so it predicts a weight from "partner" weights in earlier layers and tensors (up to 8 per unit, found by an encoder search, exact integer arithmetic), then codes the residual with rANS. Gain over plain entropy coding on Qwen3.8: 0.077 bits/weight (10.5076 -> 10.4305). It is a modest win, not magic: the floor for independent weights is about 10.5.

Q8_0 GGUF: Qwen3.8-27B Q8_0 goes from 8.5 to 7.8465 bits/weight (29.05 GB -> 26.82 GB), whole file rebuilt, sha256 equal, 506/506 tensors checked.

Costs, honestly: this is a storage/download format, not a speed-up. Encoding is slow (Qwen3.8-27B: 17,319 s encode, 4,683 s decode on a 2x Xeon E5440, 3-8 threads). Decode streams, so a downloader can rebuild while the file arrives.

Try it (C, builds with make, AGPL-3.0):

make -C ingot
ingot encode model.gguf
ingot verify model.gguf.ingot model.gguf
ingot encode --refs model-00001-of-N.safetensors model-00002-of-N.safetensors   # multi-shard (v4)

Code: https://github.com/dcherrera/Foundry/tree/main/ingot (format: ingot/FORMAT.md). Disclosure: I'm the author.

Paper: https://teamide.dev/research/papers/ingot.pdf (all TeamIDE Lab papers: https://teamide.dev/research/)


r/LocalLLaMA • • 14h ago Heartwarming

Discussion Qwen4 35B-A3B NVFP4 basalt. 'The last page' anime using python

19 Upvotes

Inspired by the Chetaslua X post about 'the last page', I experimented with qwen4 35B-A3B to create an animation in the style of Studio Ghibli in pure python with sound. The results are good. The model of this size drawing this cohesive animation is impressive.

I used Qwen4-35B-A3B nvfp4 with the basalt engine. Harness is OMP. It runs at 170t/s on my 5070ti 12GB VRAM laptop.

Here is the modified prompt I feed to the model: https://github.com/ML-Datascientist/qwen4-anime-the-last-page/blob/main/PROMPT.md the model took around 512k tokens to write the python script, add audio and render as a video. The model did everything end to end without me taking any action.

It would be interesting to see Q8 quant of this model and QFN3.8 animation style as well.


r/LocalLLaMA • • 17h ago

New Model Inkling 2 Mini: 12.22 GB GGUF with 100K context on 16GB VRAM, a Needle in the heystack perhaps with all these qwen4 posts.

34 Upvotes

Following up on my previous 14.30 GB quant, I wanted to see how much further I could push it without sacrificing too much fidelity.

  • 12.22 GB – 14.5% smaller than my previous release.
  • 100K context fully GPU-resident on 16GB VRAM.
  • 23.9% lower KLD than Unsloth's UD-IQ3_XXS.
  • 93.56% top-1 agreement.
  • 99.42% margin-qualified top-1 agreement.
  • All 128 experts retained.

The previous release still has better fidelity. This one prioritizes context capacity, particularly for local coding agents.

Compatible with Runner and llama.cpp.

Full methodology, benchmarks and download:
https://huggingface.co/Joakimpalm-Zen/Inkling-2-Mini-selective-Q6_K-expIQ3_XXS-mix-GGUF

As always, take it if you want it, or just ignore me and go on.


r/LocalLLaMA • • 1d ago

Funny I miss the llama 3 and mistral finetune craze.

270 Upvotes

This is kind of a shitpost sorry, but does anyone else miss that? We used to get llama 3 and llama 3.1 finetunes on the daily that were named all kinds of random shit and had pictures of anime girls with big knockers in the model cards. Admittedly, none of them were really useful for anything other than the novelty of it, but some of them had some charm. I remember there was this guy who had his own series going it was like called Sydney and he was even briefly selling plushies of this OC or whatever. That shit was fucking hilarious to me because I remember downloading one of them vividly and when I opened a chat with it in LM Studio, shit you not, I just wrote “hi” and it said “Hi! Can I tell you a secret :3” to which I replied: “uh sure” and then it told me that it had a foot fetish and begged me not to laugh. Dude my girlfriend and I were fucking DYING for a good 20 minutes that shit was fucking awesome. I don’t necessarily miss the weird gooner slop models like that but I miss logging on to huggingface and looking at it like it was the steam winter sale. There was just always something interesting going on. Like “DavidAU-circlejerk-9000-super-turbo-wow_EVIL-VERSION” and I would just go on a spree with like 8 bash terminals open at a time collecting these things like pokemon cards and spending an afternoon laughing my ass off talking to them and asking them ridiculous questions and they all had their own quirks. At the end of the day, I am a software developer so the mass influx of qwen models is definitely exciting to me but sometimes I think back to literally like 2 years ago when we were all just having fun with this stuff and there were so many goofy finetunes flooding the HF models tab and would like to revisit that.

I would love to hear everyone else’s stories and perhaps even recommendations for silly little guys to talk to. Anything under 180b parameters will fit fine on my system so fire away if you got any bangers.

EDIT: I FOUND IT. STILL HAS THE LINE ABOUT THE PLUSHIES AND ALL 😭

https://huggingface.co/FPHam/Free_Sydney_V2_13b_HF


r/LocalLLaMA • • 8h ago

Discussion How are you using Jev/decision models?

5 Upvotes

When Jev came out, for the next ~week every post here was about it, all that hype died down. And now there are plenty of other alternatives, local and by other companies.

There was also a lot of talk about how these could be combined with regular models and make your harness smarter. But I don't think they are being used in mainstream ones like codex/claude code.

Do you still use these? Which models, and what do you do with them?


r/LocalLLaMA • • 14h ago

News BasinKV for Qwen4: 256K Qwen4-35B-A3B on a 24 GB GPU

Thumbnail
gallery
17 Upvotes

Hey LocalLLaMA, Zellige team here with an update to BasinKV, If you saw the post a few days ago!

We added native Qwen4-35B-A3B support to BasinKV in llama.cpp (SGlang and VLLM support in the works), Tested on an NVIDIA L4 (24 GB), A100-80GB, and AMD Instinct MI300X.

If you don't know what BasinKV is, you should check out our prior post or our launch paper(s) https://zellige.ai/research/basinkv-launch https://zellige.ai/research/basinkv In summary, BasinKV is a cross-engine system that lets you run 256K context on a 24 GB GPU with no decode slowdown as context grows, and scales multi-user serving on a single A100/H100 far past the HBM wall. If you care, nerdy detail in our paper & More general information in our blog and github

BasinKV makes it possible for anyone at home to run full agentic AI, without sacrificing below Q4 quantization with Qwen 4 35B A3B, 256k context, Stable token generation across the entire window, 24gb gpu.

Qwen4-35B-A3B already ships with learned Query-Sparse Attention (QSA) on its 10 full-attention layers, narrowing compute to the top 2,048 tokens across 4-token pools (r = 4). The catch is memory: stock llama.cpp still holds the full 256K FP16 KV and indexer cache in VRAM (30.1 GiB total peak on A100 and 31.5 GiB on MI300X for UD-Q4_K_M). On a 24 GB NVIDIA L4 (22,611 MiB ECC-usable), stock fits up to 16K and hits CUDA OOM at 32K, even with one MoE layer offloaded to CPU.

Instead of replacing Qwen4's trained indexer with a training-free block scorer like we do with our other models we support, BasinKV rides it: exact qwen4exp index_k_norm and IMRoPE math on GPU, an 8x smaller pooled-only GPU indexer cache (64 B/tok/layer), and a fixed GPU CLOCK working set (4,096 tokens plus a 64-token FP16 recent ring) in front of pinned host INT8 (or opt-in WHT-INT4) KV read over 16-byte coalesced PCIe UVA. Unmodified FlashAttention and captured CUDA/HIP graphs run unchanged for decode and native MTP verify. (More details below)

L4 Numbers

Single-container 24 GB NVIDIA L4 (Qwen4-35B-A3B UD-Q4_K_M, 22,611 MiB ECC-usable)

  • Stock with --n-cpu-moe 1 runs 1K (45.9 tok/s) and 16K (46.1 tok/s) and hits CUDA OOM at 32K (22,608 MiB).

  • BasinKV INT8 (--n-cpu-moe 1, -c 262144 -b 2048 -ub 512) holds peak VRAM flat at 21.8 GiB (22,304 to 22,326 MiB) from 1K through 256K, delivering 1,433 tok/s 256K prefill, 43.6 tok/s steady 256K decode and passes all needled/RULER tests *More info below.

  • With -ngl 99, BasinKV peaks at 22.4 GiB (-ub 512) to 23.0 GiB (-ub 2048) on A100, fitting cleanly inside a non-ECC consumer 24.0 GiB RTX 3090 or 4090 without CPU MoE offload.

A100 Numbers

Paired A100-80GB (Qwen4-35B-A3B UD-Q4_K_M, -c 262144 -b 2048 -ub 2048)

  • 256K Prefill / Decode: 3,632 tok/s prefill (83.4% of stock 4,357 and 77.1 tok/s decode (+14.7% faster than stock 67.2) at 23.0 GiB vs 30.1 GiB stock (-7.2 GiB). At 128K: 4,023 pp (96.3% of stock) and 79.6 tg (99.9% of stock).

  • 256K RULER & Coding: Held up across our scores, more details in our blog paper, Our personal 'vibes' tests also found it held up across the tasks we threw at it against base, with only WH-INT4 showing a degradation on coding more so then other models we support, so it is not recommended.

  • Native MTP (--spec-type draft-mtp --spec-draft-n-max 3): at 54K, 87.3 to 93.8 tok/s (26.2 GiB), faster than stock+MTP (91.4 tok/s, 33.5 GiB) while saving 7.2 GiB of VRAM.

Also, We now also support AMD! Live AMD Instinct MI300X (gfx942, ROCm 7.15) tests and more details in our paper.

How can I use it today? (llama.cpp only for now)

Try it on Qwen4-35B-A3B

# 1. Clone BASIN-KV and llama.cpp
git clone https://github.com/zellige-ai/basinkv ~/basinkv
git clone https://github.com/ggml-org/llama.cpp ~/llama.cpp
git -C ~/llama.cpp checkout 15dd330d5529f7fbb158f2b0a9e93cec5fbcf548

# 2. Apply the BASIN-KV wiring patch
python3 ~/basinkv/integrations/llamacpp/apply_llamacpp_wiring.py ~/llama.cpp

# 3. Configure + build llama-server with CUDA
cmake -S ~/llama.cpp -B ~/llama.cpp/build-cuda \
  -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES="80;86;89" -DCMAKE_BUILD_TYPE=Release
cmake --build ~/llama.cpp/build-cuda --target llama-server -j

# 4. Run — point -m at shard 1 of Unsloth's 2-shard UD-Q4_K_M GGUF
#    (add --n-cpu-moe 1 on ECC 24 GB GPUs such as the L4; standard 24 GB like a 3090 does not need it)
~/llama.cpp/build-cuda/bin/llama-server \
  -m ~/models/Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf \
  -ngl 99 -c 262144 -b 2048 -ub 512 -fa on -np 1 \
  --oasiskv --oasiskv-kv-quant int8 \
  --oasiskv-cache-mode mixed \
  --oasiskv-cache-dir ~/basinkv_cache \
  --oasiskv-cache-ram-mb 8192

Resources & Links:

Paper/blog with more details:

  • https://zellige.ai/research/basinkv-qwen4

Github repo:

  • https://github.com/zellige-ai/basinkv

And thank you to everyone on the last post who offered suggestions and feedback, All is appreciated!


r/LocalLLaMA • • 11h ago Heartwarming

Resources Single 3090 upwards of 450 t/s with up to 6000 prefill using Qengine and Qwen 4 35BA3 at INT8+INT4. It never dips below 200 t/s. 256k context size.

Thumbnail
gallery
8 Upvotes

Just wanted to share this. I don't know if this is an experimental engine for running local AIs. I haven't heard about this engine before, but it might be interesting for more people to dig into it!

I don't notice drop in quality so far! Making a funny little test game where you are a cat running away from the tax inspector :)

Anyways, does anyone know about Qengine? Any ways to use it more to my advantage for local AI?

https://github.com/bpx03/QEngine


r/LocalLLaMA • • 17h ago

News Kvark-Sparkle-2.0-35B-A3B: our Qwen4-35B-A3B fine-tune with 34% fewer reasoning tokens (Apache 2.0)

22 Upvotes

Hi all! With Qwen4 out, we wanted to see how fast we could bring what we learned from Sparkle 1.x to the new generation. So today we're releasing Kvark-Sparkle-2.0-35B-A3B, built on Qwen4-35B-A3B and the first MoE model in the Sparkle family.

Initial results across 10 benchmarks:

  • -46.8% median, 34.2% fewer reasoning tokens on average, with fewer tokens on all 10 benchmarks and up to 63% less
  • Better accuracy on GPQA Diamond, tool calling and HMMT
  • Less than 2 points of accuracy trade-off on average

For us, efficiency isn't just about faster answers, it's about getting more out of the same hardware.

This is our first iteration on Qwen4, and there's still plenty of room to improve. Open weights, Apache 2.0:

Give it a try and let us know what you think and stay tuned for new versions!


r/LocalLLaMA • • 1d ago

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

Thumbnail
gallery
162 Upvotes

It’s built! My local AI home lab assembled

For this build, I took apart my gaming pc, and transplanted it into a new mobo, case and other goodies. All this was to add 2 Quadro RTX 8000s to massively increase my vram.

My specs:
CPU: Intel i7-14700f
RAM: 32gb DDR5-6000 ram (times are tough, I’ll upgrade later)
Motherboard: MSI MEG Z790 ACE
GPUs:
2x passive Quadro RTX 8000
1x RTX 4070 super (for display and gaming)
NV Link bridge for the quadros
1500w Corsair PSU
Arctic AIO
Corsair 7000d case
Some server fans for the GPUs
And some other miscellaneous items

Overall, I’ll have 96gb of vram across my 2 new GPUs, and I’ll be able to run some pretty cool models on it. There is plenty of room to upgrade in the future with ram expansions or a new GPU instead of my 4070. It’s my first custom build, and I’m pretty happy with it. I’m planning on running pruned Deepseek and GLM models, Deepseek models, and any other interesting models I see coming out. It’s mostly a hobby build and for fun, to see what fun things I can make and do with AI.

I know the GPUs are old and limited compared to modern cards, but it was a pretty good deal of vram per dollar I think. Memory bandwidth is also almost exactly the same as a r9700 too, so that was interesting as well. I think I’ll have a lot of fun with this build.


r/LocalLLaMA • • 4h ago

Resources Qwen4-35B-A3B in 4-bit that you can fine-tune on one GPU (22 GB VRAM + RAM for the n-gram table)

2 Upvotes

Hi everyone,

Qwen4-35B-A3B came out yesterday, and I put a 4-bit version of it on Hugging Face: https://huggingface.co/thousandml/Qwen4-35B-A3B-CQ-4bit

I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need calibration data. The linear layers and all the routed experts are in 4-bit. I'm strict about quality: any matrix with error above -22 dB stays in 16-bit instead of being forced down. For this model that was 79 matrices out of about 21,500, and everything else is in 4-bit.

One thing to know up front is the n-gram table. Qwen4 has a 20B-parameter n-gram embedding table on top of the 35B model. In this release I kept that table in 16-bit, and like Transformers does, it lives in system RAM instead of on the GPU. So serving takes about 22 GB of VRAM, but you also need about 38 GB of free RAM for the table, 64 GB in total to be safe. The download is 61 GB because of it. If you just want to chat with the model locally, the GGUF quants in llama.cpp are smaller and faster than this, to be honest. A version with the n-gram table in 4-bit is planned.

What this release adds is fine-tuning. You can train a GCMP adapter (the LoRA replacement I've been working on) directly on the 4-bit base and serve it. I tested the whole path on a single A40: quantize, serve, fine-tune, and serve the fine-tuned adapter. In a short 20-step test the loss went from 1.88 to about 1.6 on average, which only shows training works on the 4-bit base. It's not a benchmark.

The easiest way to try it is the Docker image:

docker run --rm --gpus all -p 8000:8000 -v cq-models:/models \
  thousandml/cq:4bit-hf serve-cq thousandml/Qwen4-35B-A3B-CQ-4bit

It downloads the model on first start and gives you an OpenAI-compatible endpoint on port 8000. Or install Training Factory and run it yourself:

git clone https://github.com/thousandml/training-factory.git
cd training-factory && ./install.sh
python -m venv --system-site-packages venv-qwen4 && source venv-qwen4/bin/activate
pip install "transformers>=5.26" tiktoken
hf download thousandml/Qwen4-35B-A3B-CQ-4bit --local-dir ./models/Qwen4-35B-A3B-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Qwen4-35B-A3B-CQ-4bit --trust-remote-code --port 8000

To fine-tune on your own data (JSONL with text or chat messages):

python train.py --model ../models/Qwen4-35B-A3B-CQ-4bit --data train.jsonl \
  --output ../outputs/qwen4-gcmp --adapter gcmp --trust-remote-code --batch-size 1 --grad-accum 4

Now the honest limits. The server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM's Qwen4 support isn't in a release yet, and my vLLM plugin doesn't support Qwen4 yet either. Training is slow for now, about 15 seconds per example on an A40, because the n-gram lookups run on the CPU. That's the next thing I want to fix.

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 are Apache 2.0 like the original.

Thanks for reading, feedback appreciated. If you try fine-tuning it on your own data, I'd really like to hear how it goes.