Skip to content

Getting Started with Local AI on Your Own Computer

You can run a capable language model without sending a single word to the cloud. What you need, what to expect, and how to make your first request.

By Virtuvia Editorial DeskPublished 2 min read
Ollama llama logo
Photo: Ollama (MIT licence)

Key takeaways

  • Small open-weight models run on an ordinary laptop with 8–16 GB of memory.
  • Local models keep your prompts on your device, but they are less capable than the largest cloud models.
  • Tools such as Ollama download, run and serve models with a single command.

Why run AI locally?#

Cloud assistants are convenient, but every prompt leaves your device. Running a model locally means your text stays on your computer, it works offline, and there is no per-request cost. The trade-off is that the models you can run at home are smaller than the ones in large data centres.

Diagram: the local AI stack
  1. 1Your app or terminalSends a prompt to localhost
  2. 2Ollama (local server)Downloads, loads and serves the model
  3. 3Model file (e.g. llama3.2)Open weights, a few GB
  4. 4Your hardwareCPU / GPU / RAM — data never leaves the device

What you need#

Model sizeMemory (RAM/VRAM)Good for
1–3 billion parameters8 GBSummaries, simple Q&A, drafts
7–8 billion parameters16 GBWriting help, coding assistance
13 billion and more32 GB or a strong GPUMore nuanced reasoning
Rough guidance — real performance depends on the model and quantisation.

Your first local model#

Ollama is a free, open-source tool that downloads models and runs them behind a simple command line and local API. After installing it from the official website, open a terminal and run:

terminal
ollama run llama3.2

The first run downloads the model (a few gigabytes), then opens an interactive chat. Type a question and press Enter. Type /bye to exit.

Talking to the model from code#

While Ollama is running, it also serves an HTTP API on your machine at port 11434. Any program on your computer can send it a prompt:

terminal
curl http://localhost:11434/api/generate -d '{
  "model": "llama3.2",
  "prompt": "Explain what a CPU does in one sentence.",
  "stream": false
}'

Know the limits#

  • Smaller models make more factual mistakes — verify anything important.
  • Model files are large; check your free disk space first.
  • Only download models from sources you trust, and read their licences.

Source and further reading

  1. Ollama — official website— Ollama
  2. Ollama API reference— GitHub
  3. llama.cpp— GitHub