Introduction
A comparative performance analysis of the M5 Ultra Max Studio and a cluster of two DGX Spark units for running large language models locally. The tests focus on token generation speed, long prompt processing time, and the cost-effectiveness of both solutions for AI developers.
Key takeaways 4 / 6
The gist of the content in a few sentences
- The M5 Ultra and Dual DGX Spark achieve similar text generation speeds (approx. 38 tokens/s), though the Mac gains an advantage with smaller models due to higher memory bandwidth.
- Spark units are three times faster in the 'prefill' phase (prompt processing), which drastically reduces wait times when working with documents exceeding 32,000 tokens.
- A dual Spark configuration costs around $10,000, offering a cheaper alternative to the $14,000 Mac Studio while maintaining similar VRAM capacity.
- Using the MLX library on Mac can increase performance by over 30% compared to standard Llama CPP, although it still lags behind the Sparks in data read speeds.
Show all 6 takeaways
- The Spark cluster handles multiple simultaneous users better, whereas the Mac Studio is optimized for individual work.
- Both systems generate significant heat (up to 63°C) and consume over 400W of power under full load, requiring adequate power infrastructure.
Video chapters 22Click and the video will play from the selected moment
- 0:19M5 Ultra vs. DGX Spark Cluster
- 1:12Interconnect architecture and hardware costs
- 2:30Optimizing AI access costs
- 3:12How vLLM and Tensor Parallel work
- 3:21Tensor Parallel mechanism and hardware limitations
- 4:34Software and the token generation process
- 6:10Performance test results
- 6:28Token generation speed comparison
- 7:06Impact of software on Mac performance
- 9:02Prompt processing and latency with large contexts
- 9:59Performance in long prompt processing
- 11:50Prefill vs. decode dynamics
- 12:36The role of caching in real-world scenarios
- 12:42Impact of caching on real-world application performance
- 14:01MLX vs. Llama CPP on Mac
- 15:16Multi-user performance and concurrency
- 16:15Performance in multi-user scenarios
- 16:55Spark cluster configuration and infrastructure
- 18:55Mac versatility and power consumption
- 19:22Thermals and noise under load
- 19:45Software and memory configuration
- 19:45Economic and practical considerations
Summary
First 3 of 22 partsM5 Ultra vs. DGX Spark Cluster
In a direct performance test, the new M5 Ultra Max Studio equipped with 256 GB of memory faced off against a set of two DGX Spark devices, each with 128 GB of memory. When generating 800 tokens, the M5 Ultra achieved a result of 38.7 tokens per second, while the DGX Spark cluster hit 34.3 tokens per second. Although these results are close, these devices represent different design approaches.
Interconnect architecture and hardware costs
Spark units are connected via a 200 GB cable supporting the RoCE (RDMA over Converged Ethernet) protocol, which enables direct remote memory access. A Mac configuration with an 8 TB drive costs $14,000, whereas two Spark units including cabling cost a total of around $10,000, making them a cheaper option for developers working with large local models. The speaker notes that the price of Sparks has increased from $4,000 to nearly $5,000 per unit since their launch.
Optimizing AI access costs
As a solution to the high cost of multiple model subscriptions like ChatGPT, Claude, or Gemini, the Merlin AI tool is presented. It utilizes API access, allowing it to offer lower prices than the standard $20 plans for each individual model. This tool integrates various models into a single interface, offering features such as website summarization, deep research, and searching academic resources or Reddit.
Read the full summary – for free
19 parts of text left, key takeaways, facts, questions and answers, action items – with the source minute for every passage. Plus search, collections and the AI assistant.
Keep reading for freeFree, in a minute. Have an account? Log in
