Skip to content
Updated minutes ago
ReleasedMay 13, 2024Verified 3mo ago · huggingface.co
01.AI

Yi 1.5 34B

01.AI · dense · 34.4B parameters · 200,000 context

Quality
72.0

Parameters

34.4B

Context Window

195K tokens

Architecture

Dense

Best GPU

H20

Cheapest API

$0.80/M

Quality Score

72/100

Intelligence Brief

Yi 1.5 34B is a 34.4B parameter DENSE model from 01.AI, featuring Grouped Query Attention (GQA) with 60 layers and 7,168 hidden dimensions. With a 200,000 token context window, it supports tools, structured output, code, math, multilingual. On standardized benchmarks, it achieves MMLU 76.8, HumanEval 44, GSM8K 78. The most cost-effective API deployment is via 01ai at $0.80/M output tokens. For self-hosted inference, H20 delivers optimal throughput at $940/month.

Provider pricing

1 provider · canonical: 01ai
Provider Input $/M Output $/M ▲Notes
01aicanonical$0.800$0.800cheapest input · cheapest output

Prices update via the nightly pricing cron + admin approvals at /admin/ingest-queue. The leaderboard's Input/Output cells show the canonical rate above; this table shows the full spread.

Recent changes

Loading…

Related models

5 suggestions

Picks: same family first, then same vendor within ±2× params, then top tag-overlap matches. Price shown is the cheapest Output $/M across providers — the row's page shows the canonical anchor.

Architecture Details

TypeDENSE
Total Parameters34.4B
Active Parameters34.4B
Layers60
Hidden Dimension7,168
Attention Heads56
KV Heads8
Head Dimension128
Vocab Size64,000

Memory Requirements

BF16 Weights

68.8 GB

FP8 Weights

34.4 GB

INT4 Weights

17.2 GB

KV-Cache per Token245760 bytes
Activation Estimate2.00 GB

GPU Compatibility Matrix

Yi 1.5 34B 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

972.8 tok/s

Latency (ITL)

1.0ms

Est. TTFT

0ms

Cost/Month

$940

Cost/M Tokens

$0.37

Use this config →
B200 SXMoptimal

FP8 · 1 GPU · tensorrt-llm

98/100

score

Throughput

1.1K tok/s

Latency (ITL)

1.0ms

Est. TTFT

0ms

Cost/Month

$4261

Cost/M Tokens

$1.54

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 →

Deployment Options

API

API Deployment

01ai

$0.80/M

output tokens

Self-Hosted

Single GPU

H20

$940/mo

Min VRAM: 34 GB

Scale

Multi-GPU

RTX A6000 x2

106.4 tok/s

TP· $930/mo

API Pricing Comparison

ProviderInput $/MOutput $/MBadges
01ai$0.80$0.80
Cheapest

Cost Analysis

ProviderInput $/MOutput $/M~Monthly Cost
01aiBest Value$0.80$0.80$8

Cost per 1,000 Requests

Short (500 tok)

$0.56

via 01ai

Medium (2K tok)

$2.24

via 01ai

Long (8K tok)

$8.00

via 01ai

Performance Estimates

Throughput by GPU

H20
972.8 tok/s
B200 SXM
1.1K tok/s
H200 SXM
1.1K tok/s

VRAM Breakdown (H20, FP8)

Weights
Act
Weights 34.4 GBKV-Cache 2.0 GBActivations 16.0 GBOverhead 1.7 GB

Precision Impact

bf16

68.8 GB

weights/GPU

fp8

34.4 GB

weights/GPU

~972.8 tok/s

int4

17.2 GB

weights/GPU

Quality Benchmarks

Above Average
76th percentile across all models
MMLU
76.8
Below Average (46th pctile)
HumanEval
44.0
Below Average (34th pctile)
GSM8K
78.0
Below Average (40th pctile)
MT-Bench
79.0
Bottom 25% (0th pctile)

Capabilities

Features

✓ Tool Use✗ Vision✓ Code✓ Math✗ Reasoning✓ Multilingual✓ Structured Output

Supported Frameworks

vllmsglangtgitensorrt-llm

Supported Precisions

BF16 (default)FP8INT4

Where to Deploy Yi 1.5 34B

Similar Models

Code Llama 34B

34B params · dense

Quality: 55

from $0.78/M

Lower qualityCompare →

Aya 23 35B

35B params · dense

Quality: 50

from $1.50/M

Lower quality, More expensiveCompare →
Similar specsCompare →

Command R

35B params · dense

Quality: 68

from $0.50/M

Frequently Asked Questions

How much VRAM does Yi 1.5 34B need for inference?

Yi 1.5 34B requires approximately 68.8 GB of VRAM at BF16 precision, 34.4 GB at FP8, or 17.2 GB at INT4 quantization. Additional VRAM is needed for KV-cache (245760 bytes per token) and activations (~2.00 GB).

What is the best GPU for Yi 1.5 34B?

The top recommended GPU for Yi 1.5 34B is the H20 using FP8 precision. It achieves approximately 972.8 tokens/sec at an estimated cost of $940/month ($0.37/M tokens). Score: 100/100.

How much does Yi 1.5 34B inference cost?

Yi 1.5 34B 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.