How to Run Llama 3.1 Locally and Enable Remote Access

Llama 3.1 is no longer Meta’s newest model, but it is still one of the steadiest choices for a home PC. This guide covers which Llama to run in late 2026, the VRAM each model actually needs, and how to enable remote access without exposing your Ollama server to the internet.

Which Llama in Late 2026

The first thing to fix in this guide is its opening line. Llama 3.1 was the latest model when this article was written in 2024. It is not anymore, and the family has moved on twice since then:

  • Llama 3.1 (July 2024): 8B, 70B, and 405B, with a 128K context window. The version this guide was written for.
  • Llama 3.3 (December 2024): a single 70B model whose quality is close to the old 3.1 405B. For most people who want a bigger model, this is the better pick today.
  • Llama 4 Scout and Maverick (April 5, 2025): the current Llama generation. Both are mixture-of-experts models with only 17B parameters active per token — Scout is 109B total with a 10M-token context window, Maverick is 400B total with a 1M-token context window — and both take text and image input. A third model, Behemoth, was previewed but never released.
  • Muse Spark (April 8, 2026): Meta’s newest flagship model, which now powers the Meta AI app. It is closed-weight, so you cannot download or run it yourself. The Llama weights are still available, and nothing in this guide depends on Spark.

For a home PC, the realistic picks are still llama3.1:8b or llama3.3:70b. Llama 4 is newer, but it needs far more memory for a modest gain in everyday chat.

Picking the Right Model: What Fits Your Hardware

Two numbers matter: the download size and the memory the model needs while running. The table uses Ollama’s default Q4 quantization — what ollama run pulls. Add a few gigabytes for the conversation context and the OS; Ollama defaults to a 4K context, and a longer one costs extra memory.

ModelOllama tagDownload (Q4)Memory neededBest for
Llama 3.1 8Bllama3.1:8b4.9 GB8 GB VRAMMost home PCs: chat, coding, general use
Llama 3.3 70Bllama3.3:70b43 GB48 GB+ VRAM, or 64 GB unified memory on a MacStronger reasoning; a clear step up from 8B
Llama 3.1 70Bllama3.1:70b43 GBSame as 3.3 70BSuperseded by 3.3 — use 3.3 instead
Llama 3.1 405Bllama3.1:405b~230 GB256 GB+ memory, multi-GPU serverServer territory, not a home PC
Llama 4 Scoutllama4:scout67 GB~80 GB+ unified memory or VRAMVery long documents and image input; high-end only
Llama 4 Maverickllama4:maverick245 GB256 GB+ workstationServer territory

A correction to the old version of this guide: its 70B figure of “70–75 GB of VRAM” and its 405B figure of “400–450 GB” were full-precision numbers, not the Q4 defaults Ollama downloads. On Q4, a 70B model is a 43 GB download that runs on a 48 GB card, and a 405B model is about 230 GB — the old numbers would have scared off anyone with a 24 GB or 48 GB card for no reason.

Install Ollama and Run Your First Model

Ollama is an open-source tool that manages local models — downloading, serving, and monitoring them from one command line. Get the installer for your OS from the official Ollama download page.

Ollama official download page interface

Run the installer. On Windows it installs to your C: drive by default. When it finishes, open PowerShell or CMD and type ollama to see the help menu — that confirms the installation worked.

Terminal displaying Ollama help menu

Now pull a model and start chatting. This downloads about 4.9 GB and drops you straight into a chat session:

ollama run llama3.1:8b

If you have the hardware for a bigger model, the same command works with a different tag:

ollama run llama3.3
ollama run llama4:scout

Check the model is actually on your GPU with ollama ps, or add --verbose to see which processor Ollama picked. On a Mac, Apple Silicon shares one pool of unified memory: 16 GB is the comfortable floor for 8B, and 70B wants 64 GB or more. Intel Macs have no Metal path, so they run on the CPU only.

Terminal downloading a Llama model

Remote Access, Done Safely

By default, Ollama listens on http://127.0.0.1:11434 — your own computer only. Only change that when you have a specific reason to.

Here is the part the old version of this guide got wrong: it told you to set OLLAMA_HOST=0.0.0.0:8888 and OLLAMA_ORIGINS=*. That exposes an Ollama server with no login at all to anyone who finds the port — Ollama has no authentication built in, so a stranger who reaches it can use your GPU and read your prompts. Do not copy that setup.

Safe ways to reach Ollama from another device, in order of preference:

  • Same network only. From another device on your home LAN, connect to your PC’s LAN address, for example http://192.168.1.10:11434. Set OLLAMA_HOST to that LAN address. Use 0.0.0.0 only if your router does not forward the port — safe on a trusted LAN, dangerous on a public network.
  • Away from home: tunnel, don’t expose. Use an SSH tunnel (ssh -L 11434:localhost:11434 user@home-pc) or a private network such as Tailscale. Your laptop talks to localhost, traffic is encrypted, and nothing listens on the public internet.
  • If you must publish it: put a login in front. Run a reverse proxy such as nginx or Caddy with authentication, and narrow OLLAMA_ORIGINS to your exact domain — never *, which lets any website in a browser call your API.

The environment variables themselves are unchanged from the old guide, but their values need the corrections above:

VariableValueDescription
OLLAMA_HOST127.0.0.1:11434Default: local only. Use your LAN IP for same-network access, or 0.0.0.0 only behind a firewall or tunnel
OLLAMA_ORIGINShttps://your-domain.exampleCORS allowlist — list your exact domain, never *
OLLAMA_MODELSC:\Users\Administrator\.ollamaMove model storage to a different drive

How to set environment variables on Windows

  1. Quit the Ollama process entirely.
  2. Right-click This PC > Properties > Advanced system settings > Environment Variables > User variables for Administrator > New. Add the variables from the table above.
  3. Restart the Ollama service.
  4. You can now connect using a web-based UI, or from another device on your network.
Windows environment variable settings dialog

On Linux, the same variables go in a systemd override: run systemctl edit ollama and add Environment="OLLAMA_HOST=127.0.0.1:11434" under [Service], then restart the service.

Use It From a Web UI

The terminal works, but a web interface is more pleasant for daily use — two solid options, both free and open source:

Open WebUI — a full-featured chat interface that talks to Ollama at localhost:11434. GitHub: https://github.com/open-webui/open-webui. Documentation: https://docs.openwebui.com/.

LobeHub (formerly LobeChat — the project renamed itself, so older articles still say LobeChat). GitHub: https://github.com/lobehub/lobe-chat. Documentation: https://lobehub.com/zh/docs/self-hosting/start.

Ollama also exposes an OpenAI-compatible API at http://localhost:11434/v1, so any tool that works with the OpenAI API can point at your local model instead. A minimal test:

curl http://localhost:11434/v1/chat/completions -d '{"model": "llama3.1:8b", "messages": [{"role": "user", "content": "Hello"}]}'

Limits and Troubleshooting

  • Model too big for your GPU. Ollama offloads part of the model to the CPU — it still works, but much more slowly. The fix is a smaller model or a smaller quantization.
  • Download stalls or fails. The 70B models are 43 GB and Scout is 67 GB. Check your free disk space first, then retry — ollama pull resumes where it stopped.
  • Port already in use. Another Ollama instance is running. Check with ollama ps, quit the old one, and restart.
  • GPU not being used. Run ollama run --verbose and check the processor line. On Windows, update your GPU driver; on a Mac, close heavy apps first — the unified memory is shared with everything else.
  • 405B or Maverick on a home PC. Don’t. They need a server with hundreds of gigabytes of memory. If you need that class of model, a hosted API or a rented server is the honest answer — a home PC is not.

Should I still run Llama 3.1 in 2026?

Yes, for most home PCs. The 8B model is light and stable, and Llama 3.3 70B is the better big-model pick if you have the memory. Llama 4 is newer but needs far more memory for a modest gain in everyday chat, and Muse Spark is closed-weight — you cannot download it at all.

Which model fits my GPU?

With 8 GB of VRAM, run llama3.1:8b — its Q4 download is 4.9 GB, leaving a little room for context. With 48 GB or more, the 70B models fit at Q4 (43 GB download). A 24 GB card cannot run a 70B Q4 model. Scout needs about 80 GB of memory or more.

Is remote access safe?

Only if you do not expose the port. Ollama has no login, so anyone who can reach it can use your GPU and read your prompts. Keep it on your LAN, or reach it from outside through an SSH tunnel, Tailscale, or Cloudflare Tunnel. If you publish it, put a reverse proxy with authentication in front — and never set OLLAMA_ORIGINS to *.

Are 70B or 405B models realistic on a home PC?

The 70B models are realistic on a 48 GB+ GPU or a Mac with 64 GB or more of unified memory. The 405B model and Llama 4 Maverick need a server with hundreds of gigabytes of memory — not home-PC models. Most people get more from an 8B model with a long context than from a 70B that offloads to the CPU.

Related Reading

If you want the full picture — LM Studio and llama.cpp alongside Ollama, and how they compare — see The Ultimate Local LLM Deployment Guide. And if you plan to run LobeHub as your frontend on a NAS, Deploying LobeHub on Synology Docker walks through the Docker setup.

That’s it. The steps are still simple — the part that changed since 2024 is knowing which model to pick and keeping the server behind a safe door.

Leave a Comment