VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

How to Deploy Qwen3 8B Locally

Qwen3 8B is an 8B dense model that Qwen released in April 2025, and /think and /no_think in your prompt toggle thinking turn by turn. With room for 40K of context, 4-bit takes about 12.1 GB, a snug fit for a 12GB card. For a new setup, we recommend going straight to Qwen3.5 9B: VRAM is basically the same, context grows from 40K to 256K, and it understands images and video too.

Qwen3 8B details

  • Min VRAM at 4-bit8 GB · 8K
  • Parameters8.2B
  • Max context40K
Architecture
Dense
License
Apache-2.0
Launch date
Apr 27, 2025
Vendor
Alibaba
Hugging Face repo
Qwen/Qwen3-8B
NVFP4 repo (Blackwell)
nvidia/Qwen3-8B-NVFP4
MLX repo (Apple)
Qwen/Qwen3-8B-MLX-4bit
Ollama tag
qwen3:8b
Layers
36
Hidden size
4,096
KV heads
8
Head dim
128

How much VRAM does Qwen3 8B need for local deployment?

QuantizationWeightsGB8K contextGB32K contextGB40K context (max)GB
1-bit2.4GGUF4.78.39.5
2-bit3.5GGUF5.89.410.6
3-bit4.3GGUF6.610.211.4
4-bit5GGUF7.310.912.1
5-bit5.9GGUF8.211.813
8-bit8.7GGUF1114.615.8
BF16/FP1616.4GGUF18.722.323.5

Full calculation rules are on the Methodology page.

Can a single GPU run Qwen3 8B?

Yes, a 12GB card is enough, as long as you size for the full 40K context. In thinking mode it writes a long chain of reasoning before answering, and Qwen recommends leaving 32K of room for the reply, so sizing for 8K alone leaves you short; at 4-bit with the full 40K, it just fits on a 12GB card. With 16GB, 8-bit is the better pick: it still fits at full context and stays closer to the original, at about 35 tokens/s on an RTX 5060 Ti 16GB, while a 24GB RTX 3090 runs 8-bit twice as fast. For a new setup, Qwen3.5 9B needs about the same memory with far more context, so try it first.

eBay
DevicePriceSpeed t/sMax context
Tesla V100 16GB16 GB$37024 listings105.240K
GeForce RTX 5060 Ti 16GB16 GB$86958 listings56.640K
Tesla V100 32GB32 GB$89518 listings105.240K
Radeon RX 7900 XTX24 GB$1,25029 listings111.140K
GeForce RTX 309024 GB$1,799107 listings108.840K
GeForce RTX 409024 GB$3,75868 listings115.840K
Ryzen AI Max+ 395 128GBWhole system · 128 GB$4,46420 listings33.540K
RTX A600048 GB$4,89916 listings91.840K
Mac Studio M5 Ultra 96GBWhole system · 96 GB$7,27412 listings136.340K
MacBook Pro M5 Max 128GBWhole system · 128 GB$7,54920 listings75.340K
DGX Spark 128GBWhole system · 128 GB$8,24022 listings35.640K
GeForce RTX 509032 GB$8,395123 listings182.840K
RTX PRO 600096 GB$22,50011 listings182.840K

Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.

What to know before running Qwen3 8B locally

  1. Thinking switches

    Thinking is on by default, and there are two ways to turn it off. enable_thinking=False is a hard switch that suppresses thinking output entirely; alternatively, add /think or /no_think to your prompt to switch turn by turn. Qwen dropped official support for that second, soft switch starting with Qwen3.5.

  2. Official sampling parameters

    Thinking mode: temperature 0.6, top_p 0.95, top_k 20, min_p 0; Qwen stresses not to use greedy decoding (always picking the most likely token), or the model tends to repeat endlessly. Non-thinking mode: temperature 0.7, top_p 0.8, top_k 20, min_p 0.

  3. Going beyond 32K of context

    Its native context is only 32K, extendable to 131K with YaRN. But Qwen notes that YaRN in open-source frameworks uses a fixed scaling factor, which can hurt results on short text, so only enable it when you actually need to process long documents. In llama-server, just add the rope scaling flags; if you change the config file instead, you need to regenerate the GGUF.

  4. Which quantization to pick

    Qwen's official repository provides GGUFs directly, and the Ollama tag is qwen3:8b. 4-bit is about 5.0 GB and 8-bit about 8.7 GB, only 3.7 GB apart, so use 8-bit if you have the VRAM.

Launch commands

Ollama

  • Windows
  • macOS
  • Linux
Terminal
ollama run qwen3:8b

llama.cpp

  • NVIDIA
  • AMD
  • Mac
  • CPU
Terminal
llama-server -hf Qwen/Qwen3-8B-GGUF:Q4_K_M -c 8192

vLLM

  • Linux
  • NVIDIA
  • AMD
Original weights
Terminal
vllm serve Qwen/Qwen3-8B
NVFP4 · Blackwell

Blackwell GPUs (RTX 50 series, RTX PRO 6000, B200) run NVFP4 weights natively, at about 30% of the original size.

Terminal
vllm serve nvidia/Qwen3-8B-NVFP4

MLX

  • Apple Silicon

On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.

Terminal
mlx_lm.server --model Qwen/Qwen3-8B-MLX-4bit

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

Other models in the Qwen family

ModelTotal paramsActive params4-bit size
Qwen3.5 9BDense9.7B9.7B5.7 GB
Qwen3.6 27BDense27.8B27.8B16.8 GB
Qwen3.8 27BDense27.8B27.8B16.5 GB
Qwen3 32BDense32.8B32.8B19.8 GB
Qwen3.6 35B A3BMoE36B3B22.1 GB
Qwen3.8 Flash NextMoE176B6B111.3 GB
Qwen3.8 2.4T A95BMoE2,446B95B1,310.9 GB

About Qwen