Parameters
7B
Context Length
8K
Modality
Text
Architecture
Dense
License
Gemma Terms of Use
Release Date
21 Feb 2024
Knowledge Cutoff
-
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
8,192 tokens
Consumer
1x RTX 4090
24GB VRAM
Datacenter
1x NVIDIA A100
80GB VRAM
Apple Silicon
1x Apple M3 Max
128GB VRAM
No evaluation benchmarks for Gemma 1 7B available.
Overall Rank
-
Coding Rank
-
Gemma is a family of lightweight, decoder-only language models developed by Google, drawing upon the same research and technology used to create the Gemini models. The 7 billion parameter variant, Gemma 1 7B, is specifically designed for text-to-text generation tasks, including question answering, summarization, and reasoning. This model employs a transformer decoder-only architecture.
Key architectural components include Multi-Head Attention (MHA) for its attention mechanism and Rotary Positional Embeddings (RoPE) for encoding positional information. The activation function utilized is GeGLU, and normalization is performed using RMSNorm. The model's training leveraged Google's fifth-generation Tensor Processing Units (TPUv5e), utilizing JAX and ML Pathways for efficient large-scale training.
Gemma 1 7B was trained on approximately 6 trillion tokens of primarily English-language data, encompassing diverse web documents, mathematical texts, and code. Data preprocessing involved stringent filtering to remove harmful or sensitive content, aligning with responsible AI development practices. The model's relatively compact size allows for deployment across various environments, from personal laptops and workstations to cloud infrastructure.
Attention
Attention Structure
Multi-Head Attention
Attention Heads
32
Key-Value Heads
32
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
-
Dimensions
Hidden Dimension Size
3,072
Number of Layers
28
FFN Intermediate Size (Dense)
-
Multi-Token Prediction Heads
-
Tokenizer
Vocabulary Size
-
Total Score
62
/ 100
Gemma 1 7B exhibits strong transparency regarding its architectural specifications and tokenizer implementation, backed by a detailed technical report. However, it suffers from significant opacity in its training data composition and compute costs, alongside a notable discrepancy between its marketed parameter count and actual size. While the model is accessible for commercial use, the reliance on a custom license and the lack of reproducible evaluation artifacts limit its overall transparency profile.
Architectural Provenance
Google provides a comprehensive technical report and official blog posts detailing the Gemma 1 7B architecture. It is explicitly described as a decoder-only transformer with specific modifications: Multi-Head Attention (MHA), Rotary Positional Embeddings (RoPE), GeGLU activation, and RMSNorm. The report details the layer count (28), hidden dimension (3072), and head size (256). While it mentions being built on Gemini research, the specific training methodology (pretraining from scratch on 6T tokens) is clearly stated, though the exact 'Gemini-inspired' architectural nuances remain partially proprietary.
Dataset Composition
The training data is described as a 6-trillion-token corpus consisting of web documents, code, and mathematics. However, Google provides no specific percentage breakdown of these components (e.g., what portion is code vs. web). While they document high-level filtering techniques for CSAM and sensitive data, the specific sources of the 'web documents' are not named, and no sample data is provided for public inspection. This falls under 'general categories mentioned' without detailed composition.
Tokenizer Integrity
The tokenizer is publicly available via the official GitHub and Hugging Face repositories. It uses a SentencePiece model with a large vocabulary size of 256,128 tokens. Documentation explicitly states it uses byte-level fallback, splits digits, and preserves whitespace. The vocabulary size and approach are consistently reported across all official sources, and the tokenizer can be directly inspected and tested by the public.
Parameter Density
While marketed as '7B', the technical documentation and third-party inspections reveal the model actually has approximately 8.54 billion total parameters (8.5B with weight tying). The '7B' label refers to non-embedding parameters. While the architectural breakdown (layers, heads) is provided, the discrepancy between the marketing name and the actual parameter count is a transparency gap, though the technical report does acknowledge the 8.5B figure in its specifications table.
Training Compute
Google discloses the hardware used (TPUv5e) and the scale (4096 chips across 16 pods for the 7B model). However, they do not disclose the total training duration (hours/days), the total compute cost, or the specific carbon footprint for the Gemma 1 7B training run. Information is limited to hardware type and general infrastructure sharding techniques (ZeRO-3, Pathways).
Benchmark Reproducibility
The technical report lists scores for standard benchmarks (MMLU, GSM8K, HumanEval, etc.), but it does not provide the exact evaluation code, specific prompts, or few-shot examples used to achieve those scores. Third-party researchers have noted significant performance discrepancies and sensitivity to prompt formatting (e.g., BOS token requirements) that were not fully documented in the initial release. Scoring is further reduced due to evidence of benchmark contamination in the training set.
Identity Consistency
The model consistently identifies itself as Gemma and is version-aware in its instruction-tuned variants. There are no widespread reports of the model claiming to be a competitor (like GPT-4) or denying its AI nature. It maintains a coherent identity across official APIs and local deployments, though its self-knowledge of its own parameter count can sometimes reflect the '7B' marketing label rather than the technical 8.5B count.
License Clarity
Gemma is released under a custom 'Gemma Terms of Use' rather than a standard OSI license like Apache 2.0. While it explicitly allows commercial use and redistribution for organizations of all sizes, it includes 'responsible use' restrictions that create legal ambiguity compared to true open-source licenses. The source code for inference is Apache 2.0, but the weights are governed by the more restrictive custom terms.
Hardware Footprint
Google provides general guidance on hardware (runs on laptops/workstations), and the model card lists the bfloat16 precision. However, detailed VRAM scaling for different context lengths and specific quantization-accuracy tradeoff tables are missing from official documentation. Users must rely on third-party community benchmarks to determine that the 7B model effectively requires ~16GB-35GB VRAM depending on the implementation and quantization.
Versioning Drift
Google maintains a release page and uses versioning (e.g., Gemma 1.0 vs 1.1). However, the changelogs are relatively high-level (e.g., 'improved safety', 'fixed bug in multi-turn'). There is limited documentation on how specific weight updates affect model drift or performance on specific tasks, and previous versions are not always easily accessible once a new 'point' release (like 1.1) becomes the default.
Gemma 1 is a family of lightweight, decoder-only transformer models from Google, available in 2B and 7B parameter sizes. Designed for various text generation tasks, they incorporate rotary positional embeddings, shared input/output embeddings, GEGLU activation, and RMSNorm. The 2B model uses multi-query attention, while 7B uses multi-head attention.
APX AI
Online