LLMs ·

Qwen2 7B Instruct

Parameters
7.6B
Architecture
Dense
Max context
32K tokens
License
apache-2.0
Released
2024-06

How to run it

Quickest · Ollama

One command downloads a ready-to-run version and starts a chat.

ollama run qwen2:7b

Get Ollama at ollama.com/download (opens in a new tab) · model page (opens in a new tab)

Quantized files · GGUF

Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.

huggingface.co/Qwen/Qwen2-7B-Instruct-GGUF (opens in a new tab)

ollama run hf.co/Qwen/Qwen2-7B-Instruct-GGUF

Original weights · Hugging Face

Full-precision files from Alibaba, for fine-tuning, vLLM, Transformers.

huggingface.co/Qwen/Qwen2-7B-Instruct (opens in a new tab)

No sign-in needed.

Memory needed

Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps.

Quantization Quality Weights Total at 8K context Total at 32K context Download
Q2_K Low 3.0 GB 4.1 GB 5.5 GB GGUF (opens in a new tab)
Q3_K_M Low 3.7 GB 4.8 GB 6.2 GB GGUF (opens in a new tab)
Q4_K_M Good 4.6 GB 5.7 GB 7.1 GB GGUF (opens in a new tab)
Q5_K_M High 5.4 GB 6.5 GB 7.9 GB GGUF (opens in a new tab)
Q6_K High 6.2 GB 7.3 GB 8.7 GB GGUF (opens in a new tab)
Q8_0 Very high 8.1 GB 9.1 GB 10.6 GB GGUF (opens in a new tab)
F16 Full 15.2 GB 16.3 GB 17.7 GB GGUF (opens in a new tab) Original weights (opens in a new tab)

Best hardware for Qwen2 7B Instruct

The least expensive GPU in our catalog that runs it without offloading is the Intel Arc A380 (launch price $139) at Q3_K_M.

Grade · points Hardware Quant Memory Speed Fit
74 ptsGreat (A) · 74 of 100 points: Model quality 19.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4070 SUPER Q8_0 9.7 GB / 12.0 GB 41.3 tok/s Runs well
74 ptsGreat (A) · 74 of 100 points: Model quality 19.6/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 3060 12GB Q6_K 7.9 GB / 12.0 GB 40.2 tok/s Runs well
74 ptsGreat (A) · 74 of 100 points: Model quality 19.6/45, Memory fit 25.0/25, Speed 14.8/15, Memory use 15.0/15 Intel Arc B580 Q6_K 7.9 GB / 12.0 GB 38.9 tok/s Runs well
74 ptsGreat (A) · 74 of 100 points: Model quality 19.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.3/15 AMD Radeon RX 9070 XT Q8_0 9.9 GB / 16.0 GB 45.2 tok/s Runs well
74 ptsGreat (A) · 74 of 100 points: Model quality 19.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.3/15 NVIDIA GeForce RTX 4070 Ti SUPER Q8_0 9.9 GB / 16.0 GB 55.1 tok/s Runs well
74 ptsGreat (A) · 74 of 100 points: Model quality 19.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.3/15 NVIDIA GeForce RTX 4080 SUPER Q8_0 9.9 GB / 16.0 GB 60.4 tok/s Runs well
74 ptsGreat (A) · 74 of 100 points: Model quality 19.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.3/15 NVIDIA GeForce RTX 5070 Ti Q8_0 9.9 GB / 16.0 GB 73.5 tok/s Runs well
74 ptsGreat (A) · 74 of 100 points: Model quality 19.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.3/15 NVIDIA GeForce RTX 5080 Q8_0 9.9 GB / 16.0 GB 78.7 tok/s Runs well
73 ptsGreat (A) · 73 of 100 points: Model quality 18.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4060 Q4_K_M 6.1 GB / 8.0 GB 43.8 tok/s Runs well
72 ptsGreat (A) · 72 of 100 points: Model quality 19.8/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 12.9/15 NVIDIA GeForce RTX 5090 F16 17.9 GB / 32.0 GB 67.7 tok/s Runs well

Check it on your own hardware

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.