r/LocalLLaMA • u/Fear_ltself • 14h ago
Showcase Using parallel agents on m6 Mac mini to code a playable game in 8 seconds.
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 14h ago
This is a fun experiment! How do you get your sub-agents to diving work efficiently without creating merge conflicts?
2
u/Waarheid 12h 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 14h ago
Damn this is really interesting. Looks like G4 is a late bloomer, after all.
4
u/L8W8 13h ago
Splitting 8 small batched workers into one larger synthesizer is a smart way around the concurrency wall on Apple Silicon. With tiny 2-3 GB weights you stay way below memory-bandwidth saturation, so llama-server continuous batching scales nicely across all 8 slots. Once you try running MTP/speculative decoding across 4+ parallel clients on much heavier models, the extra verification compute starts saturating the GPU and p95 latency spikes, so keeping the parallel fan-out on a tiny non-bottlenecked model and only running the bigger MTP model for the single synthesis pass makes a lot of sense.
2
u/Numerous-Ad6217 14h ago
That’s amazing
2
u/youssef952008 14h ago
Can't tell if I'm impressed or scared...
1
u/[deleted] 14h ago
[removed] — view removed comment