Daily Brief Applied AI

Estimating RAM for Running Open-Source Models Locally

Curated with AI, reviewed by Nazmul

Picked by Nazmul

An AI engineer with six published research papers says open-source models are the future of AI, and that the specification that matters most for running them locally is RAM, not CPU or GPU. The reel gives a simple way to work out how much memory a model needs before you try to run it.

Every model is made of parameters, the values it learned during training. A 7-billion-parameter model stores 7 billion learned values, and those values have to fit in your computer's memory. Store each one more efficiently and you can run a larger model. The source compares it to saving the same movie at different qualities: a 4K file looks great but takes more space, while a compressed 720p version looks almost the same and uses much less storage.

The formula is RAM needed equals the number of parameters multiplied by the storage per parameter. Three storage options:

  • Full quality: 4 bytes per parameter.
  • Medium quality: 2 bytes per parameter.
  • 4-bit quantized: half a byte per parameter, which the source says the most popular models today use.

At half a byte per parameter, a 7-billion-parameter model needs only 3.5 GB. Add another 20-30% overhead for the operating system and the model's working memory.

For an Apple Silicon Mac bought for AI, the advice is to prioritize RAM over GPU cores. GPU performance matters only after the model fits into memory; if it doesn't fit, the extra GPU core won't help. Buy as much RAM as you can afford, because you cannot upgrade it later. The speaker presents this as personal advice, not measured results.

Based on a reel by @null

Reading transcript

Edited transcript of Instagram reel by @null. Filler and repeated phrases removed; punctuation and headings edited for reading.

Why RAM matters more than CPU or GPU for local AI

I think the future of AI is open source models. If you want to run them locally, the most important specification isn't your CPU or GPU. It's RAM. I'm an AI engineer with six published research papers, so let me tell you how to calculate the RAM you need to run open source models well.

Every AI model is made up of parameters. Think of parameters like the information the model has learned during training. If a model has 7 billion parameters, it stores 7 billion learned values. Those values have to fit somewhere inside your computer's memory. The more efficiently you store them, the larger the model you can run.

Think of it like saving the same movie in different qualities. A 4K movie is going to look amazing, but it takes more space. A compressed version like 720p would look almost the same while using much less storage. AI models work the same way.

The formula

The formula is very simple. RAM needed equals the number of parameters multiplied by the storage per parameter. A full quality model stores each parameter in 4 bytes. A medium quality model stores it in 2 bytes. The most popular models today use 4-bit quantized versions, where each parameter uses only half a byte. That means a 7 billion parameter model needs only 3.5 GB. Add another 20-30% overhead for the operating system and the model's working memory.

Buying advice for Apple Silicon

If you are buying an Apple Silicon Mac for AI, prioritize RAM over GPU cores. GPU performance matters only after the model fits into memory. If it doesn't fit, the extra GPU core is not going to help. Buy as much RAM as you can afford, because you cannot upgrade it later.

Thoughts? Reply to the email or join the Lab →

Get it by email.

Choose the Daily Brief, Articles, or both. Free.