ApX logoApX logo

Gemma 2 27B

Parameters

27B

Context Length

8K

Modality

Text

Architecture

Dense

License

Gemma License

Release Date

27 Jun 2024

Knowledge Cutoff

-

API Pricing (per 1M)

Input: $0.65 · Output: $0.65

System Requirements

VRAM requirements for different quantization methods and context sizes

1,024 tokens

58.61 GB VRAM

Consumer

3x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

8,192 tokens

61.44 GB VRAM

Consumer

3x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 4.1k · Context: 8Kx 46 layersRMSNormPre-AttentionGrouped-Query Attention32Q / 16KV headsHead dim: 128+RMSNormPre-FFNFeed-Forward NetworkGELU+Final RMSNormOutput Logits

Evaluation Benchmarks

Rank

#155

BenchmarkScoreRank

General Text

Text Arena

1289

138

StackEval

Archived
ProLLM Stack Eval

0.724

15

QA Assistant

Archived
ProLLM QA Assistant

0.804

19

General Knowledge

Reference
MMLU

0.752

23

Summarization

Archived
ProLLM Summarization

0.59

24

Rankings

Overall Rank

#155

Coding Rank

-

About Gemma 2 27B

Gemma 2 27B is Google's high-efficiency open foundation model designed for advanced reasoning, content creation, and enterprise NLP. It utilizes Grouped-Query Attention and logit soft-capping for high-precision inference on a single GPU.

Technical Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

32

Key-Value Heads

16

Attention Head Dimension

-

Position Embedding

ROPE

RoPE Theta

-

Sliding Window Attention

-

Sliding Window Size

-

Sliding Window Ratio

-

Linear Attention

-

Linear Attention Ratio

-

Normalization

RMS Normalization

Activation Function

GELU

Dimensions

Hidden Dimension Size

4,096

Number of Layers

46

FFN Intermediate Size (Dense)

-

Multi-Token Prediction Heads

-

Tokenizer

Vocabulary Size

-

About Gemma 2

Gemma 2 is Google's family of open large language models, offering 2B, 9B, and 27B parameter sizes. Built upon the Gemma architecture, it incorporates innovations such as interleaved local and global attention, logit soft-capping for training stability, and Grouped Query Attention for inference efficiency. The smaller models leverage knowledge distillation.


Other Gemma 2 Models