Skip to content

u/__ahdw

In this archive from May 2026 to Oct 2026

3
posts
19
comments
0
media
97
score
4 saved before deletion

Top posts

Top comments

yeah, that's the problem. you should use -fp16 suffixed ones. M1 and M2 don't have circuits for bf16, fp16 makes both prefilling and decoding faster.

especially prefilling. I have M1 Max 64GB, with only 24 cores. M1 Ultra has 64 cores. more than doubled. With qwen3.6-27b-oQ4e-fp16 I can do 117 tps@4k ctx , and your device should approach 312 tps. that's enough and won't let your harness time out at all.

at 64K ctx, you can expect 234 tps. which feels "lagging", but still workable.

why oQ4e? because of decoding. since M1 Ultra doubles the bandwidth (800 GB/s vs 400GB/s), you can expect to have my decoding speed (12 tps) with oQ8e, and 24 tps with oQ4e.

I'd say these are already descend numbers.

My Pi Coding Agent never complains on my 27B oQ4e. But 35B MoE at 8bit are really way faster.

5 points

that's mathematical curse:

M1 MAX has 400GB/s bandwidth, theoretically maximum. Practical value would be 70% ~ 80% of it: 280GB/s to 320GB/s

I am using Qwen3.6-27B-oQ4e-fp16, when benchmarking it using oMLX at 1K context, the Peak Mem is 16.65 GB. To generate 1 token, this amount of data has to be transferred from unified RAM to the Metal calculating unit.

So, roughly, generation speed at tokens/s can be translated as "with the bandwidth, and that much data, how many times can it be transfered":

(280GB/s) /(16.65GB) -> 16.8 tokens/s
(320GB/s)/(16.65GB) -> 19.2 tokens/s

That said, you can't expect a higher TPS unless using a smaller quant to reduce the data size.

MTP and DFlash or any other kind of speculative decoding is actually a gambling. the MTP head or the small drafter model "guess" a series of tokens, and the main bigger model has to evaluate which one can be taken.

If the "guessing" is correct, then it's a gain. you pay the time for one token, but you get multiple tokens, for free.

However, in reality, one machine, one request at a time, (meaning not to serve the model in batches for multiple requests), the "next token" is rather unpredictable. so the evaluating usually becomes a waste, and the main model has to re-generate it. that's a net lose.

5 points

I've turned to antirez's quant and reband the tail 8 layers to MXFP4, so the non-PLE weights become 2.95 bpw, while Atomic Chat's "Q4_K_M" actually is 3.29 bpw (the average 4.03 bpw is because of the Q5_1 6 bpw PLE weights).

antirez's original has 2.63 bpw and PLE stays bf16. this makes it large and dumb. by rebanding the tail 8 layers to MXFP4, you can have two things at the same time:

1 - the same quality compared to atomic chat's Q4_K_M

2 - ds4 engine almost no decreasing on prefill and double the decode tps at long context, for example 128K, compared to llama.cpp

2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.