Parameters
34B
Context Length
4K
Modality
Text
Architecture
Dense
KV Cache Rate
240 KB/tok
License
Apache 2.0
Release Date
2 Nov 2023
Knowledge Cutoff
Jun 2023
API Pricing (per 1M)
Input: $0.90 · Output: $0.90
Precision
Context
Workload Memory: 19.27 GB
INT4 · 4K context · 1 user
Base Weights: 15.83 GB
KV Cache: 0.94 GB
Runtime & Graphs: 2.50 GB
1x NVIDIA L4 24GB
19.3 / 21.6 GB
1x RTX 4090 24GB
19.3 / 22.3 GB
Apple M3 Pro 36GB
19.3 / 27.0 GB
Determine requirements for your specific workload:
Checkpoint format
FP16
CUDA
>= 11.8
PyTorch
>= 2.1
Transformers
>= 4.34.0
| Architecture | Precision | Attention kernel |
|---|---|---|
Blackwell, Hopper | Native FP16 | FlashAttention-3 |
Ada Lovelace, Ampere | Native FP16 | FlashAttention-2 |
Rank
#247
| Benchmark | Score | Rank |
|---|---|---|
General Text | 1183.85 | #191 |
Overall Rank
#247
Coding Rank
-
Yi-34B is a foundational bilingual model developed by 01.AI, pretrained on 3T multilingual tokens for advanced English and Chinese text comprehension. It features Grouped-Query Attention and supports context lengths extending up to 200K tokens.
Attention
Attention Structure
Multi-Head Attention
Attention Heads
56
Key-Value Heads
8
Position Embedding
Absolute Position Embedding
RoPE Theta
5,000,000
Normalization
RMS Normalization
Activation Function
SwiGLU
Dimensions
Base Precision
FP16
Hidden Dimension Size
7,168
Number of Layers
60
FFN Intermediate Size (Dense)
20,480
Tokenizer
Vocabulary Size
64,000