FitMyModel

MetaMicrosoftAlibaba Qwen

What runs Llama 3.1 8B, Phi-4 and Qwen3 14B? Entry GPUs

Published Updated

We earn from qualifying purchases via affiliate links. Disclosure.

Verdict

Llama 3.1 8B is 4.9 GB, Phi-4 14B is 9.1 GB and Qwen3 14B is 9.3 GB at Q4_K_M in Ollama. All three fit a 12 GB GPU; the two 14B models are tight on 12 GB and comfortable on 16 GB (our estimate). The cheapest card we priced was a 12 GB Arc B580 at $329.99 at Newegg (Checked Oct 27, 2026, about 12:35 PM CT).

Prices: Newegg checked Oct 27, 2026, about 12:35 PM CT; Minisforum checked Oct 27, 2026, 12:40 PM CT. New condition only.

Model memory at a glance

ModelMemory neededFormatContextSmallest tier (our estimate)Source
Llama 3.1 8BMeta · Text
4.9 GB Q4_K_M 128K 8–12 GB GPU8–12 GB GPU Ollama: llama3.1 tags
Phi-4 14BMicrosoft · Text
9.1 GB Q4_K_M 16K 8–12 GB GPU12 GB GPU (tight), 16 GB comfortable Ollama: phi4 tags
Qwen3 14BAlibaba Qwen · Text
9.3 GB Q4_K_M 40K 8–12 GB GPU12 GB GPU (tight), 16 GB comfortable Ollama: qwen3 tags

Good, Better, Best for this model (8–12 GB tier)

Three new-retail picks, chosen from cited specs and prices. We do not test hardware ourselves. Prices show when we checked them.

Good ASRock Challenger Intel Arc B580 12GB graphics card — illustrated product card

Cheapest 12 GB card we priced

ASRock Challenger Intel Arc B580 12GB

$329.99 Newegg · checked Oct 27, 2026, about 12:35 PM CT

Holds 8B–14B chat models at Q4 and SDXL (per the sources). Needs a desktop to go in; check your runtime supports Intel Arc.

Sold by Newegg, seen on the product page

Check price at Newegg (opens in a new tab)
Better ASUS Dual GeForce RTX 5060 Ti 16GB OC dual-fan graphics card — illustrated product card

Step up to 16 GB

ASUS Dual GeForce RTX 5060 Ti 16GB OC

Price shown at Amazon

4 GB more VRAM than the Good pick, which opens up gpt-oss 20B (14 GB download). Needs a desktop to go in.

Sold at Amazon.

Check price at Amazon (opens in a new tab)
Best ABS Cyclone series mesh mini-tower case with RGB fans — illustrated product card

Complete PC, nothing to build

ABS Cyclone Aqua gaming PC (Core i7-14700F, RTX 5060 Ti 16GB, 16GB DDR5, 1TB SSD)

$1,599.99 Newegg · checked Oct 27, 2026, about 12:35 PM CT

One box with the 16 GB card already inside. Ships with 16 GB system RAM; plan an upgrade to 32 GB.

Sold by Newegg, seen on the product page. Ships with 16 GB system RAM; plan an upgrade to 32 GB.

Check price at Newegg (opens in a new tab)

The details

Sizes and context

Per the Ollama tag pages: llama3.1:8b 4.9 GB with 128K context; phi4 9.1 GB with 16K context; qwen3:14b 9.3 GB with 40K context. Llama 3.1 8B leaves room on an 8 GB card. The 14B models leave about 3 GB on a 12 GB card, which is why we call them tight.

Build or buy

A 12 GB GPU is the core of the cheapest build. We have not picked a 12 GB prebuilt yet. The cheapest complete system we priced is the 16 GB RTX 5060 Ti prebuilt, which runs all three with more room.

Install and run Llama 3.1 8B, Phi-4 and Qwen3 14B

Steps and commands come from the official docs listed at the end of this section, checked Oct 27, 2026, 2:30 PM CT. We don't add flags the docs don't show. Commands can change, so check the linked page if one fails.

1. Before you start: GPU drivers

Your hardwareWhat the docs require
NVIDIA GeForce / RTXCompute capability 5.0 or newer and driver 550+ (Linux). Windows needs driver 551.61 or newer. Cards with compute capability 5.0–6.2 need driver 570+. On Linux, CUDA is an optional install; nvidia-smi should print your GPU. (Ollama hardware support, Ollama Windows)
AMD Radeon (RX 9000/7000/6000, AI PRO R9700)Linux: the ROCm v7 driver, installed with amdgpu-install. Ollama recommends AMD's latest Linux driver over the older in-kernel one. Windows: a ROCm v7 / HIP7 driver, or a Vulkan-capable Radeon driver. Ollama says some RX 6000 cards may not get ROCm v7 on Windows, so use Vulkan there; it's on by default.
Intel Arc (B580, Pro B60)Ollama supports Intel GPUs through Vulkan. Windows drivers include Vulkan; on Linux, follow Intel's client GPU driver guide. Intel also publishes an Ollama build for Arc GPUs (IPEX-LLM portable zip), tested on Arc A- and B-series.
Apple silicon MacmacOS 14 Sonoma or newer on an M-series chip. Ollama uses the GPU through Metal automatically; Intel Macs run on the CPU only.
Strix Halo mini PC (Ryzen AI Max+ 395)Ollama lists the Ryzen AI Max+ 395 (gfx1151) as a supported ROCm target on Linux. How much memory the GPU can use depends on settings; see the fixes below.

2. Install Ollama

Windows 10 22H2 or newer: download and run OllamaSetup.exe from ollama.com/download. It installs in your user account without admin rights and runs in the background. Then the ollama command works in PowerShell or cmd. You'll need at least 4 GB for the app, plus room for models.

macOS: open ollama.dmg and drag Ollama into Applications. On first start it offers to link the ollama command into /usr/local/bin.

Linux (one command):

curl -fsSL https://ollama.com/install.sh | sh

Linux, AMD GPU, manual install: extract the main package, then the extra ROCm package:

curl -fsSL https://ollama.com/download/ollama-linux-amd64.tar.zst \
    | sudo tar x -C /usr
curl -fsSL https://ollama.com/download/ollama-linux-amd64-rocm.tar.zst \
    | sudo tar x -C /usr

Linux, AMD ROCm driver (Ubuntu 24.04 example from AMD's quick start):

wget https://repo.radeon.com/amdgpu-install/7.2.4/ubuntu/noble/amdgpu-install_7.2.4.70204-1_all.deb
sudo apt install ./amdgpu-install_7.2.4.70204-1_all.deb
sudo apt update
sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
sudo apt install amdgpu-dkms
sudo apt install python3-setuptools python3-wheel
sudo usermod -a -G render,video $LOGNAME
sudo apt install rocm

Then reboot. Other distros have their own commands on AMD's quick start page.

Intel Arc with Intel's Ollama build: download the IPEX-LLM Ollama portable zip (Windows) or tgz (Linux) and extract it. On Windows, open cmd in that folder and run start-ollama.bat, then run the ollama run command below from the same cmd window.

Check that Ollama is installed:

ollama -v

3. Download and run Llama 3.1 8B, Phi-4 and Qwen3 14B

Llama 3.1 8B

ollama run llama3.1:8b

Phi-4 14B

ollama run phi4:14b

Qwen3 14B

ollama run qwen3:14b

The first run downloads the model, then opens a chat prompt. Type /bye to exit. Ollama also serves an API at http://localhost:11434.

4. Check that it's running on the GPU

ollama ps

The PROCESSOR column should read 100% GPU. A CPU/GPU split means the model didn't fit in GPU memory. You can also watch GPU memory with:

nvidia-smi   # NVIDIA
rocm-smi     # AMD on Linux (ROCm)

Logs: on Linux, journalctl -u ollama --no-pager --follow --pager-end. On macOS, ~/.ollama/logs/server.log. On Windows, run explorer %LOCALAPPDATA%\Ollama and open server.log.

5. Common fixes

  • Out of memory, or part of the model runs on the CPU: pick a smaller tag, or shorten the context. Ollama's default context is 4096 tokens, and longer contexts use more memory. Set it for the server or inside a chat:
    OLLAMA_CONTEXT_LENGTH=8192 ollama serve
    /set parameter num_ctx 4096
    Flash Attention reduces memory use as context grows. Ollama turns it on automatically where supported; to force it on, set OLLAMA_FLASH_ATTENTION=1 when starting the server.
  • Strix Halo mini PC, GPU memory: on Windows, AMD's Variable Graphics Memory turns part of system RAM into dedicated graphics memory. Open AMD Software: Adrenalin Edition, then Performance, then Tuning, and pick a size; this needs a restart. On a 128 GB system up to 96 GB can be converted. On Linux, AMD's ROCm docs say GPU memory comes from GTT, which defaults to about 50% of RAM. You can raise what the GPU gets by increasing VRAM in the BIOS, or by reducing the GTT size so it's below the reserved amount.
  • NVIDIA on Linux falls back to CPU after sleep: reload the UVM driver: sudo rmmod nvidia_uvm && sudo modprobe nvidia_uvm.
  • AMD card not supported by ROCm on Linux: Ollama documents HSA_OVERRIDE_GFX_VERSION to try a close supported target (their example: HSA_OVERRIDE_GFX_VERSION="10.3.0" for an RX 5400). On some distros, add the ollama user to the render group for Vulkan.
  • Windows with both an iGPU and a dGPU picks the wrong one on Vulkan: set GGML_VK_VISIBLE_DEVICES to the discrete GPU's index.
  • Several GPUs: limit Ollama with CUDA_VISIBLE_DEVICES (NVIDIA) or ROCR_VISIBLE_DEVICES (AMD). nvidia-smi -L and rocminfo list the devices.
  • Not enough disk space: set OLLAMA_MODELS to store models on another drive. On Windows, set it in your account's environment variables, then quit and restart Ollama.

Other apps that run the same models

LM Studio is a desktop app. It needs an Apple silicon Mac on macOS 14+, or Windows (x64 with AVX2, or ARM), or Linux as an AppImage (Ubuntu 20.04+). LM Studio recommends 16 GB+ of RAM and at least 4 GB of dedicated VRAM on Windows. llama.cpp is the engine underneath many of these tools. Its README gives this install and usage (swap in a GGUF repo for the model you want):

# Linux/macOS
curl -LsSf https://llama.app/install.sh | sh
# Windows PowerShell
irm https://llama.app/install.ps1 | iex

llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF

Install sources (checked Oct 27, 2026, 2:30 PM CT)

Entry hardware for 8B–14B models

ABS Cyclone series mesh mini-tower case with RGB fans — illustrated product card

ABS Cyclone Aqua gaming PC (Core i7-14700F, RTX 5060 Ti 16GB, 16GB DDR5, 1TB SSD)

$1,599.99 Newegg · checked Oct 27, 2026, about 12:35 PM CT

Sold by Newegg, seen on the product page. Ships with 16 GB system RAM; plan an upgrade to 32 GB.

Check price at Newegg (opens in a new tab)

FAQ

What GPU do I need for Llama 3.1 8B?

Ollama lists llama3.1:8b at 4.9 GB, so an 8 GB card holds it with room for context.

Will Phi-4 or Qwen3 14B fit a 12 GB GPU?

Yes, but it is tight: they are 9.1 GB and 9.3 GB. A 16 GB card is comfortable (our estimate).

Keep reading

Sources

Each source was opened on Oct 27, 2026.

  1. Ollama: llama3.1 tags
  2. Ollama: phi4 tags
  3. Ollama: qwen3 tags