Token Bench Log

Mac Studio for local LLMs

Three chips sold in the Mac Studio have a cited speed on one test: 69.95, 92.14 and 179.1 tokens a second. The thread names each chip and its GPU core count, not the machine.

Speed and watts, beside three RTX cards

Three Mac Studio machines and three RTX cards: cited tokens a second and the maker’s watts.Mac Studio M4 Max 36 GB: 69.95 tokens/s (Metal); no estimate; rated 145 W. Mac Studio M3 Ultra 512 GB: 92.14 tokens/s (Metal); no estimate; rated 270 W. Mac Studio M5 Ultra 512 GB: 179.1 tokens/s (Metal); no estimate; rated 385 W. RTX 3090: 158.16 tokens/s (CUDA); no estimate; rated 350 W. RTX 4090: 186.21 tokens/s (CUDA); no estimate; rated 450 W. RTX 5090: 290.02 tokens/s (CUDA); no estimate; rated 575 W.Tokens/sWattsestimaterating0200400600 W0300Mac Studio M4 Max 36 GB14569.95MetalMac Studio M3 Ultra 512 GB27092.14MetalMac Studio M5 Ultra 512 GB385179.1MetalRTX 3090350158.16CUDARTX 4090450186.21CUDARTX 5090575290.02CUDA
Tokens/s (Llama 2 7B Q4_0, tg128). Watts: Apple’s maximum for a whole machine, NVIDIA’s rating for a card alone. No estimate is drawn for any row. Backends differ; not a like-for-like race.
One test, Llama 2 7B Q4_0 (tg128): three Mac Studio rows from one thread, three RTX rows from another
MachineBackendTokens/sMaker’s watts
Mac Studio M4 Max 36 GBMetal, 32-core GPU69.95 tokens/sCited measurement6 W idle, 145 W max, whole machineMaker’s rating
Mac Studio M3 Ultra 512 GBMetal, 80-core GPU92.14 tokens/sCited measurement9 W idle, 270 W max, whole machineMaker’s rating
Mac Studio M5 Ultra 512 GBMetal, 80-core GPU179.1 tokens/sCited measurement9 W idle, 385 W max, whole machineMaker’s rating
RTX 3090CUDA158.16 tokens/sCited measurement350 W graphics card power, card aloneMaker’s rating
RTX 4090CUDA186.21 tokens/sCited measurement450 W total graphics power, card aloneMaker’s rating
RTX 5090CUDA290.02 tokens/sCited measurement575 W total graphics power, card aloneMaker’s rating

Speeds: llama.cpp discussion 4167 (Metal) and llama.cpp discussion 15013 (CUDA). Watts: Apple’s Mac Studio power page, and the maker’s rating for each card. The Apple watts are for the whole machine; the card watts are for the card alone, so the two columns are not a like-for-like comparison. Estimates only.

What the rows can and cannot say

  • Core counts must match. The thread lists the M4 Max with a 32-core and a 40-core GPU. Apple’s power page lists the 32-core machine, so only that row is shown. The thread’s M5 Max row has 40 cores and Apple’s page lists 32, so the M5 Max has no speed here.
  • Two builds, not one generation. The M5 Ultra row is 94 % above the M3 Ultra row, but the rows come from builds c1d0e7a and 8e672ef of llama.cpp. Estimate It is a pattern in two cited rows, not a figure for a chip generation.
  • Apple’s “Max” is a test. It is a compute-heavy test, measured at the wall with the power supply losses included, for the whole machine. It is not a reading taken while a model generates, so no watts while generating are shown for any Mac Studio, and no running cost is worked out.

Memory, and what is left out

Apple lists 36 GB of unified memory for the M4 Max machine and 512 GB for the M3 Ultra machine. Maker’s rating Processor and graphics draw on that one pool, so the site gives no fit estimate and no watts band for a Mac Studio. The band comes from a study of graphics cards, and a card’s own memory is a different thing from the memory of a whole machine.

Related pages

The Mac mini, the smaller Mac with its own rows. AI mini PCs. RTX 3090 vs 4090 vs 5090. What tokens per second means. How each kind of figure is set.