Qwen3-4B

Language Alibaba Qwen Partly verified Released Apr 29, 2025
  • Reasoning
  • Reasoning can be off
  • Tool use
  • Structured output
  • Open weights

Prices

1 offering · prices as listed
Alibaba Cloud Model Studio (opens in a new tab) Official Global · USD qwen3-4b
Conditions/ 1M tokensInputOutput
Standard no longer listed since Oct 1, 2026 past price, from the vendor’s page archived Jan 16, 2026$0.11$0.42

Prices from Alibaba Cloud Model Studio pricing (opens in a new tab) (checked Sep 30, 2026)

Standard: the price a request with no conditions pays (the headline price elsewhere on the site).

Details

Licence
apache-2.0
Family
qwen
Model ID

Not stated on Alibaba Qwen’s pages: max input, input modalities, output modalities, reasoning efforts, max thinking budget, built-in tools, knowledge cutoff, aliases.

Run locally

Weights: Qwen/Qwen3-4B
  • Parameters 4B
  • Dense
  • Native precision BF16
  • Layers 36
  • KV cache per token 144 KB
  • Native context 32K (model card)
  • With YaRN 128K (model card)
  • Config positions 40K (config.json max_position_embeddings)
  • API context 250K (maker’s API)
My hardware GeForce RTX 4090 24 GB · 1008 GB/s · 64 GB DDR5 dual channel · 89.6 GB/s
On your hardware · GeForce RTX 4090
Runs well BF16 (native) (automatic) 8K context 54–82 tok/sOne GPU
WeightsKV cacheOverheadUsable
Needs
≈ 9.1 GB (weights 7.5 (maker’s file) + KV cache 1.1 + overhead 0.5)
Usable
21.6 GB (90% of its memory)
Generation speed
54–82 tok/s
Longest context
128K (the model’s limit)
First token
about 0.13–0.19 s for a 2K prompt
PrecisionWeightsNeeds at 8KOn your hardwareLongest context
BF16 (native)maker’s file7.5 GB≈ 9.1Runs well 54–82 tok/s128K
Q8_0maker’s file4.0 GB≈ 5.6Runs well 92–138 tok/s128K
FP8maker’s file4.8 GB≈ 6.5Runs well 79–118 tok/s128K
Q6_Kmaker’s file3.1 GB≈ 4.7Runs well 112–167 tok/s128K
Q5_K_Mmaker’s file2.7 GB≈ 4.3Runs well 123–185 tok/s128K
Q5_0maker’s file2.6 GB≈ 4.3Runs well 125–188 tok/s128K
Q4_K_Mmaker’s file2.3 GB≈ 4.0Runs well 136–204 tok/s128K
Q4_02.1 GB≈ 3.7Runs well 145–218 tok/s128K
INT4 (AWQ / GPTQ)maker’s file2.5 GB≈ 4.1Runs well 130–195 tok/s128K
IQ4_XS2.0 GB≈ 3.6Runs well 151–226 tok/s128K
Q3_K_Mquality drops1.8 GB≈ 3.5Runs well 159–238 tok/s128K
IQ3_XXSquality drops1.4 GB≈ 3.1Runs well 184–275 tok/s128K
Q2_Kquality drops1.4 GB≈ 3.0Runs well 186–278 tok/s128K
IQ2_XXSquality drops1.0 GB≈ 2.6Runs well 225–337 tok/s128K

Click a row to choose a precision. “Maker’s file” sizes are the maker’s own files; others are parameters × bits per weight.

Compared with other hardware

Each at the highest precision it runs. Click one for details.

Smallest that runs it (Q4_K_M, 8K): GPU GeForce RTX 3080; unified memory Apple M5 · 16 GB.

Run commands

vLLM
vllm serve Qwen/Qwen3-4B --max-model-len 8192
Memory to fine-tune
Full≈ 62.1 GBDoesn’t fit your hardware
LoRA≈ 9.8 GBFits your hardware
QLoRA≈ 4.5 GBFits your hardware

Batch 1, 2,048-token sequences, gradient checkpointing; LoRA and QLoRA train rank-16 adapters on the attention projections.

Estimates; facts from the maker’s Hugging Face repositories, as of 2026-11-06. How it’s estimated

Cited scores

From third-party leaderboards, not measured by us
  • Epoch AI · GPQA Diamond 52.3%

    #121 of 168 listed models · ±3.01

    Also listed: reasoning off 43.6%

  • EQ-Bench Longform Writing 17

    #92 of 92 listed models

  • Epoch AI, 'Capabilities & benchmarking'. Published online at epoch.ai. Retrieved from 'https://epoch.ai/benchmarks'. Licensed CC BY 4.0. · License · as of Nov 4, 2026
  • EQ-Bench by Samuel J. Paech (eqbench.com; EQ-bench/EQ-bench-site on GitHub), MIT License. · License · as of Oct 28, 2026
  • changes we made

No changes recorded yet.

Sources

Alibaba Qwen’s official policies: data use, privacy, terms →

Some values on this page are still waiting to be checked against official pages: a filled dot is verified, a hollow one is not yet (with or without a source on file). How we verify data

Alibaba Qwen · China · qwen.ai

Snapshots, the same family and other models from this provider