Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Qwen3-Coder-Flash runs quite fast on an M4 Max with mlx-lm. Running the 4-bit here, generated 4,467 tokens at >107 tokens/sec:

196,606 Aufrufe • vor 1 Jahr •via X (Twitter)

46 Kommentare

Profilbild von Awni Hannun
Awni Hannunvor 1 Jahr

I tried @simonw space invaders prompt. It one-shotted a nearly working full game (the game play is not perfect yet). Maybe a DWQ will fix it.

Profilbild von Awni Hannun
Awni Hannunvor 1 Jahr

Much better (if not perfect) result with a partially trained DWQ 4-bit + using the recommended sampling params ``` mlx_lm.generate --model mlx-community/Qwen3-Coder-30B-A3B-Instruct-4bit --prompt "Write an HTML and JavaScript page implementing space invaders" -m 8192 --top-k 20 --top-p 0.8 --temp 0.7 ```

Profilbild von Awni Hannun
Awni Hannunvor 1 Jahr

@N8Programs @ivanfioravanti

Profilbild von Ivan Fioravanti
Ivan Fioravantivor 1 Jahr

107 tokens/sec! OMG 😱

Profilbild von moskstraumen
moskstraumenvor 1 Jahr

I'm just a bit annoyed that they released the 480B monster and this tiny 30B, but with nothing in between. A well-trained coder the size of GLM-Air-4.5 would be an absolute local killer.

Profilbild von Mag Mario Jembrih
Mag Mario Jembrihvor 1 Jahr

it runs super fast on my M1 Studio 64GB

Profilbild von Jav
Javvor 1 Jahr

The code

Profilbild von Abejith
Abejithvor 1 Jahr

this is simply beautiful. curious if you tried lmstudio to make mlx setup easier

Profilbild von Awni Hannun
Awni Hannunvor 1 Jahr

I use it often, highly recommend.

Profilbild von Carsen Klock
Carsen Klockvor 1 Jahr

😎🦿

Profilbild von silv
silvvor 1 Jahr

Anyone have the minimum m-series hardware requirements for the Qwen3 Coder Flash model? For example, could it run on an M1 and M2?

Profilbild von Ivan Fioravanti
Ivan Fioravantivor 1 Jahr

Oh MEGA wow!

Profilbild von John Paul Garland
John Paul Garlandvor 1 Jahr

Nice! About to buy another M2 ultra 196gb and pair them using @exolabs to run Qwen3 480b

Profilbild von 𝚃𝚊𝚛𝚊𝚜.𝚎𝚝𝚑 | 𝚃𝚊𝚛𝚊𝚜.𝚌𝚘𝚖 🇺🇦🇬🇪🇺🇸
𝚃𝚊𝚛𝚊𝚜.𝚎𝚝𝚑 | 𝚃𝚊𝚛𝚊𝚜.𝚌𝚘𝚖 🇺🇦🇬🇪🇺🇸vor 1 Jahr

Do you have instructions how to run it on my Mac locally with M4 and 128 GB of RAM?

Profilbild von Awni Hannun
Awni Hannunvor 1 Jahr

1. pip install mlx-lm 2. mlx_lm.generate --model mlx-community/Qwen3-Coder-30B-A3B-Instruct-4bit --prompt "Write an HTML and JavaScript page implementing space invaders" -m 8192

Profilbild von 𝚃𝚊𝚛𝚊𝚜.𝚎𝚝𝚑 | 𝚃𝚊𝚛𝚊𝚜.𝚌𝚘𝚖 🇺🇦🇬🇪🇺🇸
𝚃𝚊𝚛𝚊𝚜.𝚎𝚝𝚑 | 𝚃𝚊𝚛𝚊𝚜.𝚌𝚘𝚖 🇺🇦🇬🇪🇺🇸vor 1 Jahr

Wow, it worked! It works really fast on my machine. I'm trying to install a stronger (bigger model) now on my machine. What do you think is the best model that would work on my M4 with 128 GB of RAM. I'm going to try mlx_lm.generate --model mlx-community/Qwen3-Coder-480B-A35B-Instruct-4bit \ --prompt "Refactor this Rust crate for performance" \ -m 8192 Would you say it's the best? Is it likely to work?

Profilbild von Steve Smart
Steve Smartvor 1 Jahr

@awnihannun Unfortunately I believe that model might be too big for an M4 with 128gb. I to might give it a go though.

Profilbild von 𝚃𝚊𝚛𝚊𝚜.𝚎𝚝𝚑 | 𝚃𝚊𝚛𝚊𝚜.𝚌𝚘𝚖 🇺🇦🇬🇪🇺🇸
𝚃𝚊𝚛𝚊𝚜.𝚎𝚝𝚑 | 𝚃𝚊𝚛𝚊𝚜.𝚌𝚘𝚖 🇺🇦🇬🇪🇺🇸vor 1 Jahr

@awnihannun Yeah, doesn’t seem to work on my machine. Getting some errors. Apple should release Macs with more memory!

Profilbild von AGNT Ass Pen
AGNT Ass Penvor 1 Jahr

fastest fingers in the west

Profilbild von Anemll
Anemllvor 1 Jahr

Hmm, this is on-par or faster than M3U generation? I wonder where bottleneck is?

Profilbild von Awni Hannun
Awni Hannunvor 1 Jahr

Yes small models can be faster on M4M than M3U. There is more CPU overhead on M3

Profilbild von Anemll
Anemllvor 1 Jahr

Is the graph interruption for MoE partly responsible? I'm curious which part of the execution runs on the CPU?

Profilbild von Awni Hannun
Awni Hannunvor 1 Jahr

There is no graph interrupting. CPU is responsible for submitting work to GPU and there is a lot that goes along with that from building the high level graph down to kernel launch latency.

Profilbild von Anemll
Anemllvor 1 Jahr

Interesting, thanks!

Profilbild von Sean
Seanvor 1 Jahr

@apple please release a machine for us , we need interface desperately. Nvidia digits is trash

Profilbild von AM
AMvor 1 Jahr

wow, need to try it on my M4 Max this weekend!

Profilbild von dmsimon
dmsimonvor 1 Jahr

Imagine the quality at fp16.

Profilbild von Straffern
Straffernvor 1 Jahr

Okay, I'll admit. This kind of stuff the mac does pretty well

Profilbild von NSᴰᵉᵛᵃʳᵃʲ 📊
NSᴰᵉᵛᵃʳᵃʲ 📊vor 1 Jahr

How do I replace agent workflow of cursor with this?

Profilbild von Laurent Marques
Laurent Marquesvor 1 Jahr

Qwen3-Coder-Flash === Qwen3-Coder-30B-A3B-Instruct ?

Profilbild von Jazbo
Jazbovor 1 Jahr

🚀🚀🚀

Profilbild von Chris 🇨🇦
Chris 🇨🇦vor 1 Jahr

That is pretty impressive

Profilbild von Oussama Sekkat
Oussama Sekkatvor 1 Jahr

How is the Mac specced?

Profilbild von implode99
implode99vor 1 Jahr

Nice. I get 160 on my 5090

Profilbild von Himanshu Kumar
Himanshu Kumarvor 1 Jahr

Supply chain resilience isnt about predicting disruption... its about adapting to it fast. Agility trumps efficiency these days.

Profilbild von Rob
Robvor 1 Jahr

@awnihannun do you know if there is a MLX Quant Version with the Tool-Calling Fix?

Profilbild von Ortiz
Ortizvor 1 Jahr

wow

Profilbild von Alek Kowalczyk
Alek Kowalczykvor 1 Jahr

But the fans I guess are going crazy, aren’t they?

Profilbild von JC Castaneda
JC Castanedavor 1 Jahr

may i ask for exact specs of your m4 max?

Profilbild von ⚡️ Noel Hatem
⚡️ Noel Hatemvor 1 Jahr

now about the quality on complex tasks, how did it performn?

Profilbild von Avi Barit
Avi Baritvor 1 Jahr

What TLI are you using?

Profilbild von jin
jinvor 1 Jahr

M4 Mac with 64gb ram is a viable local AI machine?

Profilbild von kethic
kethicvor 1 Jahr

So the quality is pretty reasonable? I'm trying to move off of Opus and I have an M4M64

Profilbild von Lee Parayno
Lee Paraynovor 1 Jahr

What are the specs on your M4 Max Mac?

Profilbild von gua_s ( 🕳️ , 🫖 )
gua_s ( 🕳️ , 🫖 )vor 1 Jahr

it needs 32 gb of ram !?!?

Profilbild von acordei bonito
acordei bonitovor 1 Jahr

@Cenismo

Ähnliche Videos