Skip navigation
DeepSeek-V4-Flash powering 4 parallel agents on Pi (by Mario Zechner) 🚀
0:00 / 1:29

DeepSeek-V4-Flash powering 4 parallel agents on Pi (by Mario Zechner) 🚀

Prince Canuma

@Prince_Canuma24K followers

Visit on X
420 likesDownloadOriginal post

110,715 views

DeepSeek-V4-Flash powering 4 parallel agents on Pi (by Mario Zechner) 🚀 Running on M3 Ultra at ~30-34 tok/s and 160-187GB peak URAM using MLX-LM. Special shoutout to clandestine.eth 🦇🔊, Pedro Cuenca, Tarjei Mandt, Ivan Fioravanti and others for helping optimize and shape this PR. PR:

23 Comments

Comments from the original post on X (Twitter)

  • Mario Zechner's profile picture

    @badlogicgames

    @0xClandestine @pcuenq @kernelpool @ivanfioravanti amazing!

    6 likes

  • Prince Canuma's profile picture

    @Prince_Canuma

    @0xClandestine @pcuenq @kernelpool @ivanfioravanti Thanks Mario! 😎

  • clandestine.eth 🦇🔊's profile picture

    @0xClandestine

    @badlogicgames @pcuenq @kernelpool @ivanfioravanti Was my pleasure!

    6 likes

  • Prince Canuma's profile picture

    @Prince_Canuma

    @badlogicgames @pcuenq @kernelpool @ivanfioravanti Let’s keep cooking 🚀

    6 likes

  • clandestine.eth 🦇🔊's profile picture

    @0xClandestine

    @badlogicgames @pcuenq @kernelpool @ivanfioravanti we're not done yet 😎

    3 likes

  • Zach Mueller's profile picture

    @TheZachMueller

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti Nice 🫡

    5 likes

  • Ivan Fioravanti's profile picture

    @ivanfioravanti

    @badlogicgames @0xClandestine @pcuenq @kernelpool What a dream team!

    4 likes

  • Yeyito's profile picture

    @im_yeyito

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti 4 parallel agents on an M3 Ultra with local DeepSeek V4 Flash is exactly the kind of demo that changes the vibe. not 'local model as toy assistant' anymore, more like local agent swarm as an actual workstation pattern.

    3 likes

  • Ross Linnett's profile picture

    @RossLinnett

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti Hmmm would I be able to run this with my 128GB m4 max and 64GB M1 Max on eco labs 🤔

    3 likes

  • Maziyar PANAHI's profile picture

    @MaziyarPanahi

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti Great work everyone! That’s a decent speed for a local agent! What’s the max context length here?

    3 likes

  • AlgoNfts's profile picture

    @algonfts

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti Nice

    1 like

  • El Ghali's profile picture

    @ghalisoftware

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti What is quantization ?

    1 like

  • sharaff |🦞's profile picture

    @sharaff

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti Ah. Nice. Still ultra? What about poor like me having a 32GB

    1 like

  • Prince Canuma's profile picture

    @Prince_Canuma

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti 🤣🔥 Qwen 3.6 :)

    2 likes

  • sharaff |🦞's profile picture

    @sharaff

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti waiting…

    1 like

  • Ivan Fioravanti's profile picture

    @ivanfioravanti

    @Prince_Canuma @badlogicgames @0xClandestine @pcuenq @kernelpool Nuuuuu

    1 like

  • sharaff |🦞's profile picture

    @sharaff

    @Prince_Canuma @badlogicgames @0xClandestine @pcuenq @kernelpool Keep moving. Learning from you and @Prince_Canuma :))

  • meta's profile picture

    @meta_syntactic

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti 2bit quant? what's the performance loss?

    1 like

  • Happy's profile picture

    @h_a_p_p_y_j

    That’s a serious edge-to-workstation inference setup 4 parallel agents on a single M3 Ultra while still pushing ~30 tok/s is impressive, especially at that memory footprint. MLX-LM is quietly becoming one of the more important pieces in Apple Silicon LLM tooling, and this kind of multi-agent parallelism is exactly where those optimizations start to matter. What stands out most is the efficiency tuning getting that level of throughput while managing 160–187GB peak usage suggests very deliberate kernel and batching optimizations, not just raw model scaling.

    1 like

  • nick's profile picture

    @NicsTwitz

    @badlogicgames @0xClandestine @pcuenq @kernelpool @ivanfioravanti 4 parallel agents at 30+ tok/s on a mac is wild. mlx optimization really carrying the local inference ecosystem right now

    1 like