ApX logoApX logo
CalculatorCoursesPricing

Yi-6B

Open Source
Open Weights

Parameters

6B

Context Length

4K

Modality

Text

Architecture

Dense

KV Cache Rate

64 KB/tok

License

Apache 2.0

Release Date

2 Nov 2023

Knowledge Cutoff

Jun 2023

API Pricing (per 1M)

Self-hosted only

Hardware & System Requirements

Precision

Context

Workload Memory: 5.54 GB

vLLM

INT4 · 4K context · 1 user

Base Weights: 2.79 GB

KV Cache: 0.25 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

5.5 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

5.5 / 11.2 GB

Apple M4 24GB

llama.cpp

5.5 / 18.0 GB

Determine requirements for concurrent users or multi-node clusters:

Runtime compatibility

Verified on hardware and checkpoint files.

Checkpoint format

BF16

CUDA

13.0

PyTorch

2.14.0

Transformers

≥ 4.40.1

ArchitecturePrecisionKernel

Hopper

Native BF16

FlashAttention-3

Architecture Diagram

Input TokensToken EmbeddingPosition: AbsoluteHidden: 4.1k · Context: 4K · Vocab: 64kx 32 layersRMSNormPre-AttentionMulti-Head Attention32Q / 4KV headsHead dim: 128+RMSNormPre-FFNFeed-Forward NetworkSwiGLUIntermediate: 11k+Final RMSNormOutput Logits

Evaluation Benchmarks

No evaluation benchmarks for Yi-6B available.

Rankings

Overall Rank

-

Coding Rank

-

About Yi-6B

Yi-6B is a compact 6B parameter bilingual model developed by 01.AI for fast conversational AI, reasoning, and multilingual text processing. Released under Apache 2.0, it features Grouped-Query Attention across an extensible 200K context window.

Specifications

Attention

Attention Structure

Multi-Head Attention

Attention Heads

32

Key-Value Heads

4

Position Embedding

Absolute Position Embedding

RoPE Theta

5,000,000

Normalization

RMS Normalization

Activation Function

SwiGLU

Dimensions

Base Precision

BF16

Hidden Dimension Size

4,096

Number of Layers

32

FFN Intermediate Size (Dense)

11,008

Tokenizer

Vocabulary Size

64,000

About Yi

Yi series models are large language models trained from scratch by 01.AI. Bilingual (English/Chinese), featuring strong performance in language understanding, reasoning, and code generation.


Other Yi Models