How to install Ollama on Windows and run AI models locally

You will install Ollama on Windows, download a language model that fits your RAM, and chat with it offline. It suits beginners who want a private local AI setup. You need a Windows PC, an internet connection for the download, and enough free disk space.

YouTube video: How to Run AI Models Locally on Your PC for FREE

Captions are available. Use CC in the YouTube player.

Other videos for this task

Video length
6 min 58 s
Time to do it
20 minutes
Difficulty
Easy
Steps
8

What you need

Steps

  1. Check your PC specs first. Open Task Manager with Ctrl+Shift+Esc and look at the Performance tab to see how much RAM you have.

  2. Download the Ollama installer for Windows from ollama.com and run it. Follow the setup prompts and let it finish.

  3. Pick a model size that fits your RAM. Small models run on 8 GB, larger ones need 16 GB or more.

  4. Open Command Prompt or PowerShell and type ollama pull followed by the model name, for example ollama pull llama3. Wait for the download to finish.

  5. Start a chat by typing ollama run followed by the same model name. The model loads and gives you a prompt.

  6. Type your question at the prompt and press Enter. The answer appears in the same window.

  7. To use it offline, disconnect from the internet and run the same ollama run command. The model works from local files.

  8. To change the context length, set the OLLAMA_CONTEXT_LENGTH environment variable before starting the model, or use the num_ctx option in a Modelfile.

Tips and common mistakes

Start with a small model so it loads fast and leaves room for other apps.

A longer context uses more RAM, so lower it if your PC slows down.

Keep the model files on a drive with plenty of free space.

Questions

Do I need an internet connection to use the model?

Only to download it the first time. After that, the model runs from your local files and works offline.

How much RAM do I need?

Small models run on 8 GB of RAM. Larger models need 16 GB or more, so check your specs before downloading.

Can I run more than one model?

Yes. Pull each model once with ollama pull, then start any of them with ollama run and its name.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Computers & Phones

See all