---
title: "How much RAM and VRAM do local AI models need?"
description: "We estimate the amount of RAM and VRAM needed for the model based on the size of the weights and context. We compare options with 4, 6, 8, and 12 GB of VRAM and check the headroom before purchasing."
url: "https://lostele.com/en/articles/pamyat-dlya-lokalnoi-neiroseti/"
language: "en"
author: "lostele.com"
datePublished: "2026-11-21T23:17:48+03:00"
dateModified: "2026-11-21T23:17:48+03:00"
---

[Guides](https://lostele.com/en/guides/) · AI PC

# How much RAM and VRAM do local AI models need?

How much memory to leave for Windows, the model, and a long chat. We combine practical guidelines for RAM and VRAM with testing on our own machine.

![An open laptop in purple light on a dark table](https://lostele.com/assets/optimized-purple-222365f5bc-1000.webp)

Illustration: Unsplash. The photo is not a test result.

## At a glance

For compact local models on a laptop, a reasonable starting point is 16 GB of system memory, a few GB of free space on the SSD, and a modest context. If you plan to run a browser, an IDE, and a larger model at the same time, it's easier with 32 GB of RAM. Choose the amount of VRAM based on the actual model build and whether you need a fully GPU-based launch. A too-tight configuration will show itself right away: the model fits on the disk, but the response starts after an uncomfortable pause.

## How much RAM and VRAM does the model take

Check the size of the downloaded weights, then add some headroom for the context and utility buffers. The file size in the directory is a convenient starting point. On Windows, part of the graphics memory is used by the desktop, browser, and other open programs. Integrated graphics usually share RAM with the system. A discrete graphics card has its own VRAM. When computations are partially offloaded to the CPU, the balance of both resources changes. Long conversations, processing large texts, and multiple parallel requests increase the requirements.

The examples below use the published weights of three Qwen3 tags released in 2025. The hardware guidelines are approximate for a single chat with a moderate context. They were not obtained through an editorial benchmark. For a specific runtime, you can check the buffer size and layer placement on site. Choose a headroom close to your scenario, especially if you're buying a computer with soldered memory.

| Model and weight size in Ollama | RAM guideline | VRAM guideline for testing |
| --- | --- | --- |
| Qwen3 1.7B, 1.4 GB | 16 GB for Windows with headroom | 4 GB for short context |
| Qwen3 4B, 2.5 GB | 16 GB for the first test | 4 GB tight or 6 GB with headroom |
| Qwen3 8B, 5.2 GB | 32 GB for working with other applications | 8 GB for testing, 12 GB for more headroom |

Two adjacent files of the same model may differ in size due to quantization. A smaller file is usually easier to load, and it's better to check the quality trade-off on your texts and code. The maximum context from the model description shows its limit in a suitable environment. It says little about how much you can consistently use on a given laptop. It's easier to limit the context than to regularly close the editor and browser before a new chat.

## How to check the headroom before and after purchase

Write down one model, a fixed tag, and your typical input data size. First, submit a small text, then one longer fragment. In both cases, check the peak memory usage and the time until the first words appear. In LM Studio CLI, you can estimate resources using `lms load --estimate-only` with the specified model and appropriate parameters. In Ollama, the `ollama ps` command shows the model placement. It's convenient to check the allocated GPU memory in the task manager. This makes it easier to identify cases where part of the model has moved to system memory.

When choosing between 16 and 32 GB on a laptop with integrated graphics, see how much memory the graphics, operating system, and your usual applications share. A discrete graphics card provides an additional independent resource. Before ordering, check if there are slots and [whether you can expand the RAM of the selected laptop](https://lostele.com/en/articles/apgreyd-ozu-noutbuka/). If your budget is limited, first check whether the results of a compact model meet your needs. And if the model alternates between running on the GPU and returning to the CPU, open [Ollama placement diagnostics](https://lostele.com/en/articles/ollama-gpu/). A dry number on a laptop spec sheet becomes useful when you tie it to a measured scenario.

## Sources and verification

This article is based on documentation and specifications. We did not conduct our own instrumental tests for this article.

- [Ollama — Qwen3 and file sizes](https://ollama.com/library/qwen3)

- [Ollama — long context and memory](https://docs.ollama.com/context-length)

- [Ollama — distribution across CPU and GPU](https://docs.ollama.com/faq)

- [LM Studio — system requirements](https://lmstudio.ai/docs/app/system-requirements)

- [LM Studio — memory estimation before loading](https://lmstudio.ai/docs/cli/local-models/load)

Keep exploring

## Related articles

[All articles](https://lostele.com/en/articles/)

[Guide](https://lostele.com/en/guides/) · AI PC · 4 min read

### [How to run a neural network locally on a laptop](https://lostele.com/en/articles/lokalnaya-neiroset-na-noutbuke/)

First launch of a local model with ready-made tools, memory check and a short test without internet. There are separate instructions for the graphical interface and the terminal.

[Guide](https://lostele.com/en/guides/) · AI PC · 4 min read

### [Why Ollama doesn't use the GPU and how to fix it](https://lostele.com/en/articles/ollama-gpu/)

Check where the model is actually loaded. Then separately look into VRAM shortage, hybrid graphics, and driver issues.

[Guide](https://lostele.com/en/guides/) · Laptops · 4 min read

### [How to upgrade laptop RAM and check the memory slots](https://lostele.com/en/articles/apgreyd-ozu-noutbuka/)

Checking if there is a free slot, what type of module the laptop supports, and what to do after the first boot with new memory.
