18 November 2026

دليل · Guide6 min read

قبل ما تشتري ماك للموديلات المحلية: احسب الذاكرة والسرعة في خمس دقايقBefore You Buy a Mac for Local Models: Work Out Memory and Speed in Five Minutes

Work out how much memory you need before you pay for a Mac mini or any Mac for local models, and how fast it can run them, with simple math you can do yourself.

Who this guide is for

Anyone thinking about buying a Mac to run AI models on their own machine

Key terms

Unified memory
On Apple silicon, the CPU and the GPU work from the same memory. There is no separate graphics memory like on a regular PC.
Parameters
The numbers a model learned. A 70B model holds seventy billion of them, and all of them have to sit in memory while it runs.
Quantization
Storing each number at a lower precision so the model gets smaller. At 16 bit each parameter takes 2 bytes, at 8 bit one byte, at 4 bit half a byte.
Memory bandwidth
How many gigabytes per second the chip can read from memory. This number sets speed more than the CPU does.

The steps

  1. Step 1

    Know what sets the size: memory, not the CPU

    A model has to load fully into memory to run fast. On a regular PC it has to fit inside the graphics card's own memory, and NVIDIA's top gaming card today, the RTX 5090, has 32 GB.

    On a Mac, the CPU and the GPU share the same memory. So the memory you pick at checkout is the ceiling for the models you can run.

    Tip: Mac memory is built into the chip package and cannot be upgraded later, so you make this call once.

  2. Step 2

    Work out the GPU's share of memory

    macOS does not hand all memory to the GPU, because the system and your apps need some. The default that local model developers document is about three quarters.

    So 64 GB gives a model roughly 48, 32 GB roughly 24, and 16 GB roughly 12. Treat these as estimates, not a promise.

    A terminal window with the command sysctl iogpu.wired_limit_mb
    IllustrationType the command in Terminal on your Mac. A result of zero means the Mac is on the default.
    sysctl iogpu.wired_limit_mb
    PromptSee the current limit in Terminal

    Tip: A result of zero means the Mac is on the default.

  3. Step 3

    Work out the size of the model

    The math: parameters in billions times bytes per parameter.

    At 16 bit an 8B model takes about 16 GB. At 8 bit about 8 GB. At 4 bit about 4 GB.

    Same for big ones: a 70B model at 4 bit takes about 35 GB, and about 140 GB at 16 bit.

    I have a Mac with [memory size] GB of unified memory. I want to run [model name], which has [parameter count] billion parameters, at [4, 8 or 16] bit. Work out the size of the weights, compare it with three quarters of my memory, tell me if it fits, and how much room is left for context.
    PromptLet Claude do the math
  4. Step 4

    Leave room for context and apps

    The math above covers the weights only. Long chats and the files you hand the model take extra memory, and it grows as the context gets longer.

    Do not pick a model that fills the GPU's whole share. Keep a clear margin, especially if agents run all day next to other apps.

    Tip: If a model does not fit, try a lower precision or a smaller model before you think about a bigger machine.

  5. Step 5

    Work out the top speed to expect

    For every token the model writes, the chip has to read all of the model's weights from memory. So the theoretical ceiling is bandwidth divided by model size.

    Example: a Mac mini with M5 Pro reads 307 GB per second. A 35 GB model gives you under 9 tokens per second at best. A 17 GB model, about 18. Real speed is usually lower.

    Compare a Mac with [number] GB/s of memory bandwidth and a Mac with [number] GB/s for a model of [number] GB. Work out the theoretical tokens per second ceiling for each and explain the difference in plain words.
    PromptCompare two options
  6. Step 6

    Match the numbers to the Macs on sale

    The current Mac mini comes in two versions: M6, from 16 GB up to 32 GB, with up to 170 GB/s. And M5 Pro, from 24 GB up to 64 GB, with 307 GB/s.

    In the UAE, Apple's announcement lists M6 from AED 3,799 and M5 Pro from AED 7,299, and more memory costs more. Check the final price in the Apple Store before you order.

    Tip: Decide the biggest model you want to run, work out its size, then pick the memory. Not the other way round.

  7. Step 7

    Test before you rely on it

    Once the Mac arrives, load the model in LM Studio or Ollama and try a real task from your work. Watch memory in Activity Monitor and note the real speed.

    If the model only just fits and the Mac slows down, drop the precision or the size. A model that runs steadily beats a bigger one that chokes the machine.

Ready prompts to copy

I want to run local models on a Mac for [use: writing, code, agents]. The biggest model I have in mind has [parameter count] billion parameters. Suggest the right memory size with the math: weights at 4 bit, three quarters of memory for the GPU, and room for context. Show the math step by step.
PromptPick memory before you buy

The takeaway

On a Mac, memory is the ceiling for model size and bandwidth is the ceiling for speed. Work them out before you pay.

Most value

Start building with me now

We sit together, break down your problem, and I build the AI solution with you step by step

60minutes
  • A private session with you
  • Real building during the session
  • Results you take with you when we finish
Book a build session

100% free

A free consultation about your problem

Start