Qwen / text-generation updated 1 year ago

Qwen2-7B-Instruct

Qwen2 is the new series of Qwen large language models. For Qwen2, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters, including a Mixture-of-Experts model. This repo contains the instruction-tuned 7B Qwen2 model.

Params
7.6 B
Context
32,768
Downloads 30d
606 K
Likes
687
Commercial use: allowed apache-2.0 Not gated SAFETENSORS 1 languages View on Hugging Face ↗

Download history

daily snapshots · 10 days
646 K598 K
Jul 28Jul 31Aug 3Aug 6

Can you run it?

Estimated VRAM at 8K context unless noted. Pick your hardware to see the verdict per quantization.

FileQuantSizeEst. VRAMVerdict on RTX 4090 · 24 GB
model.safetensors bf16 15.2 GB 18.4 GB ✅ Runs comfortably
model.safetensors (bf16, full) bf16 + 32K ctx 15.2 GB 21.8 GB ⚠️ Tight — reduce context
Estimate: file size × 1.1 + KV cache at 8K + 0.5 GB overhead. Not a benchmark — how we calculate this.

Run it

copy-paste, exact tags checked against the Hub
~ · curl · api/v1
$ curl -s https://aimodelscomparison.com/api/v1/models/qwen2-7b-instruct
{
  "hf_id": "Qwen/Qwen2-7B-Instruct",
  "params_b": 7.62,
  "context_length": 32768,
  "license": { "id": "apache-2.0", "commercial": "yes" },
  "downloads_30d": 605764,
  "vram_estimates": [
    { "quant": "bf16", "gb": 18.4 }
  ],
  "updated_at": "2026-07-28T18:04:28Z"
}
est. VRAM —on RTX 4090 · 24 GBJSON API →

Specifications

Architecture
Qwen2ForCausalLM
Parameters
7.6 B
Tensor type
BF16
Context length
32,768
Vocabulary
152,064
Layers / heads
28 / 28
Licence
apache-2.0
First seen on the Hub
2024-06-04
Training datasets
undisclosed
Added to our catalog
2026-07-28