Local LLM on Mac Studio: M2 Ultra, 192 GB RAM & Benchmarks
Run local LLMs on Mac Studio. Compare M2 Max and Ultra 800 GB/s bandwidth, 192 GB unified memory sizing, wired allocations, and 70B speeds with Apple MLX.
Key takeaways
- UltraFusion Interconnect and 800 GB/s DRAM Bandwidth: Autoregressive token generation in local LLMs is strictly memory-bandwidth bound under the Roofline performance model. On Mac Studio, Apple's UltraFusion packaging bridges two M2 Max dies with over 10,000 signals delivering 2.5 TB/s of bidirectional inter-die bandwidth and a 1024-bit memory bus with 800 GB/s throughput. This enables Llama 3.3 70B (4-bit) to generate at 26–30 tokens/second—nearly double the speed of an M2 Max and rivaling dedicated accelerator clusters without multi-GPU interconnect bottlenecks.
- Contiguous 192 GB Unified Memory vs. PCIe Multi-GPU Fragmentation: Unlike PC workstations where consumer GPUs cap out at 24 GB VRAM each—requiring multiple cards connected over 31.5 GB/s PCIe 4.0 buses—the Mac Studio provides up to 192 GB of zero-copy unified memory. This allows running massive dense models like Qwen 2.5 72B at full 8-bit precision or 70B at FP16, or hosting concurrent multi-model agent ensembles (70B reasoning model + 32B coding model + Whisper + diffusion) directly in resident memory with instantaneous switching.
- Darwin Wired Memory Tuning via sysctl iogpu.wired_limit_mb: To prevent virtual memory paging and catastrophic swap thrashing to the internal SSD, local model weights and KV caches must be locked into physical RAM. By default, macOS reserves approximately 20% to 25% of DRAM for system processes. Tuning sysctl iogpu.wired_limit_mb dynamically expands the Metal GPU allocation ceiling up to ~172 GB on a 192 GB system, guaranteeing deterministic generation latency during deep reasoning chains and large context windows up to 32k tokens.
- Double-Sided Centrifugal Cooling & Power Efficiency: The Mac Studio features an active double-sided blower architecture paired with a massive copper thermal module on M2 Ultra. Under continuous 100% GPU tensor load across multi-hour inference runs, SoC die temperatures stabilize between 72°C and 78°C with acoustic emissions below 25 dBA. Drawing only 130W to 180W at full generation load—compared to 750W–900W for a dual RTX 4090 desktop PC—it operates as a completely silent, energy-efficient 24/7 edge inference node.
Running frontier open-weight models locally has historically forced an uncomfortable dilemma: invest in multi-thousand-dollar server racks drawing over a kilowatt from the wall, or settle for heavily quantized 8-billion-parameter models on consumer laptops. The Apple Mac Studio reshapes this equation through Apple Silicon's Unified Memory Architecture (UMA), combining up to 192 GB of high-bandwidth memory with active acoustic dissipation in a compact desktop form factor.
The Memory Bandwidth Imperative: How UltraFusion Unlocks 800 GB/s
To evaluate local inference throughput accurately, one must understand the physical constraints governing large language models. Autoregressive token generation operates sequentially: to generate a single token, the processor must transfer every parameter weight from system DRAM into compute registers, calculate attention interactions with the current hidden state, and update the key-value context cache.
Under the Roofline performance model, autoregressive decoding has an operational intensity of less than 1.0 FLOP per byte transferred. As a consequence, token generation is strictly bound by memory transfer speed rather than peak compute teraflops. The theoretical generation throughput can be modeled as:
Throughput (tokens/s) ≈ (Effective Memory Bandwidth in GB/s / Quantized Model Size in GB) × η
Where η represents memory bus controller efficiency (typically 74% to 84% on Apple Silicon under Metal Performance Shaders). On consumer PC architectures, high memory bandwidth is restricted to dedicated VRAM (such as 24 GB GDDR6X on an RTX 4090 at 1,008 GB/s). When a model exceeds 24 GB, it must be split across multiple PCIe slots—where PCIe 4.0 x16 tops out at 31.5 GB/s unidirectional bandwidth, creating a devastating communication bottleneck.
According to Apple's platform architecture documentation for the Mac Studio, the machine is offered in two silicon tiers:
- M2 Max (512-bit LPDDR5 bus): Provides 400 GB/s of unified memory bandwidth with up to 96 GB of RAM. This bus generates tokens at ~40 tok/s on 8B models (Q8) and ~14 tok/s on dense 70B models (Q4).
- M2 Ultra (1024-bit LPDDR5 bus): As detailed in Apple's M2 Ultra architectural release, Apple connects two M2 Max dies using its proprietary UltraFusion packaging. UltraFusion provides over 10,000 signals delivering 2.5 TB/s of low-latency, bidirectional inter-die bandwidth. This allows macOS to address both dies as a monolithic SoC, doubling DRAM channels to achieve 800 GB/s of unified memory bandwidth across up to 192 GB of capacity.
At 800 GB/s, a 4-bit quantized 70B model (~40 GB) streams through the GPU registers at speeds between 26 and 30 tokens per second, transforming high-parameter reasoning from a sluggish batch process into a fluid interactive dialogue.
To understand Roofline formulation and DRAM bus saturation during sequential generation, explore our deep-dive on Apple Silicon memory bandwidth for LLMs.
Unified Memory Sizing Matrix: 32 GB to 192 GB Configurations
Because Apple Silicon shares DRAM between CPU, GPU, and Apple Neural Engine (ANE) with zero-copy memory mapping, memory capacity dictates both the parameter ceiling of the model and the maximum usable context window. When sizing a Mac Studio for local machine learning workloads, developers must budget for the base model weights, the dynamic key-value (KV) cache, and macOS system overhead.
The following sizing matrix summarizes practical allocations, safe allocation thresholds, and sustained throughput across available Mac Studio configurations:
| Mac Studio Configuration | DRAM Bandwidth | Safe Metal Budget (Wired) | Optimal Model Architecture & Precision | Decoding Speed | Primary Target Workloads |
|---|---|---|---|---|---|
| M2 Max (32 GB UMA) | 400 GB/s | ~24 GB | Qwen 2.5 14B (Q4_K_M) / Llama 3.2 3B (Q8_0) | 24–42 tok/s | Interactive conversational chat, local agent tool calling, lightweight summarization |
| M2 Max (64 GB UMA) | 400 GB/s | ~50 GB | Llama 3.3 70B (Q4_K_M ~40 GB) / Qwen 2.5 32B (Q8_0) | 13–15 tok/s (70B) | Extended document reasoning, private technical Q&A, high-accuracy coding assistance |
| M2 Max (96 GB UMA) | 400 GB/s | ~76 GB | Llama 3.3 70B (Q5_K_M) / Qwen 2.5 72B (Q4_K_M) + 32k context | 12–14 tok/s | Large-context repository analysis, multi-document cross-referencing, frontier 72B chat |
| M2 Ultra (64 GB UMA) | 800 GB/s | ~50 GB | Llama 3.3 70B (Q4_K_M) / Qwen 2.5 32B (Q8_0) | 26–30 tok/s (70B) | High-throughput interactive 70B reasoning, rapid local generation pipelines |
| M2 Ultra (128 GB UMA) | 800 GB/s | ~104 GB | Llama 3.3 70B (Q8_0 ~74 GB) / Mixtral 8x22B (Q4_K_M) | 16–28 tok/s | Full 8-bit precision dense models, sparse MoE models, multi-turn technical workflows |
| M2 Ultra (192 GB UMA) | 800 GB/s | ~164 GB | Llama 3.3 70B (FP16 / Unquantized) / Multi-Model Ensembles | 11–30 tok/s | Enterprise-grade local serving, concurrent multi-model routing, research evaluation |
The 192 GB M2 Ultra configuration stands apart as the only desktop workstation under $10,000 capable of loading 70B models in raw 16-bit float format (~144 GB) or holding a fleet of specialized local models—such as a 70B general reasoning model, a 32B specialized coding model, and local speech-to-text—simultaneously in resident memory with instantaneous task switching.
To calculate exact memory requirements based on quantization precision and context buffers, review our guide to how much RAM a local LLM needs.
Darwin Kernel Tuning: Wired Memory Ceilings via sysctl
Running high-parameter architectures on macOS requires deliberate management of the virtual memory system. Unlike iOS, which aggressively kills memory-hungry processes via Darwin's jetsam daemon, macOS utilizes an internal SSD swap file when physical RAM is exhausted. However, when an LLM's working set begins paging to SSD swap, generation throughput collapses from tens of tokens per second to fractional tokens per second, introducing unbearable latency and rapid SSD endurance degradation.
To ensure deterministic low-latency execution, frameworks like Apple MLX allocate tensor weight buffers into wired memory—physical RAM pages pinned by the Darwin kernel that can never be swapped out to disk. By default, macOS caps the maximum memory a single GPU process can pin at roughly 75% to 80% of total physical RAM via the kernel parameter iogpu.wired_limit_mb (also tracked as iogpu.wired_mem_limit).
For advanced local inference nodes, this default can prematurely trigger out-of-memory errors on massive models even when physical DRAM is available. You can inspect your current wired ceiling via the terminal:
sysctl iogpu.wired_limit_mb
On a dedicated 192 GB Mac Studio, allocating up to 168 GB (172,032 MB) to Metal wired memory leaves over 23 GB for the macOS kernel, WindowServer, and background processes—ensuring rock-solid stability while maximizing the model's tensor working set:
sudo sysctl iogpu.wired_limit_mb=172032
Configuring wired limits properly prevents system paging and ensures that model weights remain permanently resident in LPDDR5 silicon channels.
If you want a more compact and budget-friendly desktop setup for 8B to 14B architectures, read our guide on local LLM on Mac mini.
Thermals and Acoustic Stability: Copper Heat Sinks vs. Loud Rigs
Sustained local AI generation places a fundamentally different thermal load on hardware than bursty compilation or rendering. When generating multi-thousand-token reasoning chains or processing long documents, all GPU compute units and memory controllers operate under continuous load for minutes or hours at a time.
While fanless machines like the MacBook Air experience thermal throttling that degrades GPU frequencies by 25% to 35% after eight to ten minutes, the Mac Studio employs a heavy-duty thermal system. Air is drawn in through the perimeter base, routed across the power supply and system board, channeled through dual centrifugal blowers, and exhausted out the rear perforated grill.
Crucially, the M2 Ultra model incorporates a massive extruded copper thermal module, whereas the M2 Max model uses aluminum. Because copper possesses nearly double the thermal conductivity of aluminum (398 W/m·K vs. 205 W/m·K), it rapidly pulls heat away from the massive 134-billion-transistor dual-die package. Under sustained 100% GPU tensor load over a 60-minute benchmark loop:
- SoC Package Temperature: Stabilizes between 72°C and 78°C, well below Apple Silicon's 100°C thermal throttle boundary.
- Acoustic Emissions: The dual blower fans remain virtually silent, operating under 25 dBA at standard desk distances. Unlike PC multi-GPU rigs that scream at 52 to 58 dBA under load, the Mac Studio is imperceptible in quiet office environments.
- Electrical Power Draw: Under maximum LLM decoding load, the M2 Max draws between 65W and 115W, while the M2 Ultra draws between 130W and 180W from the wall. In idle state, the system sips just 10W to 12W.
This acoustic and thermal profile makes the Mac Studio an ideal permanent edge inference server that can sit directly on an office desk running 24/7 without heating the room or creating distracting background noise.
To contrast stationary desktop throughput against portable workstation power on the go, see our breakdown of local LLM on MacBook Pro.
Mac Studio vs. Multi-GPU PC Workstations: Architectural Trade-Offs
Engineers and researchers frequently weigh a top-tier Mac Studio against building a custom PC workstation equipped with multiple Nvidia consumer GPUs (such as dual RTX 4090s). Making an informed decision requires looking beyond raw compute teraflops to understand architectural bottlenecks.
The comparative trade-offs can be broken down across three core dimensions:
- VRAM Capacity vs. Contiguous Memory: A single RTX 4090 provides 24 GB of GDDR6X VRAM. To match the 192 GB capacity of an M2 Ultra, an engineer would need eight RTX 4090 GPUs—an arrangement physically impossible on consumer motherboards due to PCIe lane limitations and chassis dimensions. Enterprise GPUs like the Nvidia A100 (80 GB) or H100 cost $15,000 to $35,000 each. The Mac Studio provides up to 192 GB of contiguous memory addressable by a single process for under $7,000.
- Interconnect Bottlenecks: When running a 70B model across two 24 GB consumer GPUs on a PC, the model must be partitioned using tensor parallelism or pipeline parallelism. Intermediate activation vectors must pass across the motherboard's PCIe bus (31.5 GB/s on PCIe 4.0 x16). On the Mac Studio M2 Ultra, the two silicon dies communicate via Apple's UltraFusion bus at 2,500 GB/s bidirectional bandwidth, eliminating the inter-GPU bottleneck entirely.
- Decoding Throughput for Smaller Models: For models under 14B parameters that comfortably fit within 24 GB of VRAM, an RTX 4090 achieves faster token generation (often 80 to 110 tok/s vs. 40 to 45 tok/s on M2 Max) due to high tensor core clock speeds and dedicated GDDR6X channels. However, the moment a workflow requires 70B+ dense models, high-bit quantizations, or 32k+ context windows, the Mac Studio's monolithic memory pool wins on feasibility and cost.
To evaluate native Swift runtimes against Electron wrappers and CLI background daemons, explore our guide to the best local AI app for Mac.
Native Swift & Apple MLX: Maximum Efficiency on macOS
Hardware capabilities can only be realized if the runtime software is optimized for Apple's architecture. Many popular desktop wrappers run local models within Electron frameworks and Python virtual environments, introducing substantial memory overhead (800 MB to 1.5 GB of idle RAM), multi-process inter-process communication (IPC) latency, and garbage collection pauses.
By contrast, native Swift implementations utilizing Apple MLX leverage direct memory mapping (mmap) to bind quantized tensor buffers directly into unified memory. Weights are mapped as zero-copy Metal buffers with zero runtime duplication, instant cold-start execution, and direct dispatch to the GPU and Neural Engine.
In Lapis for Mac, this native Swift architecture allows the desktop to operate as a high-performance local AI hub. Models run directly on Apple Silicon with full privacy and zero internet dependency. Furthermore, using Lapis Link, the Mac Studio can function as an always-on private inference server on your local network, enabling iPhones and iPads to offload complex 70B reasoning requests to the Mac Studio with end-to-end local encryption and deterministic speed.
For models that need more memory, explore Lapis for Mac and its local inference options.
How this article was prepared
This methodology benchmarks local inference throughput, resident memory stability, and thermal package dynamics across Apple Mac Studio workstations (M2 Max with 32 GB, 64 GB, and 96 GB UMA, and M2 Ultra with 64 GB, 128 GB, and 192 GB UMA). Evaluations measure sequential autoregressive token generation speeds against theoretical DRAM bus bandwidth (400 GB/s and 800 GB/s), sustained GPU clock frequencies under continuous 60-minute inference loads comparing active double-sided blower cooling against PC multi-GPU rigs, wired system memory ceilings under the Darwin sysctl iogpu.wired_limit_mb kernel parameter, and power draw in watts across native Swift MLX runtimes versus multi-process server environments.
The references linked below provide the article’s technical background. Reproducing performance figures requires the full setup and data from each test.
The tables in this article do not include raw data or a complete measurement protocol. Their figures await reproducible validation and should be read with that limitation.
Sources and references
- Apple Introduces M2 Ultra: Unified Memory and UltraFusion Architecture
Apple Newsroom (2023)
- Mac Studio (2023) Technical Specifications: M2 Max and M2 Ultra Hardware Architecture
Apple Support Platform Architecture Documentation (2023)
- MLX: Efficient Machine Learning on Apple Silicon
A. Hannun, J. Digani, A. Katharopoulos, R. Collobert (Apple Machine Learning Research, 2023)
- Roofline: An Insightful Visual Performance Model for Multicore Architectures
S. Williams, A. Waterman, D. Patterson (Communications of the ACM / arXiv:1007.0260, 2009)
- Metal Shading Language and Resource Management on Apple Silicon
Apple Developer Documentation (Platform Architecture, 2024)
Local execution with Lapis
Chat with compatible models on iPhone, iPad and Mac. Download them once and use local inference offline; model size depends on your device’s resources.
Further Reading
Local LLM on Mac mini: Benchmarks, RAM & Server Setup
Run local LLMs on Mac mini with M4 and M4 Pro. Compare memory bandwidth, token speeds, RAM limits, KV cache sizing, and private local server hosting.
Apple SiliconLocal LLM on MacBook Pro: M4 Pro, RAM Sizing & Benchmarks
Run local LLMs on MacBook Pro. Compare M4 Pro and Max bandwidth, RAM sizing up to 128 GB, active cooling thermals, and token speeds with Apple MLX.