M5 Ultra Mac Studio: The Dream Machine for Local AI Agents?

Federico Viticci's four-day deep test of the M5 Ultra Mac Studio (256GB unified memory) reveals 1.2TB/s bandwidth, 2.5x faster prefill, up to 93.5% faster long-context generation, and superior concurrency for 24/7 local AI agent workflows at near-zero cost, outperforming RTX 5090 in usability.

Lao Guo's Learning Space
Lao Guo's Learning Space
Lao Guo's Learning Space
M5 Ultra Mac Studio: The Dream Machine for Local AI Agents?

Why Insist on "Local"? The Cost Equation

Before benchmarks, a real-world case: Viticci built a research tool called Desk for his iOS/iPadOS 27 review. He fed 310 documents into a local agent powered by DeepSeek V4 Flash + olmOCR running 7×24 hours — transcribing, extracting features, cross-referencing — fully automated. The system ran continuously for 99 days at a total cost of $0 . The same workload via OpenAI or Anthropic APIs would be prohibitively expensive. The core logic of local AI: not smarter than cloud, but turning "affordable" into "use freely." Privacy and cool factor are bonuses; cost is the anchor.

Specs: Apple's First Quad-Die Chip

The M5 Ultra looks identical to M3 Ultra but uses UltraFusion to package two dual-die M5 Max chips into a quad-die architecture — a first for Apple silicon.

Core specification comparison chart
Core specification comparison chart

Three key numbers:

80-core GPU , each core with Neural Accelerator; AI peak compute is 4.5× M3 Ultra .

Memory bandwidth raised from 819 GB/s to 1.2 TB/s (+50%) — the physical foundation for all gains.

Unified memory starts at 256GB; 512GB version ships late October .

Bandwidth matters because local inference is a data-moving game: model weights sit in unified memory, and every generated token requires streaming hundreds of GB of weights. Higher bandwidth = faster generation — the baseline for all benchmarks below.

Benchmarks: Longer Context, Bigger M5 Ultra Lead

Viticci used GPT-6 Astra to coordinate Codex for cross-device automated testing, loading models like Qwen3.8-Flash-Next via oMLX on macOS, testing contexts from 4K to 256K.

Generation Speed (fixed 512-token output)

Generation speed comparison chart
Generation speed comparison chart

Pattern is clear: the longer the context, the larger M5 Ultra's advantage . At 4K context it leads by 54%; at 256K the lead widens to 93.5% . Subjective feel: average response 70% faster ; short prompts on Qwen3.8-Flash-Next exceed 100 tok/s .

Prefill (Prompt Processing) Speed

First-token latency comparison chart
First-token latency comparison chart

M5 Ultra prefill runs at 2,057–2,771 tok/s vs M3 Ultra's 861–1,112 tok/s — average 2.5× faster . Real impact: a 256K document takes M3 Ultra ~4 minutes to first token; M5 Ultra needs only 104 seconds. For agent workflows where each loop re-reads tool results, 2.5× prefill cuts total wait time by more than half .

Head-to-Head vs RTX 5090: Loses Raw Speed, Wins Everything Else

Test machine: Ryzen 9 9950X3D + RTX 5090.

RTX 5090 vs M5 Ultra comparison chart
RTX 5090 vs M5 Ultra comparison chart

Raw speed favors 5090:

6K-token prompt: 5090 prefill 3,031 tok/s vs M5 Ultra ~1,700 tok/s.

Generation bandwidth 1.79 TB/s vs 1.2 TB/s; long-context generation ~25% faster on 5090.

But the story flips. The 5090 has only 32GB VRAM . To run Qwen3.8-27B at 256K context it must quantize attention cache to 8-bit and borrow 96GB system RAM — once it spills to system memory, speed collapses to 1.5–4.6 tok/s , unusable. M5 Ultra's unified memory holds the model outright, no compromise.

Add form factor, power, noise: the PC tower runs hot and loud; Mac Studio is a silent, cool aluminum box. Viticci:

"Considering size, heat, noise, and macOS ecosystem, I'd pick M5 Ultra Mac Studio every time."

One-line summary: 5090 wins peak speed; M5 Ultra wins "how large a model can run" and "whether you'll keep it on 24/7."

What It Actually Does on His Desk

Data is abstract; workflows are concrete. Viticci's M5 Ultra runs these 24/7:

Open Minis for iOS default brain : personal assistant fully driven by local Qwen3.8-Flash-Next, handles weekly reminders.

Hermes Agent voice assistant : Qwen3-TTS + Flash-Next for real-time voice; M5 Ultra acts as server.

Codex coding copilot : local model as main thread in Codex App, or GPT-6 Astra orchestrates local sub-agents.

Desk research agent : the 310-document, 99-day zero-cost run.

Local image generation : Qwen-Image-2.1 produces an image in 180 seconds, peak memory 78GB.

Three-way concurrency : three simultaneous Flash-Next sessions push combined throughput to 81.5 tok/s — 23% higher than single-stream; M3 Ultra three-way only gained 4%.

Point 6 is critical: In the agent era, the key metric isn't single-stream speed but concurrent throughput . Your assistant handling calendar, email, and code simultaneously without stalling is what separates an "agent god machine" from a "benchmark toy."

What Fits in 256GB? 5-bit Is the Sweet Spot

Practical question: what models fit in 256GB unified memory? Using Qwen3.8-Flash-Next (oMLX measured peak memory):

4-bit (oQ4e) : 155GB, full in-memory, fastest (prose 111.6 tok/s).

5-bit (oQ5e) : 179GB, full in-memory, Viticci calls 5-bit the best quality/speed sweet spot .

6-bit / 8-bit : exceed 200GB safety line; require offloading embedding tables to SSD, speed drops to 87–95 tok/s, degraded.

Also GLM-5.3-Flash (4/8-bit mixed quantization) fits completely. When 512GB ships, 8-bit full in-memory for large models becomes zero-compromise. Note: at 256K context GLM-5.3 OOMs on 256GB — the only hard boundary found so far.

Final Thoughts

"M5 Ultra lets me run local agents with stunning performance — less time staring at blank screens, everything happening on a compact, cool, quiet desktop machine. Unimaginable a few years ago. But now, it's here."

Three takeaways for local AI power users:

256GB is enough : 5-bit quantization is the sweet spot; runs 200GB-class models without waiting for 512GB.

Don't compare peak speed with 5090 : one is a large-model container, the other a sprinter; different tracks.

Focus on concurrency and prefill : the true agent-era metrics, where M5 Ultra improves most.

The first "bucket machine" of the local AI agent era has arrived.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

quantizationconcurrencybenchmarkunified memoryMac StudioRTX 5090M5 Ultralocal AI agents
Lao Guo's Learning Space
Written by

Lao Guo's Learning Space

AI learning, discussion, and hands‑on practice with self‑reflection

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.