New Tool Radar

Local AI

How to Check Free RAM Before Running a Local Model

Check free RAM on the machine before loading a local model, so the model fits in memory.

Schematic with three steps: Check free RAM; Compare with the model needs; Pick a model that fits.

A local model loads into memory, and a model that is bigger than the free RAM will fail to load or swap badly. Check the free RAM first and compare it with what the model needs, using the published minimums for the app you use.

What you need

  • A computer you plan to run a model on
  • The model size and quantization you plan to use
  • The system monitor for your OS

Step 1: Check free RAM

Open the system monitor for your OS and note the free RAM with your normal apps open. This is the memory actually available, not the total installed.

Step 2: Compare with the model needs

Compare the free RAM with the published minimums: Jan needs 8 GB of RAM minimum and 16 GB is recommended, and LM Studio recommends 16 GB of RAM. A 4-bit model needs roughly half a gigabyte to 0.7 GB per billion parameters plus context.

Step 3: Pick a model that fits

Choose a model whose size fits the free RAM with room left for the system. If nothing fits, close memory-hungry apps first, or pick a smaller model or a lower quantization.

Worked example: synthetic RAM check

The table below is a synthetic example. It shows the expected result of checking RAM; no machine was checked.

Machine RAM Free RAM Model that fits
8 GB total About 6 GB free 3B model
16 GB total About 12 GB free 7B to 8B model
32 GB total About 26 GB free 13B model

Expected result (UNTESTED). the 8 GB machine fits a 3B model, the 16 GB machine fits a 7B to 8B model, and the 32 GB machine fits a 13B model, each with room left for the system. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Free RAM changes as apps open and close, so check with your normal apps open.
  • The context window also needs memory, so a long conversation needs more than the model file alone.
  • A 4-bit model needs roughly half a gigabyte to 0.7 GB per billion parameters plus context; use that as a rough guide, not a promise.

Sources

See all