Gemma 2 27B

Largest Gemma 2 text model with an 8K context; it does not read images.

  • Chat and text
Find hardware for it

Short answer

Gemma 2 27B needs about 19 GB of GPU-usable memory with 8K context, for one user. That includes 16 GB of Q4_0 weights; this tag supports at most 8K context.

Smallest catalog device that holds it: GMKtec EVO-X1 32 GB (24 GB GPU-usable) at 8K.

Cheapest catalog device that fits it at a usable pace (our estimate): GMKtec EVO-X2 64 GB, 48 GB GPU-usable.

Weight memory
about 16 GB
Q4_0
Planning with 8K context
19 GB
one user, rough reserve
Maximum model context
8K
per the chosen tag, not a hardware promise

Will Gemma 2 27B run on your hardware?

Every memory size in our catalog with its cheapest box, for one user.

Will Gemma 2 27B run on your hardware?. Model8K context + reserveUsable memory of the boxDoesn’t fit
  1. GMKtec M6 Ultra 16 GB8 GB usable · 16 GB RAM
    Too little memory 19 GB / 8 GB
    –
  2. Apple Mac mini M6 16 GB12 GB usable · 16 GB RAM
    Too little memory 19 GB / 12 GB
    –
  3. GMKtec M6 Ultra 32 GB16 GB usable · 32 GB RAM
    Too little memory 19 GB / 16 GB
    –
  4. Apple Mac mini M6 24 GB18 GB usable · 24 GB RAM
    Too little memory 19 GB / 18 GB
    –
  5. GMKtec EVO-X1 32 GB24 GB usable · 32 GB RAM
    Fits 19 GB / 24 GB
    8K
  6. Apple Mac Studio M5 Max 36 GB27 GB usable · 36 GB RAM
    Fits 19 GB / 27 GB
    8K
  7. GMKtec EVO-X2 64 GB48 GB usable · 64 GB RAM
    Fits 19 GB / 48 GB
    8K
  8. Minisforum AI X1 Pro 96 GB64 GB usable · 96 GB RAM
    Fits 19 GB / 64 GB
    8K
  9. Apple Mac Studio M5 Ultra 96 GB72 GB usable · 96 GB RAM
    Fits 19 GB / 72 GB
    8K
  10. GMKtec EVO-X2 128 GB96 GB usable · 128 GB RAM
    Fits 19 GB / 96 GB
    8K
  11. Lenovo ThinkStation PGX 128 GB110 GB usable · 128 GB RAM
    Fits 19 GB / 110 GB
    8K

Matching hardware

The cheapest boxes that hold it with 8K context.

Adjust context and budget yourself →

All catalog sizes of gemma2

Same Ollama line, other sizes, planned for 8K context and one user.

All catalog sizes of gemma2. Model8K context + reserve
  1. Gemma 2 9Bgemma2:9b
    8.4 GB
    12 GB
  2. Gemma 2 27Bgemma2:27b
    this page 19 GB
    24 GB

Start locally

Install a current Ollama version that supports the model. The first run downloads the weights.

ollama run gemma2:27b

Start with a short context and check the GPU offload with ollama ps. Setting up Ollama explains the steps.

Plan memory realistically

The weights stay the same, the context grows with the length of the conversation. Rules of thumb, not measurements. Approximate Ollama file size as weight memory; runtime, KV cache and, where applicable, image processing add to it. Assumptions and limits of the calculation

Plan memory realistically. Modelcontext + reserve
  1. 8K context
    19 GB
    19 GB

Questions and answers

How much RAM or VRAM does Gemma 2 27B need?

About 19 GB of GPU-usable memory with 8K context for one user: 16 GB of Q4_0 weights plus our flat reserve for runtime and KV cache. This tag supports at most 8K context.

Which mini PC can run Gemma 2 27B?

17 of 28 devices in our catalog hold it with 8K context. The smallest fitting memory size is 24 GB; the cheapest device that holds it at a usable pace by our estimate is GMKtec EVO-X2 64 GB.

What is the Ollama command for Gemma 2 27B?

ollama run gemma2:27b. The first start downloads about 16 GB; ollama ps then shows whether the model runs fully on the GPU.