r/LocalLLaMA • u/Fear_ltself • 8d ago
Showcase Using parallel agents on m6 Mac mini to code a playable game in 8 seconds.
Enable HLS to view with audio, or disable this notification
The idea is using Gemma 4 26B A4B QAT MLX MTP 4bit as a verifier for a swarm of Gemma 4 E2B IT MTP 4bit that each handle a different part of the game. They code their sections in around 4 seconds and it synthesizes in around in 4 seconds. Just seeing what’s possible with swarms on simple setups. Should work decently with other verifiers or swarms on less unified memory…
On my m6 Mac Mini 32GB test I've found 8 parallel agents hitting 481 tokens per second cumulatively. Each agent is hitting 60+ tokens per second individually. Because llama-server batches all 8 agents against a single copy of the weights, 481.8 tok/s aggregate fits in roughly ~3.5 GB RAM.
Model weights (gemma-4-E2B-it-qat-UD-Q4_K_XL.gguf): 2.4 GB — loaded once and shared across all 8 parallel slots.
KV cache + Metal compute buffers (8 slots × 2,048 ctx): ~0.6 – 1.1 GB.
6
u/sloptimizer 8d ago
This is a fun experiment! How do you get your sub-agents to diving work efficiently without creating merge conflicts?
2
u/Waarheid 7d ago
Those outpits look to me like:
This makes me think that the games it would output would be pretty similar, just with different colors, slightly different mechanics, etc, and the subagents aren't coding at all, just writing a short section of the spec. Still a fun idea.
4
u/swagonflyyyy 8d ago
Damn this is really interesting. Looks like G4 is a late bloomer, after all.
2
u/Numerous-Ad6217 8d ago
That’s amazing
2
u/youssef952008 8d ago
Can't tell if I'm impressed or scared...
1
u/KrivUK 6d ago
Hey, how did you go about setting this up? Is there a good guide. You’re kind of doing what I’m after but a bit new to this game.
1
u/[deleted] 8d ago
[removed] — view removed comment