Dev.to AI 🤖 Ai 👁 0 📖 16 min read

Would I buy the 128 GB M5 Max or the 96 GB M5 Ultra for local coding?

My pick for running several coding agents would be the 128 GB M5 Max. If local inference were my main workload and my models fit with room for the rest of my setup, I’d test the 96 GB M5 Ultra first. For my own desk, I’

Would I buy the 128 GB M5 Max or the 96 GB M5 Ultra for local coding?

My pick for running several coding agents would be the 128 GB M5 Max. If local inference were my main workload and my models fit with room for the rest of my setup, I’d test the 96 GB M5 Ultra first.

For my own desk, I’d try moving builds, tests, and dev servers to a second machine before buying either Mac. I measured inference on one rented 256 GB M5 Ultra. I didn’t benchmark either of the two Macs I was considering.

My team is working on an inference cluster. That got me thinking about what I’d want on my own desk. My Claude Code and Codex subscriptions, along with the tools and remote access I already use, cover my day-to-day coding work. I often have several agents working at once. Their builds, test suites, and running apps can all end up on the same machine. A second machine would give those jobs their own resources. It could also give me somewhere to try local models and render on the GPU.

The Mac Studio made the question concrete. At iSpot, the M5 Max with 128 GB cost PLN 10,000 more than the same chip with 48 GB. The 128 GB Max was PLN 26,999. The 96 GB Ultra was PLN 27,999. iSpot’s Max memory options · iSpot’s 96 GB Ultra

The 96 GB Ultra has more CPU and GPU cores and nearly twice the published memory bandwidth. The Max gives me 32 GB more memory. Apple skips 128 GB on the Ultra. Its next memory option is 256 GB, paired with an 80-core GPU and a much higher price. Apple Mac Studio specifications

So I had two questions. Would I use enough memory to justify the PLN 10,000 upgrade? At roughly PLN 27,000, would I get more out of the 128 GB Max or the 96 GB Ultra? I rented a 256 GB Ultra to see how much memory my workloads used and where I spent time waiting. All my measurements come from that rental.

Would I buy one?

I’d try a separate build and test machine before buying a Mac Studio. I’d keep my Claude Code and Codex workflow and move a build, a test suite, and an app instance to a spare or borrowed host. I’d choose a host that supports the operating system those jobs need. I’d give each concurrent job its own environment and check whether my main workstation stays responsive. I’d also track the time it takes to send changes over, run the job, and get the result back. For local inference and GPU rendering experiments, I’d start with hourly rentals.

I like the idea of running models at home. The jobs I’d run at home today are occasional experiments. My subscriptions cover the coding work I do regularly. In the time I have for personal projects, I care about how long it takes to get to a change I can trust. Waiting for a long prompt matters when I’m blocked. So do retries, reviewing the diff, and running the tests. I’d use a local helper for a small, repeatable task if it reduced that total.

I’d consider a monthly rental if I started using the remote machine most days or needed to leave work running between sessions. I’d compare quotes for hardware that can run the same workload, then count the hours I’d actually be billed, including idle time. At the $2.50 hourly rate I paid, 40 billed hours cost $100. For example, a $400 monthly quote for a comparable machine would equal 160 billed hours. I’d buy a Mac Studio if I found regular work that benefits from macOS or the GPU and a configuration that handles it. A build and test worker could have a much smaller hardware budget. Enverge hourly rate · Enverge billing rules

For one coding model, I’d check the 48 GB Max first. If 48 GB is tight, I’d check the 64 GB option for PLN 2,000 more. I’d pay for 128 GB only if my workload needs the extra room. On the rental, Ollama reported about 38 GB loaded for Flint 40B and 43 GB for Qwen3.8 27B (Qwen MLX) near 256k context. Those readings leave little apparent room on a 48 GB machine for other software. I’d test with my IDE and services open before ordering it.

The 128 GB Max I’d shortlist has a 1 TB SSD. Cloud models handle my agents’ inference today. Their builds, tests, and app instances still compete for memory on my machine. I’d check peak memory use and swap during my usual work before ordering.

I checked these iSpot prices in Poland on November 22, 2026. Every configuration in the table has a 1 TB SSD.

Mac Studio CPU cores GPU cores Memory bandwidth Listed price
M5 Max 48 GB 18 40 614 GB/s PLN 16,999
M5 Max 64 GB 18 40 614 GB/s PLN 18,999 (from the memory options)
M5 Max 128 GB 18 40 614 GB/s PLN 26,999
M5 Ultra 96 GB 30 64 1.2 TB/s PLN 27,999
M5 Ultra 256 GB 36 80 1.2 TB/s PLN 54,499

Black Friday price check. On November 22, iSeer listed the 128 GB Max with a 1 TB SSD at PLN 26,099 including VAT, with a delivery estimate of three to eight weeks. I’d use that as my baseline when comparing offers for the same configuration. Apple’s Polish Black Friday gift-card offer leaves out the Mac Studio. iSeer listing · Apple’s Black Friday terms

Here’s what would change my choice.

  • One Flint or Qwen agent, and waiting on long prompts is the main problem. Put the 96 GB Ultra on the shortlist. Ollama reported about 38 GB and 43 GB loaded near 256k tokens on the rental, well below the total memory of either smaller Mac. The 96 GB Ultra has more GPU cores and higher published memory bandwidth than the Max. I’d check how much time it saves on my own prompts before paying the premium.
  • One long Flash-Next session. I’d test the 128 GB Max with my exact Flash-Next model file (in GGUF format) and the llama.cpp server before relying on it. The server reached 86.3 GiB of process RSS with one slot on the rental. I’d use the smaller Mac’s actual GPU memory budget and the outcome of the run to decide. If I’m happy to change model files and serving software, the 96 GB Ultra also stays in the running. Community runs completed a 128k Flash-Next prompt on both machines with the same oMLX version and model tag. The 96 GB run used a compressed attention cache. The 128 GB run used a different cache setup. Both are useful starting configurations, with different settings that can affect speed. 96 GB Ultra run · 128 GB Max run
  • Four long Flash-Next sessions at once. I’d try the 128 GB Max with the same four prompts before buying 256 GB. The 256 GB Ultra completed the run, with a peak of 102.1 GiB for the server process. The fourth request took 388 seconds to start replying. That time came from 80 GPU cores. I’d run the acceptance check below on the 40-core Max. If it runs out of memory, I’d consider the 256 GB Ultra if its observed wait is acceptable. If the wait is the problem, I’d try fewer parallel requests or shorter prompts first.

My test before buying more memory. If I can borrow the exact 128 GB configuration, I’d run the pinned four-prompt setup with the IDE and services I typically leave open. I’d set two limits beforehand. How long can each request wait for its first token, and how long can the whole reply take? I’d require all four to finish within both limits. I’d record the recommended GPU working-set size reported by macOS Metal. That recommendation can be lower than the machine’s total memory. I’d check for loading errors and watch memory pressure and swap through the final reply. A process RSS reading cannot settle whether the GPU will accept the workload. If I can’t test the Max and must run four sessions, the 256 GB Ultra is the option I saw complete that run. Whether I need that much memory remains an open question. I made a small checker that applies the wait and swap limits I choose to a recorded run. Acceptance checker and instructions

Scripts, per-task results and verification command

Why I rented one machine

I rented a 256 GB Ultra so the larger workloads had room to run. I wanted to answer three questions. How much memory do the models actually use? How long will I wait on the first turn and on follow-ups? And does a quick reply translate into more working code?

What the Enverge rental was like

Enverge was a good option for this experiment. I waited a little over a week for a Mac to become available. Once it was ready, I connected over SSH and ran my scripts from a non-admin account. The rate was $2.50 an hour. From the approximate start time to the end of verification, the machine was up for roughly 14¾ hours, about $37 at that rate. That’s my estimate through the last check, before dashboard deletion. Enverge says queue time is free. Enverge Mac Studio · Queue documentation

The last step was manual. I could stop the tests from my terminal. To stop the charges, I had to copy my results out and choose Delete in the Enverge dashboard. Billing continues while the instance exists, even when it's idle. I couldn't find a documented command or API for automating that last step. Enverge billing · Instance controls

Why the smaller Macs are estimates

I tried to make the rental behave like a smaller Mac. The first test just flagged workloads that crossed 96 GB or 128 GB. I later tried reserving memory in another process. The model servers still saw the full GPU budget. So the numbers below come from the 256 GB Mac. I use them to estimate how much room the smaller machines would have.

Name used below Measured setup
Flint Recursive Flint 40B QAT int4, about 2.5B active parameters, Ollama 0.40.13
Qwen MLX Qwen3.8 27B with NVFP4 weights in Ollama’s MLX package, Ollama 0.40.13
Flash-Next Qwen3.8-Flash-Next 125B, Unsloth UD-Q4_K_XL GGUF, llama.cpp build 12604

Changing the model file or the software that runs it can change these numbers.

Would I actually need the extra memory?

Workload on the 256 GB rental Ollama loaded size Peak sampled process RSS
Flint, one session near 256k tokens 38.1 GB (35.5 GiB) 21.3 GiB
Qwen MLX, one session near 256k tokens 42.9 GB (40.0 GiB) 15.1 GiB
Flash-Next, one slot, one 131k-token prompt — 86.3 GiB (about 92.7 GB)
Flash-Next, four slots, four 131k-token prompts — 102.1 GiB (about 110 GB)

The Ollama readings leave more apparent headroom for Flint and Qwen. They cover the loaded model, while RSS measures resident memory in the sampled processes. Neither covers the whole machine.

I sent four cold Flash-Next prompts together. Their first tokens arrived after roughly 99, 196, 294, and 388 seconds. That pattern is consistent with fresh prompts waiting their turn. I’d want warm follow-up timings too if my agents usually keep their sessions open.

How long does a short reply take in a long session?

A model has to read the prompt before it can reply. On a follow-up, the server can reuse work from the start of the prompt. I timed each entire short reply. Each row is one conversation.

Setup Approx. prompt Reply cap First reply, cold prompt Second reply Third reply Fourth reply
Flint 128k 100 tokens 30.42 s 1.41 s 1.35 s 1.35 s
Qwen MLX 128k 100 tokens 119.02 s 11.33 s 1.91 s 2.06 s
Flint 252k 100 tokens 97.34 s 1.98 s 1.98 s 1.99 s
Qwen MLX 251k 100 tokens 325.26 s 13.74 s 2.33 s 2.50 s
Flash-Next 120k 150 tokens 97.18 s 4.27 s 4.43 s —

On the cold ~128k prompt, Flint finished its short reply in 30 s and Qwen took 119 s. By replies three and four, both were around two seconds. I kept the start of the prompt fixed for those follow-ups.

Which setup gets me to working code?

I first ran 164 HumanEval+ tasks per setup, one attempt per task, with an 8,192-token output budget, temperature 0.6, and top-p 0.95. A solution passed when it passed both the base and extended tests. EvalPlus

I used EvalPlus to regrade the saved answers on Linux ARM64 and then under WSL on Linux x86-64. All 492 pass/fail results matched the macOS run. Both regrades used the original answers. Linux replay and per-task verdicts

The full-run timing figures below include stretches when I was setting up the virtual machine. I also checked timings after setting aside tasks from those windows.

Setup Passed Generation time Correct per generation hour Generated tokens Replies cut short
Flint 40B QAT int4, Ollama 151/164 26.0 min 348 246,720 4
Qwen3.8 27B MLX NVFP4, Ollama 150/164 16.8 min 537 149,620 1
Flash-Next UD-Q4_K_XL, llama.cpp 150/164 58.7 min 153 194,058 9

The HumanEval+ scores differ by at most one task. On the 102 exercises all three passed outside the VM setup windows, Qwen took 8.7 min of generation, Flint 12.9 min, and Flash-Next 22.3 min. That gives me a speed comparison on successful answers from one run. Shared-success timing and Linux regrade

Then I used Aider, a terminal coding assistant, to see how each model handled feedback. Each model edited a file. If the tests failed, Aider sent the output back to the model and let it try again. I sorted the 34 Python exercises by name, shuffled them with Python seed 20261121, and used the first 12 in that order for every model. Aider’s Polyglot benchmark I compared up to two attempts with whole-file edits, a 65,536-token context and a 32,768-token output limit, temperature 1.0, and top-p 0.95. In an early run, I asked Flint for patches and set a limit of 8,192 tokens per reply. It kept hitting that limit, so I stopped. I then set up a fresh test with the same settings for all three models.

Setup Completed First try Within two tries Time Output tokens Replies cut short
Flint 40B QAT int4 12/12 0/12 6/12 46:04 415,280 2
Qwen3.8 27B MLX 12/12 5/12 10/12 7:39 55,640 0
Flash-Next UD-Q4_K_XL 5/12 0/5 5/5 57:37, stopped during exercise six 170,730 2

On the 256 GB M5 Ultra, Flint finished a cold 128k reply in 30.42 seconds versus 119.02 for Qwen MLX. In Aider, Qwen passed 10 of 12 in 7:39 and Flint passed 6 of 12 in 46:04.

Qwen completed all 12 exercises and passed 10 in 7:39. Flint also completed all 12 and passed 6 in 46:04. I stopped Flash-Next during exercise six to cap rental time. The next table compares the five exercises all three completed.

Setup First attempt Within two attempts Time through exercise five Passed per elapsed hour Replies cut short
Flint 0/5 2/5 22:35 5.3 1
Qwen MLX 2/5 4/5 4:01 59.8 0
Flash-Next 0/5 5/5 52:16 5.7 2

Aider time includes edits, tests, and retries. Flash-Next passed all five shared exercises. Qwen passed four in about four minutes. One run on five exercises leaves the broader quality question open. Aider’s full leaderboard and scope

What failed and what’s still open

  • I couldn’t turn the rented Mac into a 96 GB or 128 GB machine. The next test is the same four Flash-Next sessions on a 128 GB Max. I’d record the wait, memory pressure, and swap to see whether I need 256 GB for that workload.
  • My first code check gave me a bad signal. Every result in the first macOS smoke test came back as a timeout because the grading workers hit an error while setting a resource limit. I corrected the macOS setup and checked its results against both Linux regrades. Per-task verdicts from all three runs
  • The tests didn’t settle which model writes better code. The highest and lowest HumanEval+ scores differed by one exercise. Flash-Next finished only five Aider exercises before I stopped its run. I can say how the models did on those same five and how long they took. Their scores leave the broader quality question open.

How this fits with other tests

The 96 GB Ultra versus 128 GB Max trade-off has been covered before. Oddbyte’s buying guide compares memory capacity and bandwidth and discusses early reviews. Fireside Labs measured cold and cached turns on a 256 GB Ultra and ran multi-hour coding sessions with hidden tests. Their write-up also includes request replays across inference engines. Oddbyte buying guide · Fireside Labs benchmarks

The result that changed my shortlist was the split between getting a long session started and getting working code. Flint’s first short reply at about 128k finished in 30 seconds, against 119 for Qwen. After a few turns both were around two seconds. On the Python edits, Qwen got to working code sooner. Four simultaneous cold prompts made waiting time part of the purchase decision even on the 256 GB machine.

Reproduce the numbers

The public snapshot contains the prompt generators, server flags, full model digests, raw timing and memory records, saved HumanEval+ answers and both sets of grading decisions. Run python verify_snapshot.py from that snapshot to recalculate the Aider summary and check the verdicts and the four-request Flash-Next result. The cold tests requested 132,572 context tokens per slot. The server rounded that to 132,608 in both the one- and four-slot runs. The verification command checks saved records. For a fresh measurement, start the same model weights and serving engine and follow the command for the test you want to repeat. To check the saved answers independently, use EvalPlus 0.3.1 with the corresponding humaneval/samples_*.jsonl in an isolated Linux environment. Runbook for new measurements and grading · Pinned evidence snapshot

For the timing check I removed HumanEval/10–39 and HumanEval/132–149 from all three setups. Those IDs covered two windows when the VM setup might have affected timing. Aider ran in Linux through Lima while the models ran on macOS. I used flint:40b-a2b-qat-int4, qwen3.8:27b-mlx, and Unsloth revision f5d175d for Flash-Next. Model identifiers

Measurement details

Memory and concurrent requests. The llama.cpp logs confirm one slot for one request and four slots for four requests. Each slot had room for 132,608 tokens. Each prompt was about 131k tokens. I sampled memory roughly once a second. The Ollama column uses the largest size reported by the server in decimal GB. The RSS column uses resident memory from the macOS process list in GiB. The saved logs omit Metal buffer totals. On the target Mac I’d record those totals and check the recommended GPU working-set size, loading errors, and swap. Apple’s Metal working-set documentation

Short replies. I loaded the models before timing them. Ollama got a repeated job-scheduler description and a short follow-up question about failed jobs. Each new turn kept up to 400 characters from the previous reply. The three-turn Flash-Next run used a job log that grew by 38 lines per follow-up. I limited Ollama to 100 output tokens and Flash-Next to 150. The table records elapsed time through the end of each reply. It has no per-turn token counts, first-token times, or correctness scores.

HumanEval+ timing. Generation time excludes grading and warm-up. To check the effect of the VM setup, I set aside the same exercises for all three models. Across the remaining 116 exercises, Flint passed 110 in 17.2 minutes, Qwen passed 108 in 11.5, and Flash-Next passed 110 in 37.2. That’s 383.3, 563.5, and 177.5 passes per generation hour, respectively. Flint emitted 163,966 tokens, Qwen 103,069, and Flash-Next 121,631. Their rates were about 159, 149, and 55 output tokens per second of request time, including prompt processing. On the 102 shared passes, Qwen was quicker than Flint on 60 and quicker than Flash-Next on 96. Detailed timing tables

Aider timing and cutoffs. Across all 12 exercises, Qwen passed 78.4 per elapsed hour and Flint passed 7.8. The full Flash-Next run clock includes the interrupted sixth exercise. Its matched time uses the five completed exercises. The token totals include extra API calls and cut-off replies. The API logs don’t have exercise IDs for calculating matched token totals. Two Flint replies hit the cap after an initial failed edit. Two Flash-Next first attempts hit the cap and passed on retry. Each server used its default chat template and reasoning settings. Per-case audit excerpts

What I’d try next

In my DIY Jev benchmark, I tested a model on a narrow job. It had to pick from a defined set of answers. I’d keep the local helper experiment just as specific and give it one small edit at a time. The DIY Jev benchmark

I’d start with Qwen MLX for small edits on a repository I work in regularly. I’d time the same edit once with the main agent doing the work and once with a local helper doing it. I’d record the time until the edit is ready to merge, including retries and checks. I’d also track how much of that time needs my attention.

For the workstation decision, I’d have several agents run their normal builds and tests. I’d compare a session with everything on the main machine against one with the jobs on the second host. I’d give parallel jobs separate working copies, app instances, and ports. I’d measure the time from sending the changes to getting the result back. I’d also compare memory pressure and whether the main machine stays responsive. I’d check whether my renderer and the other models I want to use support GPU acceleration on macOS. Then I’d time a real render and a run of one of those models. If those jobs need to overlap in practice, I’d test them together as well as separately. The rental in this article measured LLM workloads. The render and other models would need their own timings.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.