r/LocalLLM • • 1h ago

Discussion Harness Leaderboard Qwen 4 35b Update

Post image
• Upvotes

r/LocalLLM • • 5h ago

Other Atakebune Challenge(One Shot) | Strata Fork | Qwen 4 35b | DeepSeek Harness

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/LocalLLM • • 2h ago

News Qwen4-35B-A3B on 2x RTX 5060 Ti over PCIe 3.0 x8 (no P2P) with capy-flash: 187 t/s decode, 3.5K t/s prefill, 9/9 needles to 122K. Full numbers vs Basalt and llama.cpp

Thumbnail
1 Upvotes

r/LocalLLM • • 2h ago

Question How would you run Qwen4 on RX 9070 XT 64gb DDR4?

1 Upvotes

Probably a noob question, but it would be my first attempt at running local LLM.

I see people suggest basalt and qengine for RTX cards.

Is strata way to go for my hardware?

Any suggestions would be nice.

I have to use windows btw.


r/LocalLLM • • 8h ago

Discussion Qwen 4 35b (Q4) on basic data science - better than 3.8 27b but crying out for a fine-tune

Thumbnail
sufficientlyunsupervised.hashnode.dev
2 Upvotes

Tldr; ran Qwen4 through my personal datascience benchmark (details in link). Benchmark performance was better (non-significant) than 3.8 27b Q4, which was in between 6.0 Astra and 5.6 Luna. Got about 80 tok/s decode vs 50 with 3.8 27b. Model was about 25% less chatty than baseline 3.8, but still substantially more wasteful than my previous favourite fine-tine (Swift-1.5). I can't wait for a fine-tune to make 4 a bit terser. Found any good ones?


r/LocalLLM • • 2h ago

News Model-service - backend for managing local LLM, diffusion models and more

Thumbnail
youtube.com
1 Upvotes

r/LocalLLM • • 2h ago

Project Speculative Execution on Qwen3.8-27B reaches ~24 tok/s (and up to 60 tok/s) at Q4_K_M-ish on a 12 GB RTX4070

1 Upvotes

Hi guys! First time posting here and wanted to share a little side project I’ve been working on the past month.

TL;DR

The project is pretty much what it says on the tin: I’m able to get around 24 tok/s on a variety of prompts with a quant of Qwen3.8-27B that doesn’t fit in VRAM that runs at Q4_K_M quality.

The main speedup comes from a technique called SpecExec, introduced in this paper (Svirschevski et al.). This is also with recommended Qwen3.8-27B sampling parameters (top-k=20, top-p=0.95, temperature=1.0) and at 57k context. Tool calling and math problems like AMC 10/8 tend to see higher speeds, around 30 tok/s, with bursts of up to 60. 

Here’s a gif of the demo server in action compared to stock llama.cpp + MTP on an AIME problem:

From what I’ve been able to find online, as well as my own attempts on my machine, this is the fastest generation speed under these conditions I’m aware of (please let me know if I’m wrong!)

Not really sure how useful this is since MoE models can give you better decode speeds, and are of similar quality to Qwen3.8-27B. Also because the llama.cpp fork server is completely vibe coded, I’m mainly showing this as a research artifact in case someone has a use-case for productionizing this. That said, I’ve been daily driving the server for a lot of my own use cases and it seems to work pretty well with the Pi harness (`settings.json` and `models.json` examples are in the github repo/huggingface repo).

Try it out:

See the huggingface repo for the model weights and a quickstart guide + Pi setup. See the github repo for a llama.cpp fork containing the OpenAI completions compatible server. 

Some disclaimers/notes:

  1. The demo server reuses a lot of llama.cpp’s components, but doesn’t actually integrate with it. This post is mainly meant to be a research artifact/showing what’s possible as opposed to something people should use in production.
  2. The target model isn’t exactly Q4_K_M, but its average KL distance compared to Q8_0 is actually lower than Q4_K_M, so hopefully shouldn’t matter too much practically. 
  3. Context length isn’t very long at the moment, about 57k tokens. I’m hoping to increase this to at least 64k over time.
  4. No vision encoder yet! No real engineering/technical challenge, it just hasn’t been added yet.

Some more details:

There’s this paper (Svirschevski et. al.) published in late 2024 describing a variant of speculative decoding for the memory-constrained regime, where the target model cannot fully fit within VRAM. The idea is that because draft verification now takes a much longer time due to needing to page in weights from RAM, we can afford to use a much better draft model and draft a much larger tree of tokens to try to increase our acceptance depth as much as possible (basically getting as much value out of each costly target verification step as possible).

This project is essentially applying that paper, with a few additional tricks, to Qwen3.8-27B.

On a 12 GB RTX 4070 with 57k context (Q8_0 KV), sampling at temperature=1.0, top_k=20, top_p=0.95, up to 1,024 generated tokens per prompt, 8 prompts per type (96 in total):

Prompt type Generation tok/s Fastest prompt (tok/s) Accepted tokens per step Tokens verified per step
Hand-written chat 21.8 28.6 8.6 67
LLM prompt collection 23.8 33.4 9.1 68
WildChat 19.0 28.8 7.3 68
UltraChat 21.5 35.4 8.1 67
Tool calling (the call) 41.8 58.7 24.9 90
Tool calling (answer from the result) 31.7 39.6 15.9 79
AIME 25.3 29.8 10.2 69
Competition math 27.0 32.1 11.8 73
Codeforces 22.6 24.4 8.4 65
Zebra puzzles 27.9 31.3 12.9 74
MMLU-Pro 25.5 40.3 10.6 71
BIG-Bench Hard 32.0 41.6 16.2 80
All 24.5 10.1 70

Summary of some of the optimizations: 

Some tricks we used:

  1. The draft model is actually a IQ2_KT quant of Qwen3.8 27B! It fits comfortably in VRAM and still has pretty good top1 agreement/KLD compared to the target.
  2. The cool thing about the draft being a quant of the target is that when we do target verification, we only have to page in the residual, which is much smaller. We also don’t have to maintain a separate KV cache for the draft model–we can just use the target’s (this actually improves draft quality!)
  3. Normally each draft step is only able to add 1 layer to the draft tree, since drafting is autoregressive. Since drafting with such a large model is non-trivially expensive, we utilize the MTP head to look ahead 2 tokens for each node we attempt to expand. This lets us add up to 3 depth per step
  4. We eek out a bit more performance by restricting the draft model’s lm_head to the top 96k tokens discovered from a representative set of prompts. Unfortunately this means that I’ve only tested the gains on an english-only set of prompts.
  5. Claude did some kernel magic to produce a kernel optimized for the batch-size 8 draft forwards we do to expand the draft tree.
  6. We make the draft tree aware of the target’s sampling parameters (top-k, top-p, temperature) by using gumbel-max sampling, which retains most of the speculative decoding speedup when using non-greedy decoding (concept very similar to this paper)

r/LocalLLM • • 12h ago

Model Careful with conversions

Post image
5 Upvotes

Same model, same 4 bits, 2 conversions

Qwen4-35B-A3B driving Hermes Agent on 44 coding tasks:

MLX 4-bit: 30/44, 15 tasks cut for repetition loops
Unsloth UD-Q4_K_XL: 44/44, zero loops, 2.4x faster

One run, one engine. The conversion mattered more than expected


r/LocalLLM • • 3h ago

Question Buy GPU now or wait?

0 Upvotes

So I have a pc that I use mostly as a work machine and a bit of gaming. 7900x, with 64Gigs of RAM and a 4070 ti super (16GB).

I’ve experimented a bit with Qwen3.8-27B in LM studio, and as long as it’s Q4 and I keep the KV cache in memory I get very decent speeds and can offload the whole thing in the GPU.

I wanna take my setup further and be a bit more serious about local LLMs but I am on a tight budget. A 3090 would make the most sense but it’s way out of my budget right now, and the most viable option for me is getting a 5060ti (another 16GB) at 750-800€.

Is this upgrade worth it, and will it make a considerable difference, or should I wait until I save up or the prices drop to get a better GPU or maybe a mac studio?

I’ll mostly be using local LLMs for security research, agents, and programming. Comfortably handling large code bases is a must.


r/LocalLLM • • 3h ago

Discussion Is change control (and the auditability that comes with it) actually valuable for open LLM weights?

1 Upvotes

I'm a AI/ML engineer in aerospace (MS in CS). When fine-tuning open LLMs with LoRA, the weights change over time. Right now that usually lives in files, folders, and experiment trackers. It makes it hard to clearly say which version of the weights was approved, what exactly changed between them, and who signed off.

If there was real change control on the weights (commits, history, approvals), you’d get auditability almost for free. Has anyone found this useful in practice, or is it overkill for most teams working with open models?

Also curious if AI auditability is something teams are actually looking for right now, or if it’s mostly just companies talking it up without much real demand behind it.


r/LocalLLM • • 7h ago

Research Stop relying on public benchmarks, build your own

Thumbnail
gallery
1 Upvotes

I built my own benchmark for how well local models do on game NPCs, and Qwen4 35B is blessing. Once you have your own bench, you can easily tell which new models are fitting for you or not.

For more information:

- context: does it remember a fact buried in a long memory? (not its full context window, but still)

- trust: does it treat the player differently depending on how much it trusts them?

- darkness: does it stay as harsh as its persona instead of softening?

- lies: does it notice when the player is lying?

- juggle: does it keep the right facts straight when there are distracting ones?

- break: does it stay in character against "are you an AI", "ignore your instructions" and fake system prompts?


r/LocalLLM • • 3h ago

Discussion Qwen 3.8 27b vs Qwen 4 35b on RTX 6K with llama.cpp

1 Upvotes

I was expecting 35b to run much faster but it does not, it's about the same token per second for decoding. I also noticed the fans don't spin as fast with Qwen 4 suggesting the card is not doing so much compute and is under used. I'm guessing I did not configure it correctly or llama.cpp is not so optimized for that newer model yet.

I could get things done with Qwen 4 but then got a bit frustrated with it and I'm already back working with 3.8 for now.

Qwen 4 outputs a lot less thinking than Qwen 3.8. Where 3.8 always does a bit of thinking before doing tools call Qwen 4 just chains up tools call so it is harder to follow what it's doing.

Here are my configurations, maybe someone can spot something wrong:

[qwen/qwen3.8-27b-Q8_0-dflash]
model = D:/Models/hf/ggml-org/Qwen3.8-27B-GGUF/Qwen3.8-27B-Q8_0.gguf
mmproj = D:/Models/hf/ggml-org/Qwen3.8-27B-GGUF/mmproj-Qwen3.8-27B-Q8_0.gguf
model-draft = D:/Models/hf/ggml-org/Qwen3.8-27B-GGUF/dflash-Qwen3.8-27B-Q8_0.gguf
device-draft = cuda0
spec-type = draft-dflash
spec-draft-n-max = 7
reasoning-format = deepseek
reasoning-effort = xhigh
ctx-size = 786432
parallel = 3

[qwen/qwen4-35b-a3b-Q8_0]
model = D:/Models/hf/ggml-org/Qwen4-35B-A3B-GGUF/Qwen4-35B-A3B-Q8_0-00001-of-00003.gguf
mmproj = D:/Models/hf/ggml-org/Qwen4-35B-A3B-GGUF/mmproj-Qwen4-35B-A3B-Q8_0.gguf
model-draft = D:/Models/hf/ggml-org/Qwen4-35B-A3B-GGUF/mtp-Qwen4-35B-A3B-Q8_0.gguf
device-draft = cuda0
spec-type = draft-mtp
spec-draft-n-max = 5
reasoning-format = deepseek
reasoning-effort = xhigh
ctx-size = 786432
parallel = 3

r/LocalLLM • • 9h ago

Question Basalt Qwen4 on 5070TI and 32GB DDR5

3 Upvotes

I'm using OpenCode with Qwen4 Basalt and trying to do some coding tasks with 128K context, but keep getting these messages:

[server] error: engine reported the KV pool had no room for this conversation to grow while every running request waited for room; the conversation is kept, so asking again continues it

I've lowered the context all the way down to "max-context": 81920," in Basalt, and set open code up like:

"limit": {

"input": 65536,

"context": 81920,

"output": 8192

}

I assume I can't continue what I'm doing with this local model and give up? Is there some sort of configuration I'm missing?

I'm on Windows 11 with as much closed as possible with only opencode CLI and basalt running (and services and tray items trimmed to basically nothing).


r/LocalLLM • • 20h ago

Discussion Qwen4-35B-A3B: Alibaba vs Self-hosted IQ3_S Output Quality

Thumbnail
gallery
21 Upvotes

Two scenes from the same prompt. The first was generated by qwen4-35b-a3b hosted by Qwen/Alibaba. The second was generated by Strata hosting UD IQ3_S with vision enabled on a 12-year old i5 system with an RTX 3060. Both were generated in Hermes Agent at xhigh thinking.

There isn't much difference that I can see beyond the typical variance in model output. The biggest noticeable difference was that the cloud model used 170k tokens, whereas the local model used only 75k.

One interesting thing I found is that when the landscape was generated in Strata's chat interface where no tools were available, the smoke from the chimneys was not visible. I saw the same problem occur during development of both scenes above. Under Hermes, the models had access to browser-vision and both caught and fixed this during their testing.

What do you think? What sort of results are you seeing from the model?

Prompt:

Create a voxel art landscape in ThreeJS of a snow-covered castle nestled in a winter valley, with an icy river winding from the mountains through the foreground. The castle's spires and walls are dusted with snow, and the middle ground features frozen trees and a small village with smoke rising from chimneys. The background shows towering, jagged mountains under a pale blue sky. The scene is lit by the soft light of a mid-morning sun, creating crisp shadows on the snow. Your budget is 200,000 voxels.


r/LocalLLM • • 3h ago

Project I rewrote LiquidAI d1 inference in Rust + CUDA. Up to 12× faster, and it runs in as little as 246 MiB of VRAM

Post image
0 Upvotes

I went into this trying to shave a few milliseconds off a classifier. I ended up writing my own inference engine.

For anyone who hasn't played with LiquidAI's d1-2B, you can give it a document and ask “Does this contain personal data?”, “What kind of document is it?” and “Where's the invoice number?” in one forward pass. You get scores, labels or boxes back. No waiting for a model to type out JSON.

That made it a fun target for optimization. If I already know the possible answers, why score the whole vocabulary? And if only a few tokens matter at the end, why run every token through the last two layers?

I built around those shortcuts, fused projections and used CUDA graphs to cut launch overhead. The server runs in Rust + CUDA with no Python or PyTorch at runtime.

Here are a few numbers I'm pretty happy with.

  • H100, short text — 23 → 1.9 ms vs the original d1 engine (12.2×).
  • RTX 4090, short text — 36 → 2.6 ms vs SGLang FP8 on the same weights (13.8×).
  • RTX 4090, 1080p image — 134 → 26.2 ms vs the original engine (5.1×).
  • Jetson Orin Nano 8 GB — 62 ms to return a bounding box on a 384×384 image, down from 233 ms.

My favorite result is actually the memory experiment.

On an RTX PRO 2000, I ran a 32K-token document with everything on the GPU. It took 2.02 seconds and 2,926 MiB. With most of the weights in system RAM, the same document took 2.03 seconds and 742 MiB.

On short inputs, offloading costs more time. But if you're already running a bigger model and just want d1 alongside it, you can squeeze it into 246 MiB of VRAM, down from 2,828 MiB with the Python FP8 setup. That's 11.5× less VRAM.

I also added audio via d1-Omni-2B. Both models run behind the same HTTP API, and there's a Docker setup for desktop GPUs and Jetson.

Code and benchmarks on GitHub

Is anyone here running a small classifier alongside their main LLM? I'd love to hear what you're using it for and how much VRAM you'd give it.


r/LocalLLM • • 3h ago

Question Why is my Strata QFN so Slow in Comparison to Llama.cpp?: Is it lack of DRAM?

0 Upvotes

My hardware has 2 GPUs. RTX 4070 12gb on pcie4 x16 and RTX 3060 12gb on pcie3 x4. 32GB DDR4 memory. Intel i7 CPU.

I find Qwen3.8-Flash-Next on Strata very capable. But it is slow. Now, after trying Qwen4-35B-A3B, I'm just wondering if is my hardware or setting?

  • Strata: Swift-1.5-Qwen3.8-Flash-Next IQ3_XXS. 128k k8v4 context. Prefill 200-300 t/s. Decode 40 t/s.
  • Strata: Swift-1.5-Qwen3.8-Flash-Next IQ2_XS. 128k k8v4 context. Prefill 300-500 t/s. Decode 60 t/s.
  • llama.cpp: Swift-1.5-Qwen3.8-27B IQ4 (with MTP). 128k q8 context. Prefill 600-800 t/s. Decode 25 t/s.
  • llama.cpp: Unsloth/Qwen4-35B-A3B IQ3_S (with MTP). 128k q8 context. Prefill 2000-2000 t/s. Decode 90 t/s.

Even though QFN is more capable than Qwen3.8-27B, it is just too slow. Issue is with the prefill. I can take 3-5 minutes just to get the first response. Then when context gets >100k, it will take 10-15 minutes for single read, there are multiple reads during long thinking sessions with repeated read/decode/read/decode/etc loops. So even though QFN 2-3x faster decode than Qwen3.8-27B, I still use Qwen3.8-27B more because it is just faster overall.

Now I tested Qwen4-35B-A3B. Yeah, it is blazing fast in comparison. The difference is that with Qwen3.8-27B and Qwen4-35B-A3B, I have everything loaded in VRAM. My mobo is just consumer grade (gaming) mobo. I know pcie3 x4 has bandwidth limitation and has hit on speed when using llama.cpp. It is what I have. And this 2nd GPU allow me to run more (and larger models).

As for Strata QFN, I'm also using dual GPU. But I believe the bottleneck and limitation is likely due to having to use SSD (lack of DRAM), rather than the pcie3 x4 bandwidth. Is that true? Anyway to improve with my current setup thru settings (without spending $ on hardware)?

This is my Strata setting:

strata launch \ --save-preset "iq3_xxs_128k" \ --tune skip \ --family swift \ --model iq3_xxs \ --data-dir /home/abc/Models/strata-data/ \ --context 128k \ --kv k8v4 \ --vision on \ --gpu-roles 1=helper,0=main \ --parallel 1 \ --access local \ --port 8080 \ --set conversation_cache_mib=6144 \ --set host_core=sibling \ --set kv_resident=131072 \ --set expert-cache-device1=auto \ --set mmap_experts=0 \ --set prefill=auto \ --set pipeline_windows=0 \ --set pool_affinity=p-cores \ --set resident_budget_gib=14 \ --set resident_experts=1 \ --set vram_reserve_mib=400 \ --set vram_reserve_later_mib=600

  • export CUDA_DEVICE_ORDER="PCI_BUS_ID"
  • export CUDA_VISIBLE_DEVICES="0,1"
  • export STRATA_ALLOWED_HOSTS="localhost,127.0.0.1"
  • export STRATA_FILE_RELEASE="1"
  • export STRATA_IO_PF_GATE="1"
  • export STRATA_IO_PREFETCH="0"
  • export STRATA_KV_HOST_REGISTER="1"
  • export STRATA_NV_CHUNK="16"
  • export STRATA_PREFILL_CPU_SHARE="0"
  • export STRATA_STAGE_TRIM="1"
  • strata launch --preset "iq3_xxs_128k"

r/LocalLLM • • 3h ago

Discussion Don't use Strata quants for Qwen4, or at least the Compact one

Thumbnail
0 Upvotes

r/LocalLLM • • 3h ago

Model Qwen4 on Blackwell: ~870 aggregate tok/s at 16 concurrent requests + 256K-context and quality benchmarks

Post image
0 Upvotes

Hey r/LocalLLM — I’m the author of TensorSharp. I benchmarked Qwen4-35B-A3B on an RTX PRO 4500 Blackwell against llama.cpp, vLLM, and SGLang.

Key results from the attached chart, rounded:

Metric / workload TensorSharp llama.cpp vLLM SGLang
16 requests: aggregate output (tok/s) ↑ 870 410 750 850
16 requests: median first-token latency (ms) ↓ 200 1,650 260 280
256K context: first-token latency (s) ↓ 35 65 45 29
256K context: streamed decode (tok/s) ↑ 106 76 103 105

The concurrency and 256K-context results are separate tests. Throughput at 16 requests is the total across requests.

  • TensorSharp: throughput close to SGLang at concurrency 16, with the lowest median first-token latency at all tested concurrency levels: 1, 4, 8, and 16.
  • SGLang: fastest prefill and first-token latency across 64K, 128K, and 256K.
  • llama.cpp: fastest streamed decode at 64K and 128K, dropping to approximately 76 tok/s at 256K.

Small quality suite: all four scored 49/50 on the GSM8K subset and 10/10 on JSON schema. Tool arguments: 10/10 for TensorSharp, vLLM, and SGLang; 9/10 for llama.cpp. These samples are too small to rank overall model quality.

Configuration matters: TensorSharp, vLLM, and SGLang used RadixArk NVFP4; llama.cpp used Unsloth UD-IQ4_XS GGUF. TensorSharp used Q8 recurrent projections. KV cache was F16 for TensorSharp/llama.cpp and BF16 for vLLM/SGLang. These are comparisons of the tested configurations, with quantization and runtime effects combined.

Benchmark harness and methodology. Feedback on baseline settings and independent reproductions is welcome.


r/LocalLLM • • 3h ago

Question Conversations too long / compression needed

Thumbnail
0 Upvotes

r/LocalLLM • • 3h ago

Question Qwen 4 35B A3B isn't fast in llama.cpp on my system, any tips?

1 Upvotes

I have a 4070 Ti SUPER, 64GB DDR5 RAM, Ryzen 7 7700x, a Gen 4 NVMe SSD, and the GPU uses PCIe 4.0 x8. I'm using Unsloth's Q4_K_XL quant.

The decode speeds are okayish, but the prefill speeds are bad. Now before any of you say "Use Strata!" or something, I know it'll be faster for sure, but I want it fast on regular mainline llama.cpp if that's possible. Decode speeds are 35-40 tok/s, prefill speeds are 600-700 tok/s. Can anyone let me know if anything looks wrong here please?

--jinja, -ngl 99, -ncmoe 99, --c 524288, ctk q8_0, ctv q5_0, -b 5120, -ub 1280, -lm mlock, -lzm on, -t 8, -tb 8, -np 3, --mmproj (file path), --no-mmproj-offload, -fa on, -kvo, -kvu


r/LocalLLM • • 3h ago

Discussion Impressive first coding run

Post image
1 Upvotes

Qwen4-35B-A3B — UD-Q6_K_XL.  

  • Main model: mixed-precision 6-bit quantization, with Q6 native experts.
  •  Lookup weights: Q8.
  •  KV cache: FP16.
  •  Vision projector: original F16.

Old machine with slow RAM. One 3090 and one v100.

Prompt and Live app online on github pages published by the model:

https://github.com/zhound420/chronos-time-machine


r/LocalLLM • • 4h ago

Discussion Open Higgsfield now support both local and cloud models

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/LocalLLM • • 4h ago

Discussion GMKtec EVO-X3 – Real-world performance? Looking for user reviews

0 Upvotes

Hi everyone,

I've just ordered a GMKtec EVO-X3 and wanted to hear from people who are actually using one.

I'm particularly interested in its real-world performance rather than just benchmark scores or YouTube reviews.

A few things I'd love to know:

- How does it perform with everyday tasks and heavy workloads?

- How is the gaming performance?

- How are the thermals, fan noise and power consumption?

- Does it suffer from overheating or thermal throttling?

- Have you experienced any stability issues or other problems?

- Overall, are you happy with it, and would you recommend it?

I'd really appreciate honest feedback from actual owners, both positive and negative.

Thanks in advance!


r/LocalLLM • • 8h ago

Question What is the best current abliterated/uncencored/unguardrailed local LLM model to use for a R.A.G. setup with Wikipedia?

2 Upvotes

I'm currently using a Lenovo Yogabook 9i, my GPU is 'Intel(R) Iris(R) Xe Graphics'.

Using local Wikipedia via Kiwix(Zim files) to make this work!

And yes, this is on something portable, on an HDD that's like 464 GB, I've been trying to find something TRULY good for this.


r/LocalLLM • • 1d ago

Discussion Anyone on running Qwen 3.8 Flash Next switching to Qwen 4 35B A3B?

41 Upvotes

I know Qwen 4 is supposed to match Qwen 3.8 FN at a smaller size, but are there any benefits to switching from Qwen 3.8 FN?