Qwen3-4B vs CodeLlama-7b-hf

Specs, VRAM requirements and download trends — updated 20 September 2026.

Qwen · A
Params
4.0 B
Context
40,960
30d
7.1 M
apache-2.0 · commercial OK
codellama · B
Params
6.7 B
Context
16,384
30d
325 K
llama2 licence · conditional

Specification comparison

Differences are highlighted; identical values are muted.

Specification Qwen3-4B CodeLlama-7b-hf
Parameters 4.0 B 6.7 B
Architecture Qwen3ForCausalLM LlamaForCausalLM
Context length 40,960 16,384
Licence apache-2.0 llama2
Commercial use Allowed Conditional
Languages 1
Downloads 30d 7,098,338 324,728
Downloads all time 80.4 M 4.2 M
Quantizations on the Hub SAFETENSORS SAFETENSORS
Gated No No
First seen on the Hub 2025-04-27 2023-08-24

Download trend

Daily snapshots, last 55 days (28 Jul – 20 Sep)

7.3 M238 K
Qwen3-4B CodeLlama-7b-hf

VRAM side by side

On RTX 4090 · 24 GB · 8K context unless noted

Qwen3-4B · fp16 10.0 GB / 24 GB
✅ Runs comfortably
CodeLlama-7b-hf · fp16 16.3 GB / 24 GB
✅ Runs comfortably

Adjacent comparisons