Loading video...

Video Failed to Load

Go Home

Running four simultaneous OpenCode agents works well with mlx_lm.server continuous batching and MiniMax M2.1 on an M3 Ultra:

95,166 views • 9 months ago •via X (Twitter)

33 Comments

Awni Hannun's profile picture
Awni Hannun9 months ago

Here's a guide to setup OpenCode with mlx-lm:

MiniMax (official)'s profile picture
MiniMax (official)9 months ago

M2.1 works well as a cognitive core that orchestrates other programs/tools/agents. It reasons efficiently and doesn't get distracted during long-running tasks. And it's lightweight enough to run at home

Awni Hannun's profile picture
Awni Hannun9 months ago

It's a good model, sir

Ivan Fioravanti ᯅ's profile picture
Ivan Fioravanti ᯅ9 months ago

This + Distributed TP = 🔥🔥🔥

Angel's profile picture
Angel9 months ago

M5!Ultra is going to be something.

SIGKITTEN's profile picture
SIGKITTEN9 months ago

its gone so far in just a few months!

hulk's profile picture
hulk9 months ago

Okay but does it come with a side of fries tho?

Luis Catacora's profile picture
Luis Catacora9 months ago

memory only spiked up to 212Gb? Very cool

shaped's profile picture
shaped9 months ago

Really healthy tok/s for 4 entire concurrent agents. How quantized is Minimax m2.1 here? Even without much skin in the AI game, Apple hardware might be the hardware of choice for local consumer inference

Zay's profile picture
Zay9 months ago

this is crazy, how many tokens/sec per agent? is it 20

⚡️Mob's profile picture
⚡️Mob9 months ago

I have mac m1 can I run it ? 😌

Vaibhav Jaiswal's profile picture
Vaibhav Jaiswal9 months ago

Local is not the future anymore

Ashley Feng's profile picture
Ashley Feng9 months ago

sounds like a solid setup, nice work

JackR's profile picture
JackR9 months ago

cool

Tobi's profile picture
Tobi9 months ago

Hm so that would be possible in a 256GB machine?

James Cherished's profile picture
James Cherished9 months ago

Reeeally cool but will M3.1 locally run as smoothly on a M3 Ultra? As in how future proof is it?

Mitko Vasilev's profile picture
Mitko Vasilev9 months ago

~15 t/s generation an agent?

Cryptonian's profile picture
Cryptonian9 months ago

As u work in apple, do u mind donating one M3 ultra to me please?

elorri_79's profile picture
elorri_799 months ago

Beautiful.

From Startup to Unicorn's profile picture
From Startup to Unicorn9 months ago

@grok what similar setup could you do with M3 pro 18gb? Can be only 2 agents working together

Vignesh's profile picture
Vignesh9 months ago

Stack of M4s will be the GPU in future.

nyx's profile picture
nyx9 months ago

the m3 ultra quietly becoming the "just works" option for local inference while everyone argues about cloud costs

hlitoroy (opinion arc)'s profile picture
hlitoroy (opinion arc)9 months ago

best $2 ever spent

Himanshu Kumar's profile picture
Himanshu Kumar9 months ago

Impressive! Four agents running smoothly on an M3 Ultra is great.

廖蘑菇's profile picture
廖蘑菇9 months ago

Do I need to configure to use batching in mlx_lm.server. I have 2 studios with m3 ultra 512G

Awni Hannun's profile picture
Awni Hannun9 months ago

No config necessary. If you encounter issues, let us know.

Dana Ludwig's profile picture
Dana Ludwig9 months ago

That is an amazing, beautiful video. There is so much going on there that I didn't know that I want to understand... I'll start reading. First question though - is it reasonable to view one M3 Ultra as a multi-user LLM server?

Awni Hannun's profile picture
Awni Hannun9 months ago

Very reasonable in my opinion. The biggest challenge is prompt processing. It works way better if all the users share say a long system prompt because then caching helps.

Joshua Poddoku's profile picture
Joshua Poddoku9 months ago

Four agents and a six-panel cockpit-prompt processing is the real bottleneck here

KernZ's profile picture
KernZ9 months ago

How do you optimize the context handling for those four?

Pepe Hogan's profile picture
Pepe Hogan9 months ago

Okay tell us what those agents are doing instead of being a stinky scammer Indian

Jarod's profile picture
Jarod9 months ago

so cool

Kevin Elliott's profile picture
Kevin Elliott9 months ago

That's interesting. I'm assuming it is still using remote LLMs per agent as well?

Related Videos