Parameters
1B
Context Length
128K
Modality
Text
Architecture
Dense
License
Llama 3.2 Community License
Release Date
25 Sept 2024
Knowledge Cutoff
Dec 2023
VRAM requirements for different quantization methods and context sizes
1,024 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
128,000 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
Rank
#161
| Benchmark | Score | Rank |
|---|---|---|
General Text | 1111 | 164 |
Overall Rank
#161
Coding Rank
-
Meta Llama 3.2 1B is a foundational large language model developed by Meta, specifically optimized for deployment on edge and mobile devices. This model variant is designed for efficiency, enabling local execution of language processing tasks with reduced computational requirements. Its primary purpose is to facilitate on-device applications requiring natural language understanding and generation, making it suitable for environments with limited resources.
The model's architecture is based on an optimized transformer, a decoder-only structure that processes textual inputs and generates textual outputs. It employs Grouped-Query Attention (GQA) to enhance inference scalability, a technique that reduces memory bandwidth usage for key and value tensors by sharing them across multiple query heads. Positional encoding in the model utilizes Rotary Position Embeddings (RoPE), which integrate positional information into the attention mechanism. The Llama 3.2 1B model was trained on a substantial dataset of up to 9 trillion tokens derived from publicly available sources. Its development involved techniques such as pruning to reduce model size and knowledge distillation, where logits from larger Llama 3.1 models (8B and 70B) were incorporated during pre-training to recover and enhance performance.
This 1.23 billion parameter model supports a context length of 128,000 tokens, enabling it to process extensive input sequences for various applications. Typical use cases for the Llama 3.2 1B model include summarization, instruction following, rewriting tasks, personal information management, and multilingual knowledge retrieval directly on edge devices. It supports multiple languages for text generation, including English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai.
Attention
Attention Structure
Grouped-Query Attention
Attention Heads
16
Key-Value Heads
4
Attention Head Dimension
64
Position Embedding
ROPE
RoPE Theta
500,000
Sliding Window Attention
No
Sliding Window Size
-
Sliding Window Ratio
-
Linear Attention
-
Linear Attention Ratio
-
Normalization
RMS Normalization
Activation Function
SwigLU
Dimensions
Hidden Dimension Size
1,024
Number of Layers
16
FFN Intermediate Size (Dense)
8,192
Multi-Token Prediction Heads
-
Tokenizer
Vocabulary Size
128,256
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.
APX AI
Online