Aadhib
ENع

SYSTEM NOTE

DGX Spark vs Mac Studio for local AI

The DGX Spark and the Mac Studio both put 128GB of unified memory on a desk, but they are built for different jobs. The Spark runs NVIDIA's CUDA stack at 273GB/s; the Mac Studio runs MLX and Metal at up to 614GB/s, or 1.2TB/s with up to 512GB on the M5 Ultra.

If you want to run serious language models on your own desk, two machines now come up in almost every conversation: NVIDIA's DGX Spark and Apple's Mac Studio. Both are small, both offer 128GB of memory that the CPU and GPU share, and both are marketed for local AI. So people ask which one is faster, or which one is better.

Those are the wrong questions, or at least incomplete ones. The two machines can hold the same models. What separates them is how quickly they can read those models out of memory, which software ecosystem they put you in, and where the work goes after it leaves your desk. Speed screenshots answer the first point and ignore the other two.

This comparison uses only NVIDIA's and Apple's own pages and the documentation of the tools that run on them, all read on the publish date and listed at the end. Where I do arithmetic, I show it, and I label it as a theoretical ceiling rather than a benchmark.

The short answer

  • Buy a DGX Spark if your production target is NVIDIA hardware, in your own data centre or in the cloud, and you want a desk machine with the same CUDA stack. It is a development box for NVIDIA deployments.
  • Buy a Mac Studio if the local machine is the deployment: an internal assistant, an agent host or a private model for a small team. It has more memory bandwidth, and on the M5 Ultra far more memory.
  • For fine-tuning, lean to the Spark. NVIDIA documents fine-tuning up to 70B parameters on it and publishes playbooks for NeMo and Unsloth.
DGX SparkMac Studio (M5 Max)Mac Studio (M5 Ultra)
ChipNVIDIA GB10 Grace BlackwellApple M5 MaxApple M5 Ultra
CPU20-core Arm18-coreup to 36-core
Memory128GB (64GB from partners)36GB to 128GB96GB to 512GB
Memory bandwidth273GB/s460GB/s, or 614GB/s with the 40-core GPU1.2TB/s
Operating systemDGX OS (Ubuntu-based Linux)macOSmacOS
Main AI stackCUDA, vLLM, SGLang, NIM, NeMoMetal, MLXMetal, MLX
ClusteringConnectX-7 at 200GbpsThunderbolt 5 with RDMAThunderbolt 5 with RDMA
Power240W supply480W maximum continuous480W maximum continuous
US priceNot listed on NVIDIA's product pageFrom $2,499From $5,499

Memory: the same ceiling at 128GB, until the Ultra

Memory capacity decides which models you can load at all. The llama.cpp quantisation guide puts the common Q4_K_M format at about 4.89 bits per weight, and notes that models are fully loaded into memory. That works out at roughly 0.61GB per billion parameters, so a 27B dense model needs about 16.5GB for the weights and a 120B model about 73GB, before you add room for context.

At 128GB the two platforms are level. NVIDIA's DGX Spark page says a single 128GB unit runs inference on models up to 200 billion parameters, and the 64GB version, which is sold only by NVIDIA's partners, up to 100 billion. The M5 Max Mac Studio also tops out at 128GB, and only in the configuration with the 40-core GPU.

The M5 Ultra changes the picture. Apple's specifications list it with 96GB, 256GB or 512GB, and Apple's announcement said the 512GB configuration would arrive in late October. No single DGX Spark gets near that. If the model you need is larger than about 200B parameters and you want it in one box, the Mac Studio M5 Ultra is the only one of these that does it.

I go through which open models fit at each memory size in The best local LLMs for 2027.

Bandwidth: why the Mac generates tokens faster on paper

Capacity decides whether a model fits. Bandwidth decides how fast it answers. Every generated token has to read the model's active weights from memory, so the upper limit on generation speed is roughly bandwidth divided by the bytes read per token.

The published figures:

  • DGX Spark: 273GB/s, over a 256-bit LPDDR5x interface.
  • Mac Studio M5 Max: 460GB/s with the 32-core GPU, and up to 614GB/s with the 40-core GPU, which is also the only M5 Max configuration that takes 128GB.
  • Mac Studio M5 Ultra: 1.2TB/s.

Take that 27B dense model at Q4_K_M, about 16.5GB. The theoretical ceiling is about 16 tokens per second on the Spark (273 divided by 16.5), about 37 on a 40-core M5 Max, and about 72 on an M5 Ultra. Real numbers come in below those ceilings, and they move with the runtime, the context length and the batch size. But the ratio holds: for a single user generating text, the Mac Studio has a little over twice the Spark's bandwidth at 128GB, and more than four times it on the Ultra.

Two things narrow the gap in practice. Mixture-of-experts models read only their active parameters per token, so a model with a few billion active parameters is fast on both machines. And reading a long prompt (prefill) is limited by compute rather than bandwidth, which is where NVIDIA's tensor cores and Apple's new GPU Neural Accelerators both earn their place. NVIDIA quotes up to 1 petaflop of FP4 for the Spark, and notes that the figure is theoretical and uses sparsity. Apple quotes multiples against its own older chips rather than an absolute figure. Neither number tells you much about your workload, so I would not choose on either.

Software: CUDA versus MLX is the real decision

This is the difference that matters most, and it is the one spec sheets hide.

The DGX Spark is a small NVIDIA DGX system. It runs DGX OS, an Ubuntu-based Linux, and NVIDIA lists the stack on top: NIM microservices, the NeMo framework, RAPIDS, PyTorch and Jupyter. NVIDIA's own playbooks for the Spark cover vLLM, vLLM across a cluster, SGLang, llama.cpp, NIM, NeMo fine-tuning, Unsloth, LLaMA-Factory, NVFP4 quantisation, ComfyUI, Open WebUI and LM Studio, among others. Ollama's documentation lists the GB10 in the DGX Spark at CUDA compute capability 12.1. In other words, most things that run on an NVIDIA server run here, the same way.

The Mac Studio runs Apple's stack. Models run on the GPU through Metal, and Apple's own framework, MLX, describes itself as "an array framework for machine learning on Apple silicon". Apple names MLX alongside LM Studio when it describes the Mac Studio's AI performance. Ollama supports the Mac through Metal, and llama.cpp and LM Studio run well on it; I compared those three in Ollama vs LM Studio vs llama.cpp. vLLM lists Apple Silicon as a GPU target through a separate plugin, vLLM-Metal, rather than as a core platform.

There is some overlap. MLX now has a CUDA backend on Linux (pip install mlx[cuda]), and llama.cpp and LM Studio run on both machines. But the centre of gravity is clear. If your team writes CUDA code, serves models with vLLM or SGLang, or deploys NIM containers, everything you build on a Spark carries over to production NVIDIA hardware. On a Mac you are building on a different platform from the one you will deploy to.

The reverse is also true. If the machine on your desk is where the model will live, the Mac's software is mature, simple to run and does not need a Linux administrator.

Fine-tuning and development work

NVIDIA's page says the DGX Spark can fine-tune models up to 70 billion parameters, and its playbooks include NeMo fine-tuning, Unsloth, LLaMA-Factory, vision-language model fine-tuning and image model fine-tuning on the 128GB version. That is a deliberate position: the Spark is aimed at people who build and adapt models, not only people who run them.

You can fine-tune on a Mac with MLX, and for small adapters it works. But the fine-tuning tools most teams use, and most published recipes, assume CUDA. If training or adapting models is a regular part of the work, the Spark is the less awkward choice.

Before buying either for fine-tuning, check that you need fine-tuning at all. Most business use cases are better served by retrieval over your own documents, and I explain how to tell the two apart in RAG vs fine-tuning.

Scaling beyond one box

Both machines can be linked, in different ways.

DGX Spark has a ConnectX-7 network interface at 200Gbps. NVIDIA's page says two linked 128GB units run models up to 400 billion parameters, and four units up to 700 billion. Its playbooks cover connecting multiple Sparks and running vLLM across them, which mirrors how multi-GPU NVIDIA servers work.

Mac Studio uses Thunderbolt 5. Apple says Thunderbolt 5 with RDMA lets several Mac Studios share a memory pool, and that a four-system cluster delivers up to three times faster AI inference than one system, based on Apple's own testing. The M5 Ultra has six Thunderbolt 5 ports at up to 120Gb/s.

My view: if you are already thinking about clustering four machines, check first whether one M5 Ultra with 512GB would do the job, or whether you have reached the point where a proper GPU server, or a hosted model, is the cheaper answer. Clusters of desk machines are interesting, but they add operational work that a single box does not.

Price, power and the practical details

Price. Apple's US store lists the Mac Studio from $2,499 for the M5 Max with a 32-core GPU, $3,099 for the 40-core GPU version, which requires at least 48GB of memory, $5,499 for the M5 Ultra with a 64-core GPU and $6,799 for the 80-core version. The 128GB M5 Max you would compare with a Spark costs more than $3,099 once the memory is upgraded. NVIDIA's DGX Spark product page does not list a price; it sends buyers to the NVIDIA Marketplace, which I could not load on the publish date, so I have not quoted a figure. Get a current quote from NVIDIA or a partner, and compare it with the Mac configuration that has the memory you need, not the base model.

Power and size. The Spark is 150mm square and 50.5mm high, weighs 1.2kg and has a 240W power supply. The Mac Studio is 197mm square and 95mm high, weighs 2.7kg with the M5 Max or 3.6kg with the M5 Ultra, and lists 480W maximum continuous power. NVIDIA lists 35dB in operation for the Spark; Apple's specifications page does not give a noise figure.

Storage and networking. The Spark has up to 4TB of self-encrypting NVMe storage, 10GbE and the 200Gbps ConnectX-7 port. The Mac Studio offers up to 8TB on the M5 Max and 16TB on the M5 Ultra, with 10Gb Ethernet built in.

Operating it. The Spark is a Linux machine and wants someone who is comfortable with Linux, drivers and containers. The Mac Studio is a Mac. For a small company without a platform team, that difference is real.

How I would choose

I use a Mac Studio for my own internal agents, so take this with that in mind. These are the rules I would apply for someone else:

  • Your production runs on NVIDIA GPUs, on premises or in the cloud: DGX Spark. It is the most direct way to give an engineer the real CUDA stack on their desk.
  • You fine-tune or adapt models regularly: DGX Spark.
  • The machine will serve a team or run agents in production: Mac Studio, for the bandwidth. M5 Max with 128GB for models up to around 120B total parameters, mixture-of-experts by preference.
  • You need models above about 200B parameters in one box: Mac Studio M5 Ultra with 256GB or 512GB.
  • Nobody in the company runs Linux servers: Mac Studio.
  • You are not sure what model or workload you have: neither yet. Decide the model, the licence and the quantisation first, then buy for that.

For smaller deployments, a Mac mini is often enough, and I explain why in Why I'm interested in Mac minis for local AI deployments. And whichever you buy, local hardware does not by itself make a deployment compliant with PDPL or any other law. Access control, logging and retention still decide that, and many companies end up with a mix of local and hosted models, which I cover in The best architecture is sometimes hybrid.

If you want help choosing the machine, sizing it for a real workload and setting it up securely inside your network, that is what my local AI deployment work covers.

Sources

  1. 01NVIDIA DGX SparkNVIDIA
  2. 02DGX Spark playbooksNVIDIA
  3. 03Apple introduces new Mac Studio with M5 Max and M5 UltraApple · AUG 2026
  4. 04Mac Studio technical specificationsApple
  5. 05Buy Mac StudioApple
  6. 06MLX READMEApple machine learning research
  7. 07Ollama hardware supportOllama
  8. 08vLLM installationvLLM
  9. 09llama.cpp quantize READMEggml-org

If this was useful, follow what I’m building.

All notes →

Projects and case studies

All notes