ApX logoApX logo

Llama 3.2 3B

Parameters

3B

Context Length

128K

Modality

Text

Architecture

Dense

KV Cache Rate

78 KB/tok

License

Llama 3.2 Community License

Release Date

25 Sept 2024

Knowledge Cutoff

Dec 2023

API Pricing (per 1M)

Input: $0.05 · Output: $0.33

Hardware Sizing

Precision

Context

Workload Memory: 4.51 GB

INT4 · 8K context

Base Weights: 1.40 GB

KV Cache: 0.61 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

4.5 / 21.6 GB usable

1x RTX 3060 12GB

4.5 / 10.8 GB usable

Apple M4 24GB

4.5 / 18.0 GB usable

Determine requirements for your specific workload:

Open in VRAM Calculator

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 2k · Context: 128K · Vocab: 128.3kx 26 layersRMSNormPre-AttentionGrouped-Query Attention24Q / 6KV headsHead dim: 128+RMSNormPre-FFNFeed-Forward NetworkSwishIntermediate: 8.2k+Final RMSNormOutput Logits

Evaluation Benchmarks

Rank

#224

BenchmarkScoreRank

Graduate-Level QA

GPQA

0.328

119

General Text

Text Arena

1167

177

Intelligence Index

Artificial Analysis

0.06

298

General Knowledge

Reference
MMLU

0.634

30

Rankings

Overall Rank

#224

Coding Rank

-

About Llama 3.2 3B

Llama 3.2 3B is an efficient on-device language model developed by Meta for mobile AI assistants, writing tools, and localized workflows. It combines 4-bit/8-bit quantization compatibility with a 128K token context window.

Technical Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

24

Key-Value Heads

6

Attention Head Dimension

128

Position Embedding

ROPE

RoPE Theta

500,000

Normalization

RMS Normalization

Activation Function

Swish

Dimensions

Hidden Dimension Size

2,048

Number of Layers

26

FFN Intermediate Size (Dense)

8,192

Tokenizer

Vocabulary Size

128,256

About Llama 3.2

Meta's Llama 3.2 family introduces vision models, integrating image encoders with language models for multimodal text and image processing. It also includes lightweight variants optimized for efficient on-device deployment, supporting an extended 128K token context length.


Other Llama 3.2 Models