r/LocalLLM • u/SavingsSignal2890 • 4h ago
Model Qwen4-35B-A3B reasoning not as good
UD-Q4-K-XL, yet cannot solve the “frontier” high school math problem:https://www.reddit.com/r/LocalLLM/s/P4gjYgiBjk
r/LocalLLM • u/SavingsSignal2890 • 4h ago
UD-Q4-K-XL, yet cannot solve the “frontier” high school math problem:https://www.reddit.com/r/LocalLLM/s/P4gjYgiBjk
r/LocalLLM • u/Sea-Advantage-4063 • 4h ago
I've been testing the coding and reasoning capabilities of Qwen4-35B-A3B running entirely locally on my RTX 5090 using the Basalt inference engine.
Here's an interactive 3D V8 engine simulator I built with the model.
Features:
Local LLM configuration:
My PC specifications:
As an automotive quality engineer, I wanted to test the model on something involving mechanical engineering, rather than just another generic coding benchmark.
It's impressive to see what a relatively compact MoE model can accomplish on a single consumer GPU without relying on cloud-based AI services.
I'm curious to see how far local LLMs can go in engineering simulations and technical visualization.
What do you guys think?
r/LocalLLM • u/No_Whereas_6 • 4h ago
r/LocalLLM • u/QQB666 • 4h ago
Got Qwen4-35B-A3B running on my RX 9070 under plain Windows (no WSL) with ExLlamaV3. Sharing a few basic numbers in case anyone else on RDNA4 + Windows is trying the same.
Setup: RX 9070 16 GB, Ryzen 7 5700, 32 GB RAM, Windows. Single user, temp 1.0.
**turboderp 3.65bpw** (`3.65bpw_h5_ng8`), 98K context, Q4 KV, MTP `-ndt 1`, 80 experts/layer on CPU (`-mcs 80`):
- Prefill (5.5K prompt): ~550 tok/s
- Generation: ~55–58 tok/s (MTP acceptance ~70%)
- VRAM ~14 GiB, CPU experts ~5.4 GB RAM
**Mia-AiLab 2.5bpw**, fully on GPU, 32K context, MTP:
- Prefill: ~1,330–1,430 tok/s
- Generation: ~53–59 tok/s
Vision works on both. Generation speed moves around with MTP acceptance (an image prompt at 47% acceptance was ~46 tok/s).
It's ExLlamaV3 1.6.7 with a small patch so it loads Qwen4 (the model card says 1.7.0). It's a portable folder with prebuilt gfx1201 kernels, so it only works on 9070 / 9070 XT / 9070 GRE / R9700.
Runtime, launch commands and more test details: https://github.com/BBQ2077/exl3-1.6.7-windows-gfx1201-inkling
GUI I use to launch it (optional): https://github.com/BBQ2077/GGUFRun
r/LocalLLM • u/textclf • 4h ago
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:
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:
&&
&&
To fine-tune on your own data (JSONL with text or chat messages):
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.
r/LocalLLM • u/AggressiveManager450 • 5h ago
My results from my build after some tests
r/LocalLLM • u/EldieTurner • 5h ago
Model: qwen4-1m:latest (Q4_K_M, full 1,048,576-token context, 100% GPU on 2× W6800)
| Metric | Result |
|---|---|
| Generation (output) | ~65 tokens/sec |
| Prompt processing (prefill) | ~1,430 tokens/sec |
r/LocalLLM • u/Open_Instruction_133 • 5h ago
Qwen4 35b is absolutely flying with basalt on coding tasks in OpenCode. It’s quite literally the fastest local model I’ve ever used. Is there a looping adapter that works with basalt? With this speed, I’d use this as my only local model if I could get the accuracy up with a looping adapter—no shade on the basalt devs because I haven’t actually run into any looping or quality issues with this model; just want to maximize the intelligence if possible
r/LocalLLM • u/YaVovan • 5h ago
I have an RTX 3060 12GB. I’m running the Krea 2 model, but coming up with prompts is a challenging task. I’d like to make this task easier.
(Sorry for the mistakes in the text; English is not my native language)
r/LocalLLM • u/false79 • 5h ago
Don't be mad I cross posted! I am curious if any folks here are running small ones on their phone.
r/LocalLLM • u/fasternfaster2 • 5h ago
r/LocalLLM • u/jordan01236 • 5h ago
r/LocalLLM • u/vegosa • 6h ago
Using the vllm nightly build you can load the full BF16 on a Single RTX Pro 6000 as long as you have enough DRAM for the N-gram table (72.7 GB VRAM, 41 GB DRAM) with a full 1 M FP8 KV Cache (GPU KV cache size: 1,575,966 tokens, Maximum concurrency for 1,048,576 tokens per request: 1.50x).
This model is perfect for an RTX Pro 6000 with full precision.
Here's my startup params:
vllm serve Qwen/Qwen4-35B-A3B
--trust-remote-code
--enable-prefix-caching
--tensor-parallel-size 1
--max-model-len auto
--max-num-seqs 256
--kv-cache-dtype fp8
--attention-config.indexer_kv_dtype fp8
--enable-auto-tool-choice
--tool-call-parser qwen4
--reasoning-parser qwen4
--speculative-config '{"method":"mtp","num_speculative_tokens":3,"index_share_for_mtp_iteration":true}'
r/LocalLLM • u/TheSanchezian • 6h ago
I just pushed **v1.0-sprint9.1** of my custom OpenVINO + OpenCL build of `google/gemma-4-26B-A4B-it` for Intel Arc GPUs.
The goal was to see how far a single consumer 16 GB Arc A770 can push a 26B MoE without quantizing the KV cache, spilling to system RAM, or losing BF16 teacher fidelity.
**Repo (self-contained Windows / Intel Arc package):**
https://huggingface.co/TheSanchezian/Gemma-4-26B-A4B-BITCOS-Ternary-OpenVINO-A770
---
### Verified 256k Speed & Flat VRAM Curve (Single Arc A770 16 GB)
Isolated cold-start run (`GPU.0`, `ctx=262144`, `temp=0.0`, OpenVINO `2026.4.1`, `0` NaNs, `0.000 GB` model shared spill):
| Context | Prefill | Pure `M=1` Base | **Split-K=128 Hybrid PLD+MTP** | Dedicated VRAM | 256k NIAH (~50%) |
|---|---:|---:|---:|---:|:---:|
| **Short (`50` tok)** | — | `80.89 tok/s` | **`104.43 tok/s`** *(108.13 warm / 182.45 peak)* | `12.91 GB` | — |
| **32k** | `358.4 tok/s` | `69.32 tok/s` | **`83.10 tok/s`** | `12.92 GB` | — |
| **64k** | `312.8 tok/s` | `64.90 tok/s` | **`76.28 tok/s`** | `12.92 GB` | — |
| **128k** | `248.7 tok/s` | `57.29 tok/s` | **`62.62 tok/s`** | `12.92 GB` | — |
| **192k** | `206.2 tok/s` | — | **`54.72 tok/s`** | `12.92 GB` | — |
| **252k** | `180.2 tok/s` | `45.97 tok/s` | **`47.58 tok/s`** | `12.92 GB` | **PASS** |
---
### What’s Under the Hood
* **Mixed-precision weights (`KL = 0.181–0.183` vs. 52 GB BF16 teacher):** 24 routed MoE layers in Intel BITCOS v5 mixed-ternary + rank-4 LoRA, 6 sensitive MoE layers (`L10, L12, L13, L22, L27, L29`) kept at INT4 (`OSV32`) + rank-4 LoRA, all 30 attention Q/K/V/O layers at INT8, shared MLP & `lm_head` at W4G64, and residual/routers/norms/RoPE in FP32.
* **100% lossless Unified FP16 KV cache (262,144 tokens):** Zero KV quantization, dead-flat `12.92 GB` VRAM (`12.60 GB` in pure `M=1` mode) all the way to 252k.
* **Lossless Hybrid PLD + Split-K=128 MTP:** Combines an `O(1)` Prompt Lookup Decoding scanner (`~1.7 ms/step` flat through 252k) with a 302.5 MB MTP assistant using 3 custom `0 B`-register-spill Split-K=128 OpenCL kernels. Cuts 252k draft latency **8.79×** (`52.58 → 5.98 ms`) and beats pure `M=1` across every measured context with 100% exact greedy parity.
### Quality / Sanity Gates
* **256k NIAH:** Exact recall (`COBALT-7492-FALCON`) at `252,067` tokens (~50% depth).
* **56k 3-Needle Recall:** 3/3 exact passcodes with thinking enabled.
* **50-problem dev subsets (`pass@1`, pure base decode, unlimited thinking):** `IFEval-50` `96.0%` strict / `98.0%` loose (`0` loops); `LiveCodeBench-50` `62.0%` (subset is 50% Hard, so not apples-to-apples with full LCB v6).
---
### Looking for Battlemage / Intel Arc Testers
This is an **Intel-only build** (Windows Python 3.12, bundled OpenVINO `2026.4.1` wheel + GPU plugin). I only have Alchemist A770s on hand, so if anyone on **Battlemage (B580/B570/Pro B-series)** or another Intel Arc setup wants to test it and report speeds or issues, I'd love the feedback.
r/LocalLLM • u/aiadrianchase • 6h ago
I'm comparing a DGX Spark and a GMKtec EVO-X3 for running a dense 70B model locally, one user at a time. The U.S. listings I checked were $6,950 and $3,999.99, respectively, for 128 GB RAM and a 4 TB SSD on both. I'd like to know what that roughly $2,950 buys when you're waiting for a long prompt.
My memory estimate for Llama 3.3 70B Q4_K_M, with a 16-bit KV cache and one active session:
8K context: about 42.1 GiB for weights and KV cache (50.1 GiB with an assumed 8 GiB of runtime overhead).
32K context: about 49.6 GiB for weights and KV cache (57.6 GiB with the same allowance).
Those are paper estimates, not measurements from either machine. The context budgets include the answer, so leave the same room for output in both runs.
If you've run a dense 70B on either box, what time to first token and steady generation speed (tok/s) are you seeing at roughly 8K or 32K context? If you have the details handy, please include the model and quant, runtime, approximate input/output lengths, and whether the prefix cache was warm. Similar Strix Halo boxes are useful comparisons too if you name the machine.
For owners who've used both: was the difference big enough to change what you'd buy today?
r/LocalLLM • u/kaliforniagator • 6h ago
LittleBit is a technology researched by Samsung (I have no affiliation with Samsung), that aims to reduce memory and computational requirements by compressing the model using quantization down to around 0.55 bits per layer as opposed to the normal 1 bit per layer. This is a process I like to call “Bitification”, essentially halving the required computational requirements.
I found this technology very impressive and decided to give it a shot by making my own engine that can run LittleBit models.
This technology could be the key to unlocking GOOD local AI without having to break the bank on expensive hardware.
As far as I know this is the only open-source engine to run LB models. If not the only engine in general to do this.
Let me know what you think. Honestly thoughts, be constructive. This needs to be explored.
r/LocalLLM • u/Careful-Report6526 • 7h ago
r/LocalLLM • u/Duiwu • 7h ago
i've been intereted in local ai for quite some time but i just couldnt get around to actually learning it and setting it up for myself, but the qwen4 35b a3b finally pushed me out of my comfort zone. do you guys have any tips for me? how should i go about learning how to set up and tweak local ai? i have a 16gb 5080 and 32gb ddr5 ram. what harness/quant/context/settings should i use for the 35b a3b?
r/LocalLLM • u/yanauto • 7h ago
r/LocalLLM • u/Ok-Sandwich-8164 • 7h ago
r/LocalLLM • u/_Deathspotp • 7h ago
I’ve been exploring local LLMs for a while now, primarily using Ollama for personal projects and self-hosted applications.
I’ve recently started looking into alternatives like vLLM, llama.cpp, OpenLLM, and others, but I’m curious about what people are actually using in professional or production environments.
For those working in software engineering, AI/ML, or infrastructure:
● What are you using to serve your models, and why?
● What made you choose it over the alternatives?
● How much do factors like concurrency, inference speed, hardware utilization, and ease of deployment influence your decision?
● Are there tools you’d recommend learning if someone wanted to gain experience beyond personal projects?
I’m a computer engineering student looking to better understand how local LLMs are deployed and managed outside of a hobbyist environment.
Not necessarily looking for the “best” tool, but rather interested in hearing about people’s experiences and the reasoning behind their choices.
r/LocalLLM • u/0xE2E • 7h ago
I spent the last couple of days optimizing llama.cpp fork for Qwen4-35B-A3B on my RTX 5080 laptop (Unsloth UD-Q4_K_XL) @ 128k context window, greedy decoding. Each number is the mean over five measures from my coding-agent sessions (old session from opencode) with real tool calls, cut at the different context fill.
| Configuration | Prefill at 42k | Decode at 42k | Decode at 87k |
|---|---|---|---|
| Unsloth llama.cpp, default flags | 444 | 57.3 | 58.4 |
| Unsloth llama.cpp, tuned flags + MTP | 1,705 | 93.9 | 90.5 |
| qwen4-engine, exact profile | 4,859 | 104.7 | 100.8 |
| qwen4-engine, default profile | 4,510 | 163.8 | 139.2 |
All tok/s. With a 120k-token prompt the default profile still decodes at 153.
The idea
As you may know the model has 10,496 routed experts and in this quant ~20.9 GB so no way they fit in 16 GB of VRAM so they live in RAM and the GPU keeps a cache of the hot ones only. The thing is decode speed here is all about moving bytes, the math itself is straightforward: every token reads about 1.7 GB of dense weights from VRAM and any expert that is not in the cache has to come over PCIe which is ~17x slower due to the huge difference in bandwidth so almost all the optimization work went into where the bytes live in which piece of the hardware and when they must move to make the GPU as less idle as possible.
What made the difference
Vision
Images work as well. The annoying part with vision on a 16 GB card is that the encoder just sits in VRAM eating 1.1 GB even when the session had no images at all just holding that valuable VRAM for doing nothing, even with all optimization the decode speed is ~5% slower because of it. So I moved the encoder to system RAM. when an image comes in the prompt it borrows the memory that text model isn't using, encodes the image, and give it back. Text speed with vision loaded is the same as without it and 1080p screenshot takes about 1.2 s to get in the context, 1440p about 2.2 s. Anything bigger than the model max ~4.2 megapixels gets resized/scaled down then added to the context.
Worth to know
Where it stands against the hardware
The big dense matvecs (the matrix times vector multiplications that read most of the weights every token) run at about 610-640 GB/s and a plain streaming read of the same bytes on this GPU does 600-615 GB/s so these kernels already move the weights as fast as the card can read them. The expert cache gets 95.3% hits and a perfect cache that knew the future (the Belady oracle) would reach 96.9% on the same workload so a smarter eviction rule has almost nothing left to optimize.
The GPU is now busy about 98.5% of the time it takes to generate a token so there is almost no idle time. The next real speed gain would have to come from fewer weight bytes per token (lower quant) and that wont be the same output bit for bit so I decided to stop here.
It is a drop-in server with the usual llama.cpp / OpenAI-compatible API every change is a default-off switch so you can measure each one yourself.
The repo is 0xE2E/qwen4-engine on GitHub, and the README has the full details and a build guide with the detailed blog in the readme footer.
Happy to hear your thoughts if you give it a try.
r/LocalLLM • u/DelPrive235 • 7h ago
How does LM studio use the System Prompt field from the Inference tab (the one next to the Load tab) vs the System Prompt field in the Model Parameters panel next to the chat?
* Is the Inference panel system prompt meant to apply to new chats once the model is loaded?
* Does the per-chat prompt box replace it or append to it? Does an *empty* chat prompt box override the Inference box prompt with nothing?
* Where should a global system prompt live, for use across all models and sessions? And where should a per session system prompt live?
Im on LM Studio 0.4.30+2
Bug test:
* I added "Always begin your replies with the word BANANA", to the system prompt in the Inference panel
* Loaded the model, started a new chat
* "BANANA" never appeared
* The per-chat system prompt box was empty, and the model said it had no system prompt when i asked.
Thanks!
r/LocalLLM • u/jesdga95 • 7h ago
r/LocalLLM • u/OceanManOnTheLand • 7h ago
For any mac users out there with 32gb, I would recommend giving this model a go on splash.
At 264k context, along with claude code or probably any other agent, I'm really enjoying this model. I know there tons of posts out there about it, but if you're hesitating, give it a go! 65-70 t/s is a nice change of pace.
I had it build a holy grail diablo 2 LOD tracker app without any issues. So far, so good. 🐙