gemma3n_text
A lightweight language model from the Gemma line, built to generate text.
Language · 221 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 36.4K
- Operations
- 221
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2025
- Source
- transformers 5.18.0
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m11883
- Graph hash
- 031d61e7bb4316ba2bc28391eda29d6347b8cb654ccb18109ffc6e2569d6b8f6
- Skeleton hash
- b5c71a9bb3e0fce1f15cd930ce78293313055196a6dd9be6618c5c7266ef9ca8
- Architecture hash
- 7f21c19bf3307b320835c1d3d53828fb0eb387a92689b7a09597783f83d37ab0
- Diagram SHA-256
- f8a563c11be8f5d3428d7e48b28a401578cd33122ff2c81d6d7bd4b8bbaee6eb
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
menagerie.classics.recurrentgemma:build: build({}) What it is
Gemma is a family of lightweight language models that generate text, released in 2B and 7B parameter sizes with pretrained and instruction-tuned variants. The architecture is a decoder-only transformer with Multi-Query Attention, rotary positional embeddings (RoPE), GeGLU activation functions and RMSNorm layer normalization. The instruction-tuned variant was fine-tuned with supervised learning on instruction-following data and then with reinforcement learning from human feedback (RLHF).
The original Gemma models support the standard kv-caching used in many transformer-based language models, which fits ordinary autoregressive generation. VaultGemma is a related text-only decoder model, derived from Gemma 2 and trained from scratch with sequence-level differential privacy.
Key idea. Gemma is a family of lightweight decoder-only transformer language models that combine Multi-Query Attention, rotary positional embeddings, GeGLU activations and RMSNorm.
- gemma
- gemma 2b
- gemma 7b
- vaultgemma
- lightweight language model
- text generation
- causal language model
- decoder-only transformer
- differential privacy
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.