How to choose an AI model for your hardware
Updated 7/20/2026
AI models come in different sizes, measured in billions of parameters (B). The bigger they are, the more capable, but they need more memory.
The basic memory rule
A quantized (compressed) model needs roughly as many GB of memory as it has billions of parameters:
- 3B: ~3-4 GB, runs on CPU with enough RAM.
- 7-8B: ~6-8 GB, ideal on an entry GPU.
- 13B: ~10-14 GB, needs a decent GPU.
- 70B: ~40+ GB, needs a powerful GPU or several.
CPU or GPU
On CPU, small models work, but slowly. On a GPU, everything is tens of times faster. See when you need a GPU.
Quantization
Quantized versions (Q4, Q5) reduce the memory needed with little quality loss. For most cases, a Q4 quantization is an excellent compromise.
How to choose in practice
- Start with a small model and test whether it solves your task.
- Move to a bigger one only if you need more quality.
- Match the size to the available memory; see the GPU plans for large models.
With hourly billing you can test a large model on a GPU for a few hours, to see if it is worth it, with no commitment.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to use OpenHands as an AI software engineer
OpenHands takes a task and writes, runs and debugs the code on its own. Here is how to use it safely.
Updated 7/20/2026AI & self-hostingHow to extract web data without code, using Maxun
Build robots that collect data from websites by clicking, without writing a line of code.
Updated 7/20/2026AI & self-hostingHow to build a customer chatbot with Dify
Use Dify to create an assistant that answers from your company documents, without writing code.
Updated 7/20/2026