r/LocalLLaMA • • 15d ago

Showcase Qwen 14% faster than llama.cpp using Vx-lang

With the latest release of Vx language Qwen-vx (Qwen3 30B on a 32 GB MacBook M4) 14% faster than llama.cpp's `llama-lookup`.

Vx is a heterogeneous systems programming language. One program runs on CPUs and on NVIDIA, Apple and now Intel GPUs.

Language models written in Vx are faster than the usual servers for them:

  • GLM-5.3 on 8Γ—H200: 7% faster than SGLang. Every kernel in the decode step is written in Vx.
  • Qwen3 30B on a 32 GB M4: 14% faster than llama.cpp's `llama-lookup`. (EDIT: Without speculative decoding it is 6% faster on llama-completion)

Please check out the repo and share feedback on what else can be done here. GitHub link in comment πŸ‘‡

0 Upvotes

15 comments sorted by

9

u/BusRevolutionary9893 15d ago

This faster is better without mentioning losses trend is getting real old real fast.Β 

→ More replies (1)

2

u/AutomaticLanguage334 15d ago

14% faster isnt a great selling point when you have no benchmarks and you're using an old model. qwen3 30b in particular is a poor choice to try to optimize because it isnt going to have the competency at coding that others options will have, but its also not as memory size efficient as other fast assistant models. I don't really see what niche this is meant to hit

(GLM, sure, if you have some performance benchmarks you might have something)

1

u/adityazero 15d ago

Re Qwen: That's a good feedback, I should have used a newer model to benchmark.

glm: I used W1(headline), ShareGPT 50, W3, GSM8k.

```

  • W1 (1000 tokens in, 1000 out): 8.55 ms against SGLang's 9.18.
  • ShareGPT: 8.34 ms against 9.00.
  • W3 (32768 in, 256 out): 9.58 ms against 9.43.

```

More details are here https://github.com/vx-lang/glm-vx#serving-performance

4

u/General-Spite1222 15d ago

I don’t even know what to say πŸ˜‚

4

u/Classic-Pubs 15d ago

Stop wasting your tokens

0

u/[deleted] 15d ago

[removed] β€” view removed comment

0

u/adityazero 15d ago

14% faster

Drafts from the context make edits 1.84x as fast, with identical output. The kernels written in Vx skips drafts when they won't pay. Without draft, pain decoding is about 6% faster than llama.cpp on short code prompts Over 12 code prompts, it was 1.14x as fast as llama-lookup.

2

u/[deleted] 15d ago

[removed] β€” view removed comment

1

u/adityazero 15d ago

Yeah so llama-lookup also uses speculative decoding at most 8 positions. Qwen-vx uses at most 7 and skips early which is what makes it faster than llama-lookup.

1

u/[deleted] 15d ago

[removed] β€” view removed comment

1

u/adityazero 15d ago

Qwen3-Coder-30B-A3B (Q4_0) on a base M4 Mac, 32 GB Generated tokens per second: 512 tokens, greedy, batch 1, 3 prompts x 2 runs per kind

Prompt kind      Prompt tokens   llama.cpp   llama-lookup   Vx plain   Vx drafts   Vx drafts vs llama-lookup
Write new code       46-59          42.8         34.1          45.9       45.8          1.34x
Explain code      1,280-1,747       39.8         38.2          42.2       46.1          1.20x
Complete code     1,439-1,654       39.5         38.1          42.3       42.3          1.11x
Edit a file       1,477-2,101       39.8         79.9          41.6       76.2          0.95x
All 12 prompts       46-2,101       40.5         44.6          43.0       51.1          1.14x

Both sides use speculative decoding with drafts copied from the context, not a draft model. The main model checks the drafts, so the output is the same as plain decoding. llama.cpp ran llama-lookup with at most 8 positions per check. Vx ran --draft 7, also 8 positions. Over all 12 prompts, Vx with drafts generates 51.1 tokens per second, against 44.6 for llama-lookup: 1.14x