Skip to content
Updated minutes ago
Alibaba

Qwen 2.5 Math 7B

Alibaba · dense · 7.6B parameters · 4,096 context

Quality
50.0

Parameters

7.6B

Context Window

4K tokens

Architecture

Dense

Best GPU

A10G

Cheapest API

$0.20/M

Intelligence Brief

Qwen 2.5 Math 7B is a 7.6B parameter DENSE model from Alibaba, featuring Grouped Query Attention (GQA) with 28 layers and 3,584 hidden dimensions. With a 4,096 token context window, it supports structured output, code, math, reasoning. The most cost-effective API deployment is via together at $0.20/M output tokens. For self-hosted inference, A10G delivers optimal throughput at $285/month.

Architecture Details

TypeDENSE
Total Parameters7.6B
Active Parameters7.6B
Layers28
Hidden Dimension3,584
Attention Heads28
KV Heads4
Head Dimension128
Vocab Size152,064

Memory Requirements

BF16 Weights

15.2 GB

FP8 Weights

7.6 GB

INT4 Weights

3.8 GB

KV-Cache per Token57344 bytes
Activation Estimate0.80 GB

GPU Compatibility Matrix

Qwen 2.5 Math 7B is compatible with 95% 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

A10Goptimal

BF16 · 1 GPU · vllm

100/100

score

Throughput

213.1 tok/s

Latency (ITL)

4.7ms

Est. TTFT

1ms

Cost/Month

$285

Cost/M Tokens

$0.51

Use this config →
A30optimal

BF16 · 1 GPU · vllm

100/100

score

Throughput

331.4 tok/s

Latency (ITL)

3.0ms

Est. TTFT

1ms

Cost/Month

$332

Cost/M Tokens

$0.38

Use this config →
RTX 4090optimal

BF16 · 1 GPU · vllm

100/100

score

Throughput

358.1 tok/s

Latency (ITL)

2.8ms

Est. TTFT

0ms

Cost/Month

$370

Cost/M Tokens

$0.39

Use this config →

Deployment Options

API

API Deployment

together

$0.20/M

output tokens

Self-Hosted

Single GPU

A10G

$285/mo

Min VRAM: 8 GB

Scale

Multi-GPU

A4000 x2

248.0 tok/s

TP· $323/mo

API Pricing Comparison

ProviderInput $/MOutput $/MBadges
together$0.20$0.20
Cheapest

Cost Analysis

ProviderInput $/MOutput $/M~Monthly Cost
togetherBest Value$0.20$0.20$2

Cost per 1,000 Requests

Short (500 tok)

$0.14

via together

Medium (2K tok)

$0.56

via together

Long (8K tok)

$2.00

via together

Performance Estimates

Throughput by GPU

A10G
213.1 tok/s
A30
331.4 tok/s
RTX 4090
358.1 tok/s

VRAM Breakdown (A10G, BF16)

Weights
Act
Weights 15.2 GBKV-Cache 0.9 GBActivations 6.4 GBOverhead 1.2 GB

Precision Impact

bf16

15.2 GB

weights/GPU

~213.1 tok/s

fp8

7.6 GB

weights/GPU

int4

3.8 GB

weights/GPU

Capabilities

Features

Tool Use Vision Code Math Reasoning Multilingual Structured Output

Supported Frameworks

vllmsglangtgitensorrt-llmollama

Supported Precisions

BF16 (default)FP8INT4

Where to Deploy Qwen 2.5 Math 7B

Similar Models

GTE Qwen2 7B

7.6B params · dense

Quality: 50

from $0.02/M

Larger context, CheaperCompare →

Qwen 2.5 7B

7.6B params · dense

Quality: 70

from $0.20/M

Larger context, Higher qualityCompare →
Larger contextCompare →

Frequently Asked Questions

How much VRAM does Qwen 2.5 Math 7B need for inference?

Qwen 2.5 Math 7B requires approximately 15.2 GB of VRAM at BF16 precision, 7.6 GB at FP8, or 3.8 GB at INT4 quantization. Additional VRAM is needed for KV-cache (57344 bytes per token) and activations (~0.80 GB).

What is the best GPU for Qwen 2.5 Math 7B?

The top recommended GPU for Qwen 2.5 Math 7B is the A10G using BF16 precision. It achieves approximately 213.1 tokens/sec at an estimated cost of $285/month ($0.51/M tokens). Score: 100/100.

How much does Qwen 2.5 Math 7B inference cost?

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