Skip navigation
A perfect coding model for MLX on Apple silicon.. Qwen delivered again.
0:00 / 0:50

A perfect coding model for MLX on Apple silicon.. Qwen delivered again.

Awni Hannun

@awnihannun45K followers

Visit on X
1,266 likesDownloadOriginal post

186,831 views

A perfect coding model for MLX on Apple silicon.. Qwen delivered again. Runs quite fast on an M3 Ultra. Running the 4-bit quantized with mlx-lm:

36 Comments

Comments from the original post on X (Twitter)

  • Awni Hannun's profile picture

    @awnihannun

    4-bit model is in the Hugging Face MLX Community: Sample command:

    56 likes

  • Awni Hannun's profile picture

    @awnihannun

    One shotted this with the 4-bit model.. not bad at all. Prompt: "write a python script for a bouncing yellow ball within a square, make sure to handle collision detection properly. make the square slowly rotate. implement it in python. make sure ball stays within the square"

    37 likes

  • Artificially Intelligent's profile picture

    @ArtiIntelligent

    The key metric here is the 64W of power usage during inference!

    8 likes

  • Justin Bowen's profile picture

    @TonsOfFun111

    @sparkycollier What frustrates me is the lack of ANE utilization, I’ve used CoreML for computer vision models like YOLO and you can get those to use the GPU+ANE, just wish we were able to leverage all of our Apple Silicon resources for local models.

    8 likes

  • Ivan Fioravanti's profile picture

    @ivanfioravanti

    WOW! This was fast!!! Let's download it! 🔥 Thanks!

    6 likes

  • Olcan's profile picture

    @olcan

    m3 ultra with how much ram?

    5 likes

  • Philippe Tremblay's profile picture

    @ptremblay

    Would be nice to have benchmark results for this quantized variant.

    3 likes

  • Matthew Rogers's profile picture

    @Matthewrogers

    So much ram though

    3 likes

  • Lee Parayno's profile picture

    @leeparayno

    Would love to know the full specs of your Mac. Guessing Mac Studio, maxed RAM, even with only 1TB SSD you’re already at $9,499

    2 likes

  • Jorge Lison's profile picture

    @jorgelison

    Whoa 😮 the performance is way better than I thought. I need to try this on my M4. Thank you for doing the testing for us

    2 likes

  • Anemll's profile picture

    @anemll

    Could you run some bigger prompt like 4K tokens please?

    2 likes

  • Awni Hannun's profile picture

    @awnihannun

    Sure, here's a sample run: Prompt: 3135 tokens, 249.467 tokens-per-sec Generation: 100 tokens, 24.264 tokens-per-sec Peak memory: 272.008 GB

    22 likes

  • Anemll's profile picture

    @anemll

    Great! Thanks!

    2 likes

  • rahul bansal's profile picture

    @rahulban79

    powered by MLX.

    1 like

  • Nenad Mancevic's profile picture

    @manca1

    I was looking for this! That was fast @awnihannun 🚀 🙏

    1 like

  • SIGKITTEN's profile picture

    @SIGKITTEN

    you guys cooked with MLX so hard, ngl

    1 like

  • Luis Catacora's profile picture

    @lucataco

    wow only 271gb ram?

    1 like

  • Andrew Rulnick's profile picture

    @MickeySteamboat

    @TheJohnEgan 4-bit for a code model? 😬

    1 like

  • Arindam Majumder 𝕏's profile picture

    @Arindam_1729

    i also tried it

    1 like

  • Prompt Injection's profile picture

    @PromptInjection

    Great model, great Mac. But... OpenELM-Coder .. when? 😄

    1 like