ApX logoApX logo
CalculatorCoursesPricing

Gemma 2 27B

Open Source
Open Weights

Parameters

27B

Context Length

8K

Modality

Text

Architecture

Dense

KV Cache Rate

368 KB/tok

License

Gemma License

Release Date

27 Jun 2024

Knowledge Cutoff

-

API Pricing (per 1M)

Input: $0.65 · Output: $0.65

Hardware & System Requirements

Precision

Context

Workload Memory: 17.95 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 12.57 GB

KV Cache: 2.88 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

17.9 / 21.6 GB

1x RTX 4090 24GB

llama.cpp

17.9 / 22.3 GB

Apple M4 24GB

llama.cpp

17.9 / 18.0 GB

Determine requirements for your specific workload:

Runtime requirements

Checkpoint format

FP16

CUDA

>= 11.8

PyTorch

>= 2.1

Transformers

>= 4.40.1

ArchitecturePrecisionAttention kernel

Blackwell, Hopper

Native FP16

FlashAttention-3

Ada Lovelace, Ampere

Native FP16

FlashAttention-2

Architecture Diagram

Evaluation Benchmarks

Rank

#204

BenchmarkScoreRank

General Text

Text Arena

1289.52

#172

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

#204

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.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

32

Key-Value Heads

16

Position Embedding

ROPE

Normalization

RMS Normalization

Activation Function

GELU

Dimensions

Base Precision

FP16

Hidden Dimension Size

4,096

Number of Layers

46

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
Gemma 2 27B Size, VRAM & Hardware Requirements