In this categoryLocal AI · 24
- How to Install Ollama on macOSStart
- How to Install Ollama on Windows
- How to Run Llama 3 Locally with Ollama
- How to Pick the Right Local AI Model for Your Hardware
- Best GGUF Models to Run by VRAM Tier (8GB, 12GB, 16GB, 24GB, 48GB)
- Run LLMs in Your Browser With WebGPU: No Install, No Server (WebLLM)
- How to Use Ollama as a Drop-In OpenAI API
- GGUF vs MLX vs NVFP4: Local AI Quantization Formats Explained
How to Run Llama 3 Locally with Ollama
Pull the Llama 3.3 model, run an interactive chat session, switch between the 8B and 70B variants, and understand the VRAM requirements for each size.
Llama 3.3 is Meta's most capable open-weight model family. The 8B variant runs on a laptop; the 70B variant needs a workstation-class GPU or a machine with large unified memory. Ollama handles all the download, quantization, and inference details so you can focus on using the model rather than compiling anything.
Model sizes and VRAM requirements
Choosing the right variant before you download saves time. The table below shows the quantized file sizes and the minimum VRAM or unified RAM needed to run each at reasonable speed.
- llama3.3:8b — 4.7 GB download, needs 8 GB RAM/VRAM — fast on Apple Silicon and mid-range NVIDIA GPUs
- llama3.3:70b — 43 GB download, needs 48 GB RAM/VRAM — requires a high-end GPU (RTX 4090, A100) or Apple M2 Ultra/M3 Max
- llama3.3:8b-instruct-q4_K_M — slightly smaller 4-bit quantized variant, good balance of speed and quality
- llama3.3:70b-instruct-q4_K_M — 4-bit quantized 70B for machines with 40-48 GB unified memory
Step 1: Pull the model
Pulling separately from running lets you download in the background while you keep working. Run pull and wait for it to finish. The weights are cached under ~/.ollama/models (macOS/Linux) or %USERPROFILE%\.ollama\models (Windows).
Step 2: Start an interactive chat
ollama run opens a REPL where you type messages and the model responds. The session keeps conversation history so follow-up questions work. Exit with /bye or Ctrl+D.
Step 3: Run a single prompt non-interactively
Pipe a prompt directly to ollama run for scripting. The model reads from stdin and writes the response to stdout, which makes it easy to compose with other Unix tools.
Step 4: Switch to the 70B variant
Tag the pull with :70b to get the larger model. Ollama stores both variants independently so you can switch by changing the name in ollama run.
Useful run-time flags
- ollama run llama3.3 --verbose — show token generation speed (tokens/sec) and model load time
- ollama run llama3.3 --ctx-size 8192 — increase context window beyond the default (if your RAM allows)
- ollama ps — show currently loaded models and how much VRAM each is using
- ollama stop llama3.3 — unload the model from GPU memory immediately to free VRAM for other tasks
You now have Llama 3.3 running entirely on your own hardware. No API keys, no rate limits, no data leaving your machine. The interactive REPL works for exploration, and the stdin pipe makes it scriptable. The next logical step is calling Ollama from code via its OpenAI-compatible API endpoint.
Local models run better with more VRAM. CompareRTX GPUs on Amazonbefore you upgrade.(affiliate link. We may earn a commission at no extra cost. Disclosure)
Related guides
How to Pick the Right Local AI Model for Your Hardware
Match your GPU VRAM tier to concrete model recommendations, understand Q4/Q5/Q8 quantization, and use a simple rule of thumb to avoid out-of-memory crashes before you download.
How Much RAM Do You Need for Local AI?
RAM requirements for local AI depend on whether you are talking about GPU VRAM or system RAM, and which models you want to run. Here are the real numbers.
Watch related tutorials
17:30
19:05
9:42
10:30
11:05
12:20Weekly local AI drops
New models, what runs on your hardware, and the guides to set them up. One email a week, unsubscribe any time.