SAVRN
Search Contact SAVRN

Open-weight model · Text generation

Qwen3-4B

by Qwen Qwen/Qwen3-4B

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models.

Parameters4B
Context40,960
Weights8.0 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads7.2M

Runs On

What it takes to serve Qwen3-4B (4B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 8.0 GB 9.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 4.0 GB 4.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 2.0 GB 2.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

SAVRN's Notes on Qwen3-4B

Memory is not the constraint with Qwen3-4B. The 16-bit weights are 8.0 GB and need 9.7 GB to serve, 8-bit needs 4.8 GB and 4-bit 2.4 GB, so on the cheapest Index setup, one MI300X with 192 GB at $1.85 an hour, the card sits mostly empty and the decision is how many copies to run. It is text only, switches between a thinking mode and a plain dialogue mode, and carries a 40,960-token context.

Apache 2.0 lets you fine-tune it, ship it in a product and charge for it, provided the license and notices travel with it and you state what you changed. Before you commit, look at the lineage and the price sheet: it is derived from Qwen3-4B-Base, so decide whether you want this release or the base for post-training, and the page lists no Index host prices, so there is nothing per token to compare with.

Model Card

By Qwen, published under apache-2.0, revision 1cfa9a720891.

Qwen3 Highlights

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support, with the following key features:

Read the full model card (1,908 words)

Configuration

Architecture
Qwen3ForCausalLM
Context length (tokens)
40,960
Layers
36
Hidden size
2,560
Feed-forward size
9,728
Attention heads
32
Key/value heads
8
Head dimension
128
Vocabulary size
151,936
RoPE base
1,000,000
Stored precision
bfloat16
Model type
qwen3

Identity and Version

Repository
Qwen/Qwen3-4B
Publisher
Qwen
Task
Text generation
Modality
Text
Library
transformers
Parameters
4B parameters
Languages
Not stated by the source
Revision
1cfa9a7208912126459214e8b04321603b3df60c
First published
2025-04-27
Last updated
2025-07-26

Files and Weights

13 files, 8.1 GB in total. The weights are 3 files totalling 8.0 GB in safetensors.

Weights3 files · 8.0 GB
Configuration3 files · 33.8 KB
Tokenizer4 files · 15.9 MB
Documentation2 files · 28.2 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model-00001-of-00003.safetensorsWeights4.0 GB 328a91d31223
model-00002-of-00003.safetensorsWeights4.0 GB 6cd087b31630
model-00003-of-00003.safetensorsWeights99.6 MB e4bf43695718
config.jsonConfiguration726 B
generation_config.jsonConfiguration239 B
model.safetensors.index.jsonConfiguration32.8 KB
LICENSEDocumentation11.3 KB
README.mdDocumentation16.9 KB
.gitattributesRepository1.6 KB
merges.txtTokenizer1.7 MB
tokenizer.jsonTokenizer11.4 MB aeb13307a71a
tokenizer_config.jsonTokenizer9.7 KB
vocab.jsonTokenizer2.8 MB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
8.0 GB
Download from Qwen

Released by Qwen through ModelScope. Read the license.

Built From

Memory Requirements

PrecisionWeights in memory
As published8.0 GB
16-bit8.0 GB
8-bit4.0 GB
4-bit2.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Built on This Model

Compare Qwen3-4B

Questions About Qwen3-4B

How much GPU memory does Qwen3-4B need?

About 9.7 GB at 16-bit and 2.4 GB at 4-bit: the weights (4B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Qwen3-4B on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Qwen3-4B commercially?

Yes. Qwen3-4B is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is Qwen3-4B's context length?

40,960 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

Qwen3-4B-Instruct-2507

Qwen

We introduce the updated version of the Qwen3-4B non-thinking mode, named Qwen3-4B-Instruct-2507, featuring the following key enhancements: - Significant improvements in general capabilities, including instruction following, logical reasoning, text comprehension, mathematics, science, coding and tool usage. - Substantial gains in long-tail knowledge coverage across multiple languages. - Markedly better alignment with user preferences in subjective and open-ended tasks, enabling more helpful responses and higher-quality text generation. - Enhanced capabilities in 256K long-context understanding. Qwen3-4B-Instruct-2507 has the following features: NOTE: This model supports only non-thinking…

Open weights apache-2.0 4B parameters 262,144 tokens transformers

Model · Text generation

Qwen3-4B-Base

Qwen

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Building upon extensive advancements in training data, model architecture, and optimization techniques, Qwen3 delivers the following key improvements over the previously released Qwen2.5: Qwen3-4B-Base has the following features: For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub, and Documentation. The code of Qwen3 has been in the latest Hugging Face transformers and we advise you to use the latest version of transformers. With transformers<4.51.0, you will…

Open weights apache-2.0 4B parameters 32,768 tokens transformers

Model · Text generation

qwen3-4b-base-dapo-v4

Reliquary

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Building upon extensive advancements in training data, model architecture, and optimization techniques, Qwen3 delivers the following key improvements over the previously released Qwen2.5: Qwen3-4B-Base has the following features: For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub, and Documentation. The code of Qwen3 has been in the latest Hugging Face transformers and we advise you to use the latest version of transformers. With transformers<4.51.0, you will…

Open weights apache-2.0 4B parameters 32,768 tokens transformers

Model · Text generation

RL-fromscratch

Tangyunbo

We introduce the updated version of the Qwen3-4B non-thinking mode, named Qwen3-4B-Instruct-2507, featuring the following key enhancements: - Significant improvements in general capabilities, including instruction following, logical reasoning, text comprehension, mathematics, science, coding and tool usage. - Substantial gains in long-tail knowledge coverage across multiple languages. - Markedly better alignment with user preferences in subjective and open-ended tasks, enabling more helpful responses and higher-quality text generation. - Enhanced capabilities in 256K long-context understanding. Qwen3-4B-Instruct-2507 has the following features: NOTE: This model supports only non-thinking…

Open weights apache-2.0 4B parameters 262,144 tokens transformers

This model is a fine-tuned version of cosmos1030/gmp-kd3e-1-s80pct-lr1e-420260916220740 on the trl-lib/ultrafeedbackbinarized dataset. It has been trained using TRL. This model was trained with DPO, a method introduced in Direct Preference Optimization: Your Language Model is Secretly a Reward Model.

Open weights 4B parameters 40,960 tokens transformers

Model · Text generation

qwen3-4b-ablation-poe-no-base

Yu

The full ImmuneCoT method fuses the two safety branches with a Base-adjusted product-of-experts Qimm(v) ∝ q̃rec(v)·q̃res(v)/qB(v). This checkpoint uses the naive fusion Qno-base(v) ∝ q̃rec(v)·q̃res(v) — the same branch weights (λrec=0.5, λres=0.7) but no division by the base distribution — isolating whether the gains come from combining Recognition+Response at all, or specifically from the Base-adjusted PoE term. Intended use: research reproducibility for the ImmuneCoT paper's RQ3 ablation.

Open weights apache-2.0 4B parameters 40,960 tokens transformers