medium.com 14 min read Original Source

Mac Studio vs DGX Spark vs RTX 5090

Pick the model before the computer. A Mac Studio, a DGX Spark and an RTX 5090 desktop each run a model only as big as their memory. So the model’s file size decides which of the 3 can run it at all. Among the ones that can, memory speed sets how fast it answers, and price settles the rest.

You are inside the ⚡ Hardware & Inference Course.

Every lesson free, in order.

TL;DR

  • Your model picks the computer: one too big for a computer’s memory crawls there, whatever else that computer does well.
  • Among the computers that hold it, memory speed sets the pace, and price decides whether the faster one is worth it.
  • The Mac Studio is the buy for models over 32GB: it holds them for less, unless your code must run on NVIDIA servers.

📬 New here? Every week, one AI engineering concept made usable like this. Subscribe.

The Product Page That Sells You the Wrong Computer

You have 3 product pages open and 5,000 to 12,000 dollars to spend, and each page shows a different kind of number. The RTX 5090’s spec table shows speed: its memory moves 1,792 gigabytes a second. NVIDIA’s DGX Spark page headlines compute: a petaFLOP, a quadrillion math operations a second at peak. Apple’s Mac Studio page offers room: up to 512GB of memory. Speed, compute and room are 3 different things, and only room decides whether the model you want runs at all.123

Buy on speed and you get the RTX 5090 desktop, and on a model that fits its card it is quick. Artificial Analysis replayed one recorded coding session on several computers: 8 tasks, 168 calls to the open model Qwen3.8–27B. The RTX 5090 desktop got through it in 4.9 minutes. The DGX Spark, whose memory moves 273 gigabytes a second, took 17.3. The test had no Mac Studio.4

🔗 If 4-bit files are fuzzy, start with What is Quantization?.

Then your assistant fumbles a hard refactor, and you look at the next model up. Qwen3.8-Flash-Next handles harder tasks: it scores 40 on Artificial Analysis’s intelligence index, where Qwen3.8–27B scores 34. Its smallest 4-bit file is 93.7GB, and the RTX 5090’s card holds 32GB of it. The other 62GB sits in the desktop’s system memory, and the card fetches it over a slow link for every token, so the quick computer crawls. So you are choosing between a fast computer for the model you have and a roomier one for the model you want.56

The Three Computers at October 2026 Prices

The Mac Studio, the DGX Spark and the RTX 5090 desktop all keep your coding assistant and your company’s code on your desk. They part ways on 3 things: how much memory they have, how fast that memory is, and what they cost.

  1. Apple’s Mac Studio. The version with the M5 Max chip is the cheapest Mac Studio at 128GB, enough for the Flash-Next file. Its processor and GPU share that memory as one pool, which moves 614 gigabytes a second. For that version Apple charges 5,399 dollars.
  2. NVIDIA’s DGX Spark. It also has 128GB shared the same way, and that memory moves 273 gigabytes a second. NVIDIA raised its price on 2 October, from 4,699 dollars to 6,950. A 64GB version at the same speed is on sale from 23 October at 4,999 dollars. Its 64GB cannot hold the Flash-Next file.
  3. A desktop with an RTX 5090. The card carries 32GB of its own memory, which moves 1,792 gigabytes a second, the fastest of the 3. On 21 October the card alone cost 9,499.99 to 10,900 dollars from marketplace sellers on Newegg. The other parts add 2,190 dollars by my October parts list: (1) a processor and motherboard, (2) 64GB of system memory, (3) a power supply and (4) a case. The desktop comes to about 11,690 dollars with Newegg’s 9,499.99 card.78910111213

The 2 NVIDIA computers run CUDA, and so does any NVIDIA server at work. The Mac runs Apple’s MLX, written for Apple’s own chips.

🔗 If CUDA is fuzzy, start with What is CUDA?.

This comparison leaves out RTX Spark laptops and AMD’s Strix Halo computers. The laptops run the DGX Spark’s chip, so the Spark’s numbers cover them, and their 128GB models ship only in late December. AMD’s Ryzen AI Halo, the newest Strix Halo computer, took twice the Spark’s time on Artificial Analysis’s coding session.

What Each Number on the Product Page Means

Let’s look at a turn of inference in a coding session. Each turn, your coding assistant sends the model everything said so far. The program running the model keeps what it has already read, so each turn it reads only what is new, around 450 tokens, under a page of text. The model reads those in one pass, then writes its answer one token at a time, and the answer going back starts the next turn. Engineers call the reading prefill and the writing decode. Writing is the slow part: in Artificial Analysis’s sessions, reading the new tokens took only 22 to 41 percent of the time, and writing took the rest.1415

🔗 If prefill and decode are fuzzy, start with Why is Inference Slow and Expensive?.

Compute limits the read, and memory speed limits every token of the answer.

4 things decide the pick, in this order: (1) memory size, (2) memory speed, (3) compute and (4) software. Price comes in once a computer has passed the size test.

1) Memory size gates whether the model fits. A model runs only if all of its weights fit in the memory the GPU can reach, with room left for the conversation. At 4 bits per weight, a model takes a little over half a gigabyte per billion weights. Qwen3.8–27B’s 27 billion weights come to about 17GB in a 4-bit file. A bigger memory holds a smarter model. Past 128GB, only the Mac Studio comes in bigger versions: its M5 Ultra version costs 9,499 dollars at 256GB and has no price yet at 512GB. The 256GB version holds GLM-5.3-Flash, scoring 42 on the same intelligence index. The 512GB version holds GLM-5.3, scoring 45.161718

Each rung up buys a smarter model, and past 128GB only the Mac Studio climbs.

2 cards with the same memory speed show what happens when a model does not fit. The RTX 5090 has 32GB and the RTX PRO 6000 has 96GB, both read at 1,792 gigabytes a second. Hardware Corner ran gpt-oss-120b on the RTX 5090 in llama.cpp. The model’s file is 63.4GB, so about half sat in system memory, and the card wrote 3.4 tokens a second. The RTX PRO 6000 held the whole file and wrote 196 tokens a second. Memory size made that difference.19202122

2) Memory speed sets how fast a model writes. To write each token, the model reads the weights that token uses from memory. Qwen3.8–27B reads all 17GB for every token. On the DGX Spark’s 273 gigabytes a second, reading 17GB a token caps writing at about 16 tokens a second, and Kubesimplify measured 11.6 in llama.cpp. Writing speed tops out near memory speed divided by the bytes read per token. A model such as gpt-oss-120b reads only part of its weights for each token, which is how the RTX PRO 6000 reached 196 tokens a second on a 63.4GB file. Speculative decoding lifts the cap another way: a small model guesses several tokens, and the big model checks them all in one read of its weights. Every one of Artificial Analysis’s runs used speculative decoding. The Spark wrote the session’s 31,000 answer tokens in 17.3 minutes, at least 29 tokens a second by my arithmetic, nearly twice its cap of about 16.2324

Memory speed alone does not set a session’s length. The RTX 5090 reads memory 6.6 times as fast as the Spark and finished the session 3.5 times sooner. The computer also has to read each prompt, and each computer ran its own speculative decoding settings. The Mac in Artificial Analysis’s test was a MacBook Pro with an M5 Pro chip at 307 gigabytes a second. That laptop took more than twice the Spark’s time at nearly the Spark’s memory speed.

The RTX Spark laptop lands beside the DGX Spark at 18.7 minutes to 17.3, and the 3 slow-memory computers took 17.3 to 37.6 minutes at nearly the same memory speed.

3) Compute limits how fast the computer reads the prompt. The model reads its weights once for the whole new prompt and does the math for every token in that one pass. So compute, the math rate, sets the read. The DGX Spark page’s petaFLOP is that rate. The longest new prompts arrive as tool outputs. Artificial Analysis’s September runs show the cost: after one large tool output the RTX 5090 paused about 2 seconds before writing, and the MacBook Pro up to 39.

4) Some AI programs, vLLM among them, run only on the 2 NVIDIA computers. Ollama runs on all 3. So does llama.cpp. We compare vLLM and Ollama in vLLM vs Ollama vs SGLang vs TensorRT-LLM.25

Ollama, llama.cpp and MLX all print how fast the model read the prompt and how fast it wrote the answer. A session’s length follows from them: tokens written divided by writing speed, plus new prompt tokens divided by reading speed. Hardware Corner’s M5 Max MacBook Pro read 2,537 tokens a second and wrote 64.5 in MLX on gpt-oss-120b with a 32,000-token prompt. Artificial Analysis’s 8 tasks read about 196,000 new tokens and write about 31,000. By my arithmetic, the M5 Max runs a session that size on gpt-oss-120b in about 9 minutes.

RTX 5090 Desktop

In one sentence: the fastest of the 3 computers for any model that fits in its card’s 32GB, at about 11,690 dollars.

👍 The good

  • It finished Artificial Analysis’s Qwen3.8–27B coding session in 4.9 minutes, the fastest computer that test has run.26

👎 The bad

  • The RTX 5090 peaked at 577 watts in MacStories’ agent tests, so the desktop needs a large power supply.
  • The card’s 16-pin power connector melted in Club386’s test system in June 2026, and Club386 called the design flawed.2728

🎯 Best for: a fast coding assistant on a 4-bit model the size of Qwen3.8–27B, with room left for the conversation.

⚠️ The ceiling: the price, which marketplace sellers now set. In October Tom’s Hardware found the card gone from NVIDIA’s store.29

❌ Do not pick this if your model needs more than 32GB, or if finishing a coding session 3.5 times sooner than on the DGX Spark is worth less to you than about 4,700 dollars it costs over the DGX Spark.

📡 MacStories’ reviewer said the RTX 5090 desktop left the room “uncomfortably warmer.”

Mac Studio

In one sentence: the cheapest computer that holds the 128GB models, at 5,399 dollars.

👍 The good

  • It holds the same 128GB as the DGX Spark for about 1,550 dollars less.
  • It writes about 1.5 times as fast as the DGX Spark on gpt-oss-120b at a 32,000-token prompt. On the same chip in a MacBook Pro, Hardware Corner measured 64.5 tokens a second in MLX. The DGX Spark wrote 42.8 in llama.cpp, so part of the gap comes from the program.
  • A whole M5 Max Mac Studio peaked at 174 watts under an agent workload in tbreak’s test. That is under a third of the 577 watts the RTX 5090 card alone drew in MacStories’ tests.30313233

👎 The bad

  • By default, macOS hands the GPU 96GB of the 128GB. The 93.7GB Flash-Next file leaves about 2GB of that for a short conversation. Raise the limit with sudo sysctl iogpu.wired_limit_mb=122880, which leaves macOS 8GB and resets at restart.
  • What you build on MLX gets set up again in vLLM when the model moves to the NVIDIA servers at work.34

🎯 Best for: one person running the 128GB models on a quiet desk.

⚠️ The ceiling: the 256GB M5 Ultra at 9,499 dollars. In MacStories’ test on that computer, macOS shut down a model server running a 6-bit Qwen3.8-Flash-Next at 176.6GB of memory before it took a request, so keep the model and its conversation under about 176GB.35

❌ Do not pick this if Qwen3.8–27B is the biggest model you need and faster answers are worth about 6,300 dollars to you: the RTX 5090 reads memory about 3 times as fast.

🔁 Know an engineer about to order a DGX Spark for its speed? Send them this before the order goes in. Share

DGX Spark

In one sentence: the one computer here that holds the 128GB models and runs CUDA, at 6,950 dollars.

👍 The good

  • On it, vLLM runs a 128GB model the same way it runs on the NVIDIA servers at work.36

👎 The bad

  • Some Sparks switch off under long heavy loads, which ends a coding session mid-turn, and an NVIDIA staff member on NVIDIA’s developer forum called it a known issue in July 2026. On that forum, capping the GPU clock at 2,200 MHz let an owner’s load test run to the end. The cap slowed the read of a 35,000-token prompt about 4 percent.
  • NVIDIA’s warranty runs 1 year and does not pass to a second owner, so a used NVIDIA-built Spark comes with none.373839

🎯 Best for: running a 128GB model in vLLM, which the Mac Studio can’t run and the RTX 5090 can’t hold.

⚠️ The ceiling: the price. NVIDIA sold its own 128GB Spark at 3,999 dollars a year ago, and today it costs 6,950. Past 128GB the Spark has no bigger version.4041

❌ Do not pick this if your model fits in 32GB, where the RTX 5090 desktop runs it faster, or if you will never need vLLM, where the Mac Studio holds the same 128GB for less.

Which Computer Fits Your Model

Qwen3.8–27B fits all 3 computers, and Qwen3.8-Flash-Next only the Mac Studio and the DGX Spark with 128GB. That split is where the decision starts:

The file size sets the shortlist, speed and price settle the rest, and the hours decide whether to buy.

The last question is whether to buy at all. A rented RTX 5090 costs from 0.47 dollars an hour in October. The 0.47 is Vast.ai’s interruptible rate, where another renter can take the card mid-job, and RunPod’s lowest rate is 0.69. Enverge charges 0.75 dollars an hour for a DGX Spark424344. At RunPod’s 0.69 and Enverge’s 0.75, the RTX 5090 desktop’s price buys about 16,900 rented hours, about 23 months of running day and night by my arithmetic, and the DGX Spark’s buys about 9,270 hours, about 13 months. None of these services rents a Mac Studio, but its price matches about 7,200 Spark hours, about 10 months. So rent first and measure your model, on a rented Spark if it needs 128GB, and buy only once you’ll run the computer longer than its price would rent it for.

The One Thing to Remember

When you buy a computer to run AI models at your desk, you are mostly buying memory. The size of that memory decides which models you can run, and its speed decides how long you wait for each answer. The RTX 5090 has the fastest memory of the 3, yet on a model too big for that memory it wrote only 3.4 tokens a second. So look up your model’s 4-bit file size first, and keep only the computers that hold it with room to spare. Then pay extra for speed only if you sit waiting on answers, and pay for the DGX Spark only if your code must also run on the NVIDIA servers at work.

💬 Which model did you last try to run at your desk, and did its file fit in your computer’s memory? Tell me in the comments. I read every one.

Leave a comment

Where to Next?

🔜 Friday: Agent Evals in Practice, what to measure so your agent’s score tells you something.

FAQ

Which computer should I buy to run AI models locally: a Mac Studio, a DGX Spark or an RTX 5090 desktop?
The one whose memory holds the model you want. A 4-bit model the size of Qwen3.8–27B fits the 32GB RTX 5090 and runs fastest there. Qwen3.8-Flash-Next and models near its size need 128GB, where the Mac Studio costs about 1,550 dollars less than the DGX Spark. Pick the Spark when your code must also run on the NVIDIA servers at work.

Can an RTX 5090 run a 120B model, or does it need 128GB of memory?
Barely. The gpt-oss-120b file takes 63.4GB and the card holds 32GB, so about half sits in system memory. Hardware Corner measured 3.4 tokens a second that way, about 2.5 minutes for a 500-token answer by my arithmetic. At the same memory speed the 96GB RTX PRO 6000 held it all and wrote 196 tokens a second, so 96GB is enough.4546

Is renting a GPU by the hour cheaper than buying a DGX Spark or a Mac Studio?
Yes, until the computer has run day and night for about 10 to 13 months, by my arithmetic on Enverge’s 0.75 dollars an hour for a Spark. None of these rental services offers a Mac Studio, so try a 128GB model on a rented Spark first.47

Does a DGX Spark run models faster than a Mac Studio?
Not for writing answers. The M5 Max Mac Studio reads memory at 614 gigabytes a second and the DGX Spark at 273. In published gpt-oss-120b runs the M5 Max chip wrote about 1.5 times the Spark’s rate, though each ran its own program. The Spark’s edge is CUDA, the software NVIDIA’s servers run.4849

How much memory do I need to run a local coding model?
32GB for Qwen3.8–27B, a 17GB file at 4 bits and the best open model for one 32GB card in October 2026 by Artificial Analysis’s index. The next model up, Qwen3.8-Flash-Next, needs 128GB. The 9,499-dollar M5 Ultra’s 256GB holds GLM-5.3-Flash.50

Why does my 128GB Mac only let the model use 96GB?
A macOS default caps it. On a new Mac the GPU may use about 75 percent of memory, so the 93.7GB Flash-Next file has about 2GB left for the conversation. Setting iogpu.wired_limit_mb to 122880 with sudo sysctl lifts the cap until restart and still leaves macOS 8GB.51

1 Compare GeForce Graphics Cards, NVIDIA (October 2026)

2 NVIDIA DGX Spark, NVIDIA (October 2026)

3 Mac Studio — Technical Specifications, Apple (October 2026)

4 First AA-AgentPerf-Local results for an NVIDIA RTX Spark N1X laptop, Artificial Analysis (October 2026)

5 Comparison of Open Source AI Models, Artificial Analysis (October 2026)

6 unsloth/Qwen3.8-Flash-Next-GGUF, Hugging Face (October 2026)

7 Buy Mac Studio, Apple (October 2026)

8 Mac Studio — Technical Specifications, Apple (October 2026)

9 NVIDIA DGX Spark, NVIDIA (October 2026)

10 2/23/2026 Price Change Announcement, NVIDIA Developer Forums (February 2026)

11 Nvidia debuts $4,999 DGX Spark with half the RAM and storage, amid memory crunch, The Register (October 2026)

12 Compare GeForce Graphics Cards, NVIDIA (October 2026)

13 MSI Gaming GeForce RTX 5090 32G GAMING TRIO OC, Newegg (October 2026)

14 First AA-AgentPerf-Local results for an NVIDIA RTX Spark N1X laptop, Artificial Analysis (October 2026)

15 Apple M5 Max for Local LLMs: First Benchmarks vs RTX Pro 6000 and RTX 5090, Hardware Corner (March 2026)

16 bartowski/Qwen3.8–27B-GGUF, Hugging Face (October 2026)

17 Comparison of Open Source AI Models, Artificial Analysis (October 2026)

18 Buy Mac Studio, Apple (October 2026)

19 GPT-OSS 120B: Offloading MoE Layers to CPU Boosts RTX 3090 and 5090 Performance, Hardware Corner (November 2025)

20 guide: running gpt-oss with llama.cpp, GitHub (August 2025)

21 ggml-org/gpt-oss-120b-GGUF, Hugging Face (October 2026)

22 NVIDIA RTX PRO 6000 Blackwell Workstation Edition, NVIDIA (October 2026)

23 Running Qwen3.8–27B on DGX Spark, Kubesimplify (August 2026)

24 AA-AgentPerf-Local: Benchmarking local AI agents on laptops and workstations, Artificial Analysis (September 2026)

25 vLLM on the DGX Spark: Architecture, Configuration, and Local Evaluation, vLLM Blog (June 2026)

26 First AA-AgentPerf-Local results for an NVIDIA RTX Spark N1X laptop, Artificial Analysis (October 2026)

27 M5 Ultra Mac Studio Review: The Dream Mac for Local AI Agents, MacStories (September 2026)

28 YouTuber Daniel Owen And Club386 Got Their RTX 5090 Connectors Cooked, Wccftech (June 2026)

29 Nvidia reportedly insists the RTX 5090 isn’t dead despite severe shortages, Tom’s Hardware (October 2026)

30 Apple M5 Max for Local LLMs: First Benchmarks vs RTX Pro 6000 and RTX 5090, Hardware Corner (March 2026)

31 dgx-spark.md, GitHub (February 2026)

32 Mac Studio M5 Max Review: The Best Reason to Run AI Locally, tbreak (September 2026)

33 M5 Ultra Mac Studio Review: The Dream Mac for Local AI Agents, MacStories (September 2026)

34 Override macOS Metal VRAM Cap, GitHub (October 2026)

35 Buy Mac Studio, Apple (October 2026)

36 vLLM on the DGX Spark: Architecture, Configuration, and Local Evaluation, vLLM Blog (June 2026)

37 Hard power-off under sustained GPU load at ~90W persists after full platform firmware update, NVIDIA Developer Forums (July 2026)

38 gb10-clock-cap, GitHub (October 2026)

39 DGX Spark Warranty, NVIDIA (October 2026)

40 2/23/2026 Price Change Announcement, NVIDIA Developer Forums (February 2026)

41 Nvidia debuts $4,999 DGX Spark with half the RAM and storage, amid memory crunch, The Register (October 2026)

42 GPU Cloud Pricing, RunPod (October 2026)

43 GPU Rental Prices: RunPod vs Vast.ai, Updated Daily, Made by Agents (October 2026)

44 Enverge Spark, Enverge (October 2026)

45 GPT-OSS 120B: Offloading MoE Layers to CPU Boosts RTX 3090 and 5090 Performance, Hardware Corner (November 2025)

46 guide: running gpt-oss with llama.cpp, GitHub (August 2025)

47 Enverge Spark, Enverge (October 2026)

48 Apple M5 Max for Local LLMs: First Benchmarks vs RTX Pro 6000 and RTX 5090, Hardware Corner (March 2026)

49 dgx-spark.md, GitHub (February 2026)

50 Comparison of Open Source AI Models, Artificial Analysis (October 2026)

51 Override macOS Metal VRAM Cap, GitHub (October 2026)