How to install Ollama on Windows with WSL2 and run local AI

You will set up Windows Subsystem for Linux, install Ollama inside it, and run a local language model with no cloud account. It suits Windows laptop owners who want private, offline AI. You need Windows 10 or 11, a terminal, and a few GB of free disk space for the model.

YouTube video: Run Private Local AI on Any Laptop without Internet (Step-by-Step Setup) #AI #wsl #ollama

YouTube’s video details do not confirm captions. Check CC in the player for available tracks.

Video length
11 min 10 s
Time to do it
30 minutes
Difficulty
Medium
Steps
7

What you need

Steps

  1. Open PowerShell as Administrator. Run wsl --install and wait for Windows to download and set up the Linux subsystem.

  2. Restart your laptop when prompted, then open the Ubuntu app and create a Linux username and password.

  3. In the Ubuntu terminal, run the Ollama install script with curl -fsSL https://ollama.com/install.sh | sh and wait for it to finish.

  4. Check the install by running ollama --version in the same terminal.

  5. Start a model with ollama run llama3.2. The first run downloads the model, so keep the internet on for this step.

  6. Type a prompt at the >>> prompt and press Enter to chat with the model locally.

  7. Type /bye to exit the chat. After the download, the model runs without internet.

Tips and common mistakes

Run the install commands inside the Ubuntu terminal, not PowerShell, or Ollama will not be found.

The first model download is several GB, so use a stable connection and free disk space.

Smaller models like llama3.2 run better on laptops with 8 GB of RAM or less.

Questions

Do I need internet after setup?

No. Only the first model download needs internet. After that, Ollama runs the model fully offline on your laptop.

What if wsl --install fails?

Enable virtualization in your laptop BIOS and make sure Windows updates are installed, then run the command again as Administrator.

Can I use Ollama without WSL2?

Yes, there is a native Windows installer on the Ollama website, but this guide follows the WSL2 method shown in the video.

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