Skip to content
Updated minutes ago
Alibaba

Qwen 2.5 Coder 32B

Alibaba · dense · 32.5B parameters · 131,072 context

Quality
80.0

Parameters

32.5B

Context Window

128K tokens

Architecture

Dense

Best GPU

H20

Cheapest API

$0.80/M

Quality Score

80/100

Intelligence Brief

Qwen 2.5 Coder 32B is a 32.5B parameter DENSE model from Alibaba, featuring Grouped Query Attention (GQA) with 64 layers and 5,120 hidden dimensions. With a 131,072 token context window, it supports tools, structured output, code, math, multilingual. On standardized benchmarks, it achieves MMLU 74, HumanEval 92.7, GSM8K 76. The most cost-effective API deployment is via alibaba at $0.80/M output tokens. For self-hosted inference, H20 delivers optimal throughput at $940/month.

Architecture Details

TypeDENSE
Total Parameters32.5B
Active Parameters32.5B
Layers64
Hidden Dimension5,120
Attention Heads40
KV Heads8
Head Dimension128
Vocab Size152,064

Memory Requirements

BF16 Weights

65.0 GB

FP8 Weights

32.5 GB

INT4 Weights

16.3 GB

KV-Cache per Token262144 bytes
Activation Estimate2.00 GB

GPU Compatibility Matrix

Qwen 2.5 Coder 32B is compatible with 57% of GPU configurations across 41 GPUs at 3 precision levels.

BF16 (Full)
FP8 (Half)
INT4 (Quarter)
Blackwell(7 GPUs)
B200 NVL (pair)360GB
B300288GB
B100 SXM192GB
GB200 NVL72 (per GPU)192GB
Hopper(7 GPUs)
H100 NVL 94GB (per GPU pair)188GB
H200 SXM141GB
H2096GB
GH20096GB
Ada Lovelace(11 GPUs)
L40S48GB
L4048GB
RTX 6000 Ada48GB
L2048GB
Ampere(16 GPUs)
A100 80GB SXM80GB
A100 80GB PCIe80GB
A1664GB
RTX A600048GB
Legend:No fitVery tightTightModerateGoodExcellent

GPU Recommendations

H20optimal

FP8 · 1 GPU · tensorrt-llm

100/100

score

Throughput

1.0K tok/s

Latency (ITL)

1.0ms

Est. TTFT

0ms

Cost/Month

$940

Cost/M Tokens

$0.35

Use this config →
H200 SXMoptimal

FP8 · 1 GPU · tensorrt-llm

95/100

score

Throughput

1.1K tok/s

Latency (ITL)

1.0ms

Est. TTFT

0ms

Cost/Month

$2553

Cost/M Tokens

$0.93

Use this config →
H100 SXMoptimal

FP8 · 1 GPU · tensorrt-llm

95/100

score

Throughput

862.3 tok/s

Latency (ITL)

1.2ms

Est. TTFT

0ms

Cost/Month

$1794

Cost/M Tokens

$0.79

Use this config →

Deployment Options

API

API Deployment

alibaba

$0.80/M

output tokens

Self-Hosted

Single GPU

H20

$940/mo

Min VRAM: 33 GB

Scale

Multi-GPU

RTX A6000 x2

112.2 tok/s

TP· $930/mo

API Pricing Comparison

ProviderInput $/MOutput $/MBadges
alibaba$0.80$0.80
Cheapest
together$0.80$0.80

Cost Analysis

ProviderInput $/MOutput $/M~Monthly Cost
alibabaBest Value$0.80$0.80$8
together$0.80$0.80$8

Cost per 1,000 Requests

Short (500 tok)

$0.56

via alibaba

Medium (2K tok)

$2.24

via alibaba

Long (8K tok)

$8.00

via alibaba

Performance Estimates

Throughput by GPU

H20
1.0K tok/s
H200 SXM
1.1K tok/s
H100 SXM
862.3 tok/s

VRAM Breakdown (H20, FP8)

Weights
Act
Weights 32.5 GBKV-Cache 2.1 GBActivations 16.0 GBOverhead 1.6 GB

Precision Impact

bf16

65.0 GB

weights/GPU

fp8

32.5 GB

weights/GPU

~1.0K tok/s

int4

16.3 GB

weights/GPU

Quality Benchmarks

Above Average
86th percentile across all models
MMLU
74.0
Below Average (43th pctile)
HumanEval
92.7
Top 10% (99th pctile)
GSM8K
76.0
Below Average (40th pctile)
HellaSwag
82.0
Top 10% (90th pctile)

Capabilities

Features

Tool Use Vision Code Math Reasoning Multilingual Structured Output

Supported Frameworks

vllmsglangtgitensorrt-llm

Supported Precisions

BF16 (default)FP8INT4

Where to Deploy Qwen 2.5 Coder 32B

Similar Models

Qwen 2.5 32B

32.5B params · dense

Quality: 73

from $0.80/M

Lower qualityCompare →

Qwen 2.5 14B

14.8B params · dense

Quality: 76

from $0.30/M

Cheaper, Smaller modelCompare →

Qwen 2.5 72B

72.7B params · dense

Quality: 77

from $0.90/M

Larger modelCompare →
Lower qualityCompare →
Higher quality, CheaperCompare →

Frequently Asked Questions

How much VRAM does Qwen 2.5 Coder 32B need for inference?

Qwen 2.5 Coder 32B requires approximately 65.0 GB of VRAM at BF16 precision, 32.5 GB at FP8, or 16.3 GB at INT4 quantization. Additional VRAM is needed for KV-cache (262144 bytes per token) and activations (~2.00 GB).

What is the best GPU for Qwen 2.5 Coder 32B?

The top recommended GPU for Qwen 2.5 Coder 32B is the H20 using FP8 precision. It achieves approximately 1.0K tokens/sec at an estimated cost of $940/month ($0.35/M tokens). Score: 100/100.

How much does Qwen 2.5 Coder 32B inference cost?

Qwen 2.5 Coder 32B API inference starts from $0.80/M input tokens and $0.80/M output tokens. Self-hosted inference costs depend on your GPU configuration — use our ROI calculator for a detailed breakdown.