toolrota

Running AI on your own computer: a step-by-step guide to local models with Ollama and LM Studio

Local AI runs without your data leaving your computer and needs no internet. We explain hardware needs, setup, model choice and limits.

Serkan Akyürek··7 min read
Running AI on your own computer: a step-by-step guide to local models with Ollama and LM Studio – AI

ChatGPT and similar services run in the cloud: everything you type goes to the company's servers. Yet today you can run many models on your own computer, without an internet connection. This approach increases privacy, removes per-use fees and gives freedom to experiment; in return it brings hardware and quality limits. In this guide you learn what local AI is, what hardware you need, how to set it up with Ollama and LM Studio and when it makes sense.

What is local AI?

Large language models (LLMs) consist of hundreds of millions to hundreds of billions of parameters. Cloud services run these models on powerful servers. Running locally means downloading the file of an "open-weight" model and running it on your computer. Many models can be used this way, such as Meta's Llama, Mistral's models, Google's Gemma, Alibaba's Qwen and Microsoft's Phi families. Licence terms vary by model; read the licence before commercial use.

Why run locally?

  • Privacy: customer data, contracts or private notes aren't sent to the cloud (see our AI privacy guide).
  • Cost: no subscription or usage fee; only hardware and electricity.
  • Offline use: it works on a plane or when the connection drops.
  • Customisation: you can try system prompts, model mixes and search over your own documents (RAG).
  • Learning: an ideal environment to experience how AI works.

Drawbacks and limits

  • Quality: small models running at home can lag behind the biggest cloud models in complex reasoning and in languages other than English.
  • Speed: without a strong graphics card, replies can come slowly.
  • Hardware: large models need a lot of memory.
  • Maintenance: updates, model choice and settings are your responsibility.
  • Security: don't download models from unknown sources (see our safe downloads guide).
  • Mistakes: local models can also produce made-up information (see our hallucination guide).

Hardware needs

For a model to run, its weights must fit in memory (RAM or graphics card memory, VRAM). Roughly, a compressed (quantised) model takes half a byte to a byte per parameter.

Model size (approx.)Typical memory needSuitable device
1–3 billion parameters2–4 GBMost current laptops, some phones
7–9 billion5–8 GBA computer with 16 GB RAM, a card with 8 GB VRAM
13–14 billion9–12 GB16–32 GB RAM, 12 GB+ VRAM
30–35 billion20–24 GB32 GB+ RAM or 24 GB VRAM
70 billion40 GB+A powerful workstation or a Mac with lots of memory

On Apple Silicon (M-series) Macs, unified memory lets medium-sized models run comfortably. On Windows an NVIDIA graphics card noticeably raises speed; it runs without one but slowly. This table is an approximate guide; real values vary by model and quantisation level.

Option 1: setting up with Ollama

Ollama is a light, command-line-based tool; it runs on Windows, macOS and Linux.

Your first model with Ollama
  1. 1

    Download and install Ollama from its official site

  2. 2

    Open the terminal

  3. 3

    Download and start a model: ollama run llama3.2

  4. 4

    Type your questions, use /bye to exit

  5. 5

    If you like, use the local API in applications

Commands:

ollama run llama3.2
ollama list
ollama pull qwen2.5

ollama run downloads the model on first use, then starts the chat. ollama list shows the models you have downloaded. Model names and versions may change over time; check the current list in Ollama's model library. Ollama also opens a local API, so you can connect to the model from your own scripts or some applications.

Option 2: setting up with LM Studio

LM Studio is an application with a graphical interface; it suits those who don't like the command line.

  1. Download and install LM Studio from its official site.
  2. Search for a model in the "Discover" section; the screen shows whether it suits your hardware.
  3. Download it and load it in the "Chat" section.
  4. Change settings such as the system prompt and temperature in the right-hand panel.
  5. If you like, connect other applications with the local server feature.

Choosing a model: which one should I download?

  • General chat and writing: instruct models of 7–9 billion parameters are a good start.
  • Writing code: code-focused models (variants trained for coding).
  • Other languages: try multilingual models (the multilingual versions of the Qwen, Llama and Gemma families); quality varies from model to model, so test with your own texts.
  • Low memory: small models of 1–3 billion parameters; they can be enough for simple summarising and classification.
  • Quantisation level: low-bit compression such as Q4 reduces memory and lowers quality slightly; Q8 is higher quality but needs more memory.

Trying a few models with the same prompt and comparing them is the healthiest way (see our AI tools comparison guide).

What should a local model be used for?

UseIs a local model suitable?
Summarising private documentsYes (privacy advantage)
Email drafts and text correctionYes
Simple classification and data extractionYes
Code completion and explanationYes (depends on model quality)
Multi-step complex reasoningLimited
Questions needing current informationNo (no internet access)
Legal/medical decisions that tolerate no errorsNo, consult a professional

Security and privacy notes

  • Running locally means data stays on the device; but if your computer itself isn't secure, the data isn't either (see our disk encryption guide).
  • Download model files and tools only from official sources.
  • Don't expose the local API to the internet; keep it reachable only from your own device.
  • Before giving sensitive documents to third-party plugins, read how they work.

Chatting with your own documents (RAG)

Some interfaces let you upload PDF or text files so that the model answers based only on those documents. This method reduces making things up on topics the model doesn't know. Still check the source; compare the quote the model shows with the document.

Frequently asked questions

Is local AI completely free? Most software is free; the cost is hardware and electricity. Check the licence terms.

Does it work without internet? Yes, once the model is downloaded.

Can it run on a phone? Small models run on some new phones; speed and battery use are limited.

Which model comes close to ChatGPT quality? Large local models approach it on some tasks, but cloud services are mostly ahead in overall quality and currency.

I don't have enough RAM, what should I do? Pick a smaller or more heavily compressed model.

Can it be used in a company? Your data policy, licence terms and security requirements decide; talk to your IT lead.

Summary

Local AI gives privacy, offline use and cost control, but it has hardware and quality limits. With Ollama or LM Studio you can run your first model in 15 minutes and, by trying it on your own tasks, decide whether to use it instead of or next to cloud models.

Share
Published:
Author
Serkan Akyürek

Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.