Local AI Hardware: RAM, VRAM, and Model Weight Size

A model occupying a few GB may seem to fit if RAM is larger, but operation also needs memory for context, software, and the operating system. Understand the limits before buying hardware.

A computer, chip, and memory blocks within one boundary represent local AI execution

Start with the task, then choose a model size your machine can handle

A 4 GB model file does not imply that a GPU with 4 GB of VRAM can run it. Context and working data also take memory during generation. Start with the task: short text, long conversations, or images. Then test whether the model loads, responds quickly enough, and handles your Thai-language task.

This guide covers using an existing model to generate answers (inference) not training large models or recommending a particular computer. Driver versions, runtimes, and model file formats affect compatibility. Check the actual specifications before buying.

RAM, VRAM, and file storage perform different functions.

An installed GPU may not be supported by your runtime. Check Ollama’s hardware support list against your card model, operating system, and drivers. ‘Has a GPU’ alone tells you little about the speed you will get.

Estimate raw weight size from parameters and bit precision

If every model weight hypothetically uses the same number of bits, a starting estimate is Weight bytes ≈ parameter count × bits per parameter ÷ 8 The table assumes a hypothetical model with eight billion parameters. It excludes metadata, quantization overhead, and working memory, so it is not a minimum specification for a real model.

Hypothetical weight precisionCalculationRaw space in GBAbout GiB
16 bits8,000,000,000 × 16 ÷ 816 GB14.90 GiB
8 bits8,000,000,000 × 8 ÷ 88 GB7.45 GiB
4 bits8,000,000,000 × 4 ÷ 84 GB3.73 GiB

The table uses 1 GB = 1,000,000,000 bytes and 1 GiB = 1,073,741,824 bytes, with GiB rounded to two decimal places. Real files may mix precisions and include overhead. Four GB of raw weights does not guarantee a fit in 4 GB of VRAM.

Hugging Face’s quantization guide explains that lower-precision representations use fewer resources but trade off some accuracy. Speed depends on hardware and runtime support; fewer bits do not guarantee a speedup or the same quality effect on every task.

Allow memory for context, KV cache, and other programs

After loading model weights, you still need memory for generation. Many architectures use a KV cache; longer contexts and more concurrent jobs use additional memory. Ollama explains the memory cost of context length. The actual increase depends on the model rather than one fixed figure for every machine.

If short chats work but a long document fails, check the configured context and actual memory use. Start with a short prompt, increase its length gradually, and reduce concurrent jobs. Do not assume the model file is corrupt or buy more RAM straight away.

If part of a model falls back to the CPU or the system swaps RAM to disk, performance can drop sharply. Check runtime and operating-system status to see where resources are allocated before deciding which memory to upgrade.

Test it on the same machine with a small batch before purchasing more.

  1. Write down CPU, RAM, GPU, VRAM, and free disk space. Includes operating system and runtime version
  2. Choose a runtime-supported model and check its license and model card for your use
  3. Begin with one concurrent task and short context. Record time to first response, completion time, and peak observed memory use.
  4. Use your own Thai tasks, such as public-text summaries, action-item extraction, and insufficient-information questions, with independently checked answers prepared beforehand
  5. Add documents or context gradually and see whether speed and quality remain acceptable
  6. Record the model version and weight precision with results. Do not combine measurements from different conditions as one experiment.

In Ollama, this command shows current resource allocation and context size:

ollama ps

The command lets you inspect your own machine; KrobClick has not run a performance benchmark with it.

Even with local AI, check where data is sent

Installing software locally does not always keep your data local. Cloud modes, web search, or connected tools may send data to other services. Ollama's FAQ distinguishes local from cloud use and explains how to disable cloud features. Check the mode, model, and connected tools before supplying a private document.

Even with local inference, downloading a model uses the network. Manage access to and backups of local files and history. If you are considering browser-based inference, read LiteRT.js and AI in the browser and compare its runtime and hardware limits.

Buy more when you know where the limitations are.

Before buying more hardware, separate the symptoms. Weak Thai answers may call for a different model or prompt. A memory shortage may respond to a smaller model or shorter context. For poor speed, first check whether acceleration is working. More RAM does not solve all three.

Keep trial results from your own tasks before buying anything. If the model loads but is slow, check whether it runs on the CPU or GPU. If its Thai answers miss the mark, try another model or prompt. More memory addresses memory shortages, not every quality problem.

Read moreThai AI Prompts: Define the Task and Verify the AnswerWrite instructions specifying desired output and required evidence, with Thai examples and ways to correct off-target answers

Sources

Sources reviewed October 14, 2026, Thailand time. Thai examples and prompts are KrobClick proposals, not product tests. Features and settings vary by version/account. Check originals and outputs before real use.