How to run locally
Qwen3-8B
Qwen · 8.2B · install path for the weights on your own GPU
Quick start
Hugging Face
huggingface-cli download Qwen/Qwen3-8B
vLLM
vllm serve Qwen/Qwen3-8B
Prefer the full runbook below if this is your first local load. Specs and VRAM fit live on the listing.
How to run Qwen3-8B locally starts with a VRAM check, then a runner choice, then one clean load at Q4.
Running Qwen3-8B on your own hardware requires selecting a compatible inference engine, downloading an appropriate quantization level that matches your available VRAM, and configuring your chat templates correctly to handle the dual-mode reasoning features. This step-by-step runbook outlines the path from initial setup to active local generation.
How to Run Qwen3-8B Locally
1. Verify Hardware and Select Your Quantization
Before downloading gigabytes of weights, check your GPU VRAM. If you have a 12 GB or 16 GB card, target a 4-bit or 5-bit GGUF variant (such as `Q4_K_M`) to keep model memory under 7 GB. If you have 24 GB of VRAM or more, you can comfortably run 8-bit quants or FP16 weights. Ensure your drivers and CUDA toolkit are fully up to date.
2. Choose Your Local Inference Backend
For a quick desktop chat experience, install Ollama or LM Studio and pull the Qwen3-8B model tag. If you prefer fine-grained control over generation parameters, system prompt injection, and tensor parallelism, build llama.cpp from source or configure vLLM for high-throughput API serving. For vLLM deployments, remember to pass the appropriate reasoning parser flag so that internal `` blocks are correctly handled.
3. Load the Model and Set Your Parameters
When initiating your first inference session, apply the recommended sampling configurations provided by the authors. For thinking mode (`enable_thinking=True`), use a temperature around 0.6 with a TopP of 0.95 and TopK of 20, avoiding greedy decoding to prevent repetitive loops. For standard non-thinking mode (`enable_thinking=False`), a temperature of 0.7 with TopP of 0.8 works best.
4. Test and Monitor Performance
Send a test prompt—such as a complex coding problem or a multilingual translation task—and monitor your tokens-per-second output alongside VRAM usage. If generation is sluggish or memory swapping occurs, reduce your active context window or switch to a lower bit-width quantization format. Always bind local server instances strictly to localhost unless authenticated proxy security is in place.