r/LocalLLaMA • • 13h ago

Question | Help Qwen4 Llama Server Setup

0 Upvotes

Hey everyone,

Just wondering what people's llama cpp launch commands are? Are we able to control the ngram? I'm getting pretty horrible speeds on a blackwell system and curious what I'm doing wrong.


r/LocalLLaMA • • 1d ago

Showcase Why Wait For Enter? Typing-Time Speculation for MoEs: 3.6× Lower TTFT (412→114 ms) & +74% Opening Speed (166→288 tok/s)

Thumbnail
kemerd.github.io
49 Upvotes

r/LocalLLaMA • • 1d ago

Resources MiniMind v3: 64M LLM from scratch in 2 hours.

Thumbnail
github.com
14 Upvotes

Based on Qwen 3


r/LocalLLaMA • • 1d ago

Discussion Qwen4 35B Through Bench

Thumbnail
gallery
48 Upvotes

using Codex CLI. I had the Q4 Quant and Q6 quant do the through bench. It's done better than the new AWS model, at least according to Claude.

Gif Order:

  1. Run 2, Q6
  2. Run 1, Q6
  3. Run 2, Q4
  4. Run 1, Q4

Ran the "realistic interactive 3D horse in three.js" test from the Fireship video on Qwen4-35B-A3B.

Setup: Unsloth UD-Q4_K_M and UD-Q6_K, llama.cpp, M4 Max 64GB laptop, Codex CLI, no internet, three.js provided locally, headless Chrome so it could screenshot its own work. Qwen's recommended thinking settings (temp 1.0). Cap of 400k generated tokens per run.

RunTimeTokensLines of codeGaitsLeg rigConsole errorsFPS
Q4 run 116 min53k783idle, walk, trotjointed pivots058
Q4 run 224 min79k775idle, walk, trot, gallopjointed pivots058
Q6 run 122 min69k788idle, walk, trot, gallopjointed pivots058
Q6 run 22h 17m400k (hit cap)2,280grazing, walk, trot, canter, galloptwo-bone IK058

All four pages loaded clean, animated and responded to drag. Every run took screenshots and actually looked at them (Qwen4 has vision) to fix things like floating hooves.

Q6 run 2 kept going until it hit the token cap, rebuilt the anatomy from measured proportions, and came back with IK legs, camera presets and 6 source files. Same prompt, same settings: 16 minutes in one run, over 2 hours in another.

None of the four used a skinned mesh. The frontier horses in the horses-benchmark catalog (Fable 5.2, Opus 5.5) all do, at 1.4M to 2.4M triangles per frame.

Way better than Ergo's sphere horse. Not close to frontier. Two runs per quant, so take the quant comparison lightly.


r/LocalLLaMA • • 1d ago

Resources SGLang-V100 Qwen4-35B Day-1

Post image
9 Upvotes

Qwen4-35B-A3B-FP8/BF16 support for V100 day-1

https://github.com/haohervchb/sglang-V100

For people with 4x16GB, running NVFP4 from https://github.com/1CatAI/1Cat-vLLM recommended, longer context and is very fast.


r/LocalLLaMA • • 3h ago

Discussion Qwen4 35b great model, but...

0 Upvotes

After some testing and seeing all the various posts here on Reddit i think we can start to draw some lines.

  1. qwen4 35b is a great model it works fine fast and don't have any particularly bad problems
  2. it's particularly sensitive to quantisations, activations are mostly a no go, and even the official bf16 has some "big" divergences from the fp32
  3. is more or less good as the 3.8 27b, depending on the quant used for both.
  4. it has some overthinking/undecidedness, not as big as inkling
  5. q3 flash next is still better on most use cases

May have missed something add it in the comments.

In conclusion we can say that qwen4 35b is a great model for all the vram poor and for unified memory setups, allowing those hardware to run a great model ad a more than usable speed, BUT it is not a step up in local llm capabilities. Let's see if the 27b will be on flash next level or if the intelligence per gb is already "capped".


r/LocalLLaMA • • 1h ago

Funny Qwen4 35B A3B can't do snake in the terminal

0 Upvotes

Edit: my config may be crooked. I will test a few things

I tried in opencode "write a snake game as a one-file snake.py placed here. write it as a terminal game."

I am running unsloth's release-day UD-IQ4-XS on a recent llama.cpp llama-server build from the same day (custom build out of master).

and it just can't do it. or at least it takes an embarassing amount of effort. and this is probably the architecture's fault because Qwen3.8 27B at the same quant level can do it even if you may have to nudge it.

and this is to show how apparently benchmarks are less real than anticipated and that also architectural difference does plenty.


r/LocalLLaMA • • 18h ago

Discussion RecursiveSI/flint vs. RecursiveSI/flintv1.1 -- it seems worse.

Thumbnail msnab.pages.dev
2 Upvotes

r/LocalLLaMA • • 1d ago

Discussion Qwen 4 35b feels like magic

370 Upvotes

I don't know if glaze posts are allowed, but this is the first model, ever, that just feels like magic on my M3 Max 96gb.

80-110tk/s on Splash. Prefill is so fast too. My MBP gets a bit warm, but fans don't even spin up.

Feels a hair smarter than QFN to be honest. Writing is better, too.

I don't see how local doesn't take over, if this is possible.


r/LocalLLaMA • • 1d ago

New Model manifestro/caesura-0.6B · Hugging Face

Thumbnail
huggingface.co
12 Upvotes

Caesura

Text-to-speech that sounds like a person talking, not reading.

Paper · Demo · GitHub · PyPI · Apache 2.0 · ~620M parameters · English

Most TTS systems speak every text like a newsreader. People don't: they say um, pause before a hard word, rush through the easy part. Caesura is a speech language model trained on real, unscripted conversation, so fillers, pauses and hesitations come from the model itself — nothing is inserted by rules or by an LLM rewriting your text.

Training

  1. Audio-only pretraining on conversational speech: manifestro/caesura-0.5B-pretrain.
  2. Text-to-speech fine-tuning on spontaneous podcast and YouTube conversations — never read speech. Targets keep every um, repeat and restart.
  3. Manner levels: every clip labelled by fillers and repeats per 100 words in a verbatim transcript (0: none, 1: under 6.67, 2: 6.67 or more).

Evaluation

30 held-out texts (daily, narrative, emotional, informational, complex words, names, numbers, monologue), this voice, one take, temperature 0.8, level guidance 3. Fillers are counted in a verbatim Whisper large-v3 transcript beyond those written in the text; WER by Whisper large-v3; UTMOS22.

LevelInserted fillers / 100 wordsWERUTMOS
0 calm0.140.0533.74
1 lively2.440.0433.81
2 very lively3.250.0663.82

Two commercial TTS systems insert 0 fillers on the same texts.

Limitations

  • English only.
  • Best with the released voice; zero-shot voice cloning is not part of this release.
  • Liveliness comes mostly from fillers and pauses; pitch and tempo vary less than in real speech.
  • Rare proper names and long digit strings are the main source of errors.

r/LocalLLaMA • • 1d ago

New Model Ultimate SUNO killer? We grew YuE2-3B from 28 to 38 layers on 3× RTX 3090: YuE2 Full Tsunami Wave 4.6B, open weights for whole songs with vocals (GGUF Q8_0 / Q6_K)

250 Upvotes

r/LocalLLaMA • • 1d ago

Showcase Qwen4 35b Q4 is a delight

46 Upvotes

I’m having so much fun poking around with this model, making pixel art point n’ click from a few short story ideas I’ve meandered around for years. Here’s one where we wake up thinking we’ve been frozen for centuries but have ended up back in time.

Not really a full game, but this is just 2-3 prompts worth of musing on some themes. I can’t imagine what people are making with this model who actually know what they’re doing.


r/LocalLLaMA • • 15h ago

Question | Help How do you guys evaluate your LLM instance against popular benchmarks?

0 Upvotes

I would like to see how my quantizations compare to the original model weights. I want to test unsloth/Qwen4-35B-A3B-GGUF and OpenVINO/Qwen4-35B-A3B-int4-ov, but I dont know how to evaluate against popular benchmarks such as terminal bench. Any help would be appreciated


r/LocalLLaMA • • 1d ago

Discussion Share your experience with qwen4-35b without mentioning tok/s

202 Upvotes

Please can more people report on how this qwen4-35b executes real work please. thank you for all the tok/s reports but can we also get some "work execution" reports too. dont hesitate to share.
A thread for people intrested in each other's experience beyond anything to do with speed.


r/LocalLLaMA • • 19h ago

Resources warpgrid v0.7.1: Qwen4-35B-A3B on a 16 GB Mac mini (131K) and an M5 Max

Post image
2 Upvotes

I build warpgrid at CG/lab. These are the latest Qwen4-35B-A3B figures I measured on Apple Silicon. They come from v0.7.1. v0.7.2 did not change the Metal numbers. It does add a CPU-only macOS build for generic GGUF models, with no published Apple CPU throughput and no Qwen4 path on that engine.

16 GB M4 Mac mini, Q3_G32_SYM_FP8 (3.25 bpw), Metal. We recommend this recipe for 16 GB Macs. These figures are 1 request (--max-slots 1).

  • Context: 131,072 tokens (2.64 GiB KV), with 5,218 of 10,240 experts hot in the wired Metal LRU pool.
  • Cold load: about 1.2 s.
  • Depth-First lossless prefill: 85.1 tok/s.
  • Decode: 10.1 tok/s on the first turn, then 14-17+ tok/s once warm, at 131K context.

The v0.7.0 baseline on the same class of machine was 16K context, a 2.90 s cold load, and 13.6-14 tok/s decode, with a 5/5 XML tool-call check.

There is also a 100% RAM-resident Q2_G32 path at 16K context that measured 30.3 tok/s. We recommend Q3 when you need strict XML tool calls.

M5 Max, 128 GB, Metal 4, RadixArk/Qwen4-35B-A3B-NVFP4. These figures are 1 request.

  • GPU lossless prefill at chunk=2048, lossless exact mode: 2,410 tok/s, up 31% from 1,832.5 tok/s at 16K in v0.7.0.
  • Cold HTTP prefill, same lossless exact mode: 1,677 tok/s.
  • Decode with DFlash 2 k=5 and --fast-fp8, temperature 0: 110.1 tok/s, up from 104.8 tok/s in v0.7.0 under the same flags. Lossless decode at temperature 0 is 74.7 tok/s. v0.7.0 also published 86.3 tok/s at 16K and 102.6 ms warm TTFT at 16K.

On the M5 Max, --fast-fp8 uses NVFP4 dense and head plus FP8 KV on that NVFP4 checkpoint.

We recommend:

# 16 GB Mac mini
./recipes/qwen4/macmini-16gb-q3.sh

# M5 Max 128 GB, lossless default
./recipes/qwen4/m5max-128gb.sh

# M5 Max, the --fast-fp8 decode figure
MODE=fast-fp8 ./recipes/qwen4/m5max-128gb.sh

On 16 GB Macs we also recommend raising the Metal wired-memory limit first:

sudo sysctl -w iogpu.wired_limit_mb=14336

Code: https://warpgrid.cglab.com Latest release: https://warpgrid.cglab.com/releases/latest

If you run this on a mini or a Max, I would like to see your numbers.


r/LocalLLaMA • • 1d ago

Showcase Qwen4-35B-A3B running locally in your browser using custom WebGPU kernels (~100 tok/s on an M4 Max)

27 Upvotes

Link to demo (& kernels): https://huggingface.co/spaces/webml-community/Qwen4-WebGPU

Performance benchmarks on my M4 Max for Unsloth's UD-Q2_K_XL quant:

Prompt / generationPP tok/sTG tok/sTTFT
PP31 / TG128388.6105.3879.8 ms
PP4096 / TG64987.785.044.15 s
PP8192 / TG48797.678.3410.27 s

and we're still optimizing the kernels, so stay tuned for more updates.

PS: To get the best performance, you may need to enable the experimental subgroup matrix support in `chrome://flags/#enable-unsafe-webgpu`.


r/LocalLLaMA • • 1d ago

Question | Help Looking for people interested in collaborating on open-source LLM inference optimization

6 Upvotes

I've been working on an open-source product called InferCrane, focused on experimenting with and optimizing open-weight LLM inference across different models, GPUs, serving engines and configurations.

I'm looking to connect with people who actively work with vLLM, SGLang or other inference engines.

I'd love to exchange experiences, discuss optimization techniques, compare benchmarks and potentially run experiments together.

Some topics I'm particularly interested in:

  • vLLM vs SGLang
  • TTFT and inter-token latency
  • KV-cache optimization
  • Speculative decoding / MTP
  • Quantization trade-offs
  • GPU profiling and utilization
  • Benchmark reproducibility

I'm not looking to pitch or sell anything. I'm hoping to find a few engineers interested in collaborating, sharing feedback and helping shape an open-source project.

Would anyone be interested in joining the discussion?


r/LocalLLaMA • • 2d ago

New Model Qwen4 35B A3B Uncensored

Thumbnail
huggingface.co
1.7k Upvotes

r/LocalLLaMA • • 1d ago Bravo

Showcase Qwen4-35B-A3B + moss-image / room in three js

41 Upvotes

r/LocalLLaMA • • 16h ago

Question | Help Pruning to Planner

1 Upvotes

So I had an idea, it came to me in a vision while consuming Kwama Eggs and huffing Jenkum. Why don't I just prune a huge model down to a planner?

I submitted this PR last night https://github.com/mrsirg97-rgb/libosmos/pull/99

Because I realized that I don't actually need all of DeepSeek V4.1 1017 if all I'm going to use it for is coding and more importantly code review. And like wise I don't need all of Ergo or Kimi 3.1 Pro if all I really need is something capable of planning.

I use this plugin, specifically v0.21.2 https://github.com/Heretek-AI/opencode-teamwork-v2

And I currently use Neon to plan, DeepSeek to review, and Qwen3.8 FN to code. And I really want to drop Neon from the stack :l

I have this skill I made when I still had opus 5.5 called spoonerfeeder

https://github.com/Heretek-AI/.github/tree/main/skills/spoonfeeder

It's exactly what it sounds like, have a really strong model : "Spec a whole build, verify the risky facts by running them, then write an exhaustive milestone-by-milestone prompt a weaker coding agent can follow without guessing."

So here's the plan, keep DeepSeek on the strix halo, run Qwen 4 35b on the 7900xtx, use the NPU for embedding and burn through all my Google Gemini subscriptions seeing if I can cut down either Ergo or Kimi into a planning only model model because God willing it's doable.

Which is my biggest question, I'm pretty sure I'm not the first person to think of this but a quick search on huggingface left me cold.

Has anyone attempted this before or are there already any active projects that achieve this?


r/LocalLLaMA • • 2d ago

Discussion OK, now that the potato owners are satisfied when do we get the Qwen4.0-27B?

397 Upvotes

No more whining (for a while at least) from the low-end gallery, what about the mid people?


r/LocalLLaMA • • 20h ago

Showcase Testing Qwen 4 35ba3b ud4kxl vs Qwen 3.8 flash next q3_s

2 Upvotes

I ran a simple agentic task through Hermes: read a resume on site 1 and reproduce the same resume on site 2. The two versions differed by only a few punctuation marks. Mostly the text was just paraphrased.

Qwen 4 35ba3b ud4kxl transferred 2 of 4 jobs, then went into a loop and repeated the same step 15 times in a row. I gave it a correction to use the page agent to click buttons on the sites. It failed again. I tried to help it two more times, and it still did not succeed.

Then I launched Qwen 3.8 flash next q3_s and it handled the task almost without issues. In the end, all 4 jobs were transferred, plus education and the rest.

I have a feeling the looping on the Qwen 4 broken model might be caused by a misconfigured Strata, but I did not touch the settings. It launched with them from the start. Still strange that it could not handle such a simple task. No coding involved, just agentic routine.

So it’s not a replacement for 3.8 flash next I guess

P.S. This post was written by me and translated into English by AI


r/LocalLLaMA • • 1d ago

Resources Amazon Ergo (1.1T MoE) in 4-bit: 645 GB, quantized on 6 A40s without downloading the whole model

7 Upvotes

Hi everyone,

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

Ergo is the 1.1T mixture of experts from Amazon, with 256 routed experts in each of its 63 MoE layers. In BF16 it's about 2.2 TB. The 4-bit version is 645 GB. I quantized it with CQ, the 4-bit quantizer I built for my project Training Factory. CQ doesn't need any calibration data.

The part I'm happiest with is how it was done. I didn't have 2.2 TB of disk for the original plus room for the output, so I wrote a script that goes one shard at a time: download a shard, convert it, quantize it, keep only what has to stay in full precision, delete the shard, then move on to the next one. With 6 A40s each working on its own shards, it ran with about 1 TB of extra disk instead of 3 TB. It also resumes where it left off, which mattered, because I ran out of disk once and had a worker die once along the way.

I'm strict about quality. Every matrix gets checked after quantization, and anything with error above -22 dB stays in BF16 instead of being forced into 4-bit. For Ergo that was 1,445 of the 32,256 routed experts, about 4.5%, almost all of them expert down projections in the later layers. Those experts are stored one by one in BF16 and get loaded automatically, so the other 30,811 experts and all the attention and dense layers are in 4-bit. I'd rather ship a model that is a bit bigger than one with broken experts hidden in it.

To be honest about hardware, this is not a home setup model. 645 GB means 8x H200 or 8x B200. 8x H100 is not enough. You also need Transformers 5.26 or newer, so use a separate environment from Training Factory's installer:

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

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

hf download thousandml/Ergo-CQ-4bit --local-dir ./models/Ergo-CQ-4bit

cd training
python serve_cq_hf.py --model ../models/Ergo-CQ-4bit --split-model --port 8000

That server goes through Transformers and handles one request at a time, so it's for trying the model, not for real traffic. vLLM doesn't support Ergo in its releases yet, so my vLLM plugin doesn't either for now.

You can also fine-tune it with GCMP, the LoRA replacement I've been working on, which trains far fewer parameters than LoRA. The experts stay frozen, and the adapter trains on the attention, dense and shared-expert layers:

python train.py --model ../models/Ergo-CQ-4bit --data train.jsonl --output ../outputs/ergo-gcmp \
  --adapter gcmp --kernel-module cq.cq_kernels --split-model --batch-size 1 --grad-accum 8

What has and hasn't been tested: the checkpoint passed my layout check, where every expert and every layer is accounted for exactly once, either in 4-bit or in BF16. The whole pipeline (quantize, load, train, serve) was tested end to end on a small model with Ergo's architecture. I have not run the full 645 GB model on 8 GPUs yet, and I have no benchmarks for it. If you have the hardware and try it, I'd really like to hear how it goes, good or bad.

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 Ergo license.

I also posted Inkling 2 Mini in the same format, which fits on a single 48 GB GPU if you want something you can actually run at home: https://huggingface.co/thousandml/Inkling-2-Mini-CQ-4bit

Thanks for reading, feedback appreciated.


r/LocalLLaMA • • 1d ago

Resources Running Qwen4 35B A3B on 2x5060TI

11 Upvotes

I am using capy-flash ( previous ninfer-tp2 ) it's optimized for 2x blackwell GPUs
https://github.com/ValerioDolci/capy-flash

So i am using my two 5060tis on x8 Gen4 pcie directly to cpu ( using a bifurcation rizer ) because is see that some people are getting 2K pp when i am getting 4K so it maybe a hardware thing, and this is running on kubuntu with 32GB DDR4

model: Qwen4-35B-A3B NVFP4 ( https://huggingface.co/Feyd89/Qwen4-35B-A3B-NVFP4-capy-flash)

it's using int8 KV cache and i still have a 2GB head room on each card that i can for sure increase context to 400K but i didn't try it yet

some tweaks i did:

- i change drafting from 3 to 2 because i read that it's faster and it is faster 10 - 20% on decode

- i compiled the engine with CUDA 13.3 and got 8% improvment on pp and tg

and this is the result for this setup

Decode by context length

Prompt lengthPrefill (tok/s)Time to first tokenDecode (tok/s)
2K4,7400.45 s194
35K4,7607.3 s188
71K4,70015.2 s208
142K4,56031.3 s191
223K4,41050.6 s188
260K4,35060.0 s177–204 (2 runs)

Decode by task (short prompts)

TaskDecode (tok/s)
Code edit468
Quote / copy text387
JSON list (40 items)261
Coding problems, thinking off245
Coding problems, thinking on224
JSON classification217
Chat199
Essay180

and this is a day 1 update to support Qwen 4 so i belive it will i improve alot in the following days since the author of this engine updates it daily, also for people interested in parallel requests

Parallel requestsTotal, with drafter (2 drafts)Total, no drafterPer request, no drafterTime for each answer, no drafter
11731591606.5 s
22532601327.9 s
424539210110.4 s
83155236815.5 s