diff --git a/docs/assets/capabilities/cat.png b/docs/assets/capabilities/cat.png new file mode 100644 index 0000000..e14663a Binary files /dev/null and b/docs/assets/capabilities/cat.png differ diff --git a/docs/assets/capabilities/kitchen.jpg b/docs/assets/capabilities/kitchen.jpg new file mode 100644 index 0000000..34ed085 Binary files /dev/null and b/docs/assets/capabilities/kitchen.jpg differ diff --git a/docs/assets/capabilities/roses-are.wav b/docs/assets/capabilities/roses-are.wav new file mode 100644 index 0000000..6f3eadc Binary files /dev/null and b/docs/assets/capabilities/roses-are.wav differ diff --git a/docs/assets/capabilities/surprise.png b/docs/assets/capabilities/surprise.png new file mode 100644 index 0000000..9c42ccd Binary files /dev/null and b/docs/assets/capabilities/surprise.png differ diff --git a/docs/deployment/ai-edge-gallery.md b/docs/deployment/ai-edge-gallery.md index 593af51..3f65e30 100644 --- a/docs/deployment/ai-edge-gallery.md +++ b/docs/deployment/ai-edge-gallery.md @@ -1,5 +1,5 @@ --- -title: AI Edge Gallery +title: Try Gemma on your phone with AI Edge Gallery description: Run Gemma 4 on an Android or iOS phone with no code — chat, vision, audio transcription and benchmarking, fully offline. models: [gemma-4] frameworks: [litert, android, ios] diff --git a/docs/deployment/gemini-api.md b/docs/deployment/gemini-api.md index 2207a82..4816779 100644 --- a/docs/deployment/gemini-api.md +++ b/docs/deployment/gemini-api.md @@ -1,5 +1,5 @@ --- -title: Gemini API +title: Run Gemma with the Gemini API description: Call hosted Gemma 4 models through the Gemini API instead of running and serving your own instance. models: [gemma-4] frameworks: [gemini-api] diff --git a/docs/deployment/google-cloud.md b/docs/deployment/google-cloud.md index d80ef17..9747bf3 100644 --- a/docs/deployment/google-cloud.md +++ b/docs/deployment/google-cloud.md @@ -1,5 +1,5 @@ --- -title: Google Cloud +title: Gemma on Google Cloud description: "Deploy, serve, and fine-tune Gemma 4 on Google Cloud: Cloud Run, GKE, the Agent Development Kit, vLLM on TPUs, MaxText, and Sovereign Cloud." models: [gemma-4] frameworks: [google-cloud, vllm] diff --git a/docs/deployment/huggingface.md b/docs/deployment/huggingface.md index 7d9fd4f..d39588f 100644 --- a/docs/deployment/huggingface.md +++ b/docs/deployment/huggingface.md @@ -1,6 +1,6 @@ --- title: Run Gemma with Hugging Face Transformers -description: Generating text, summarizing, and analysing content are just some of the tasks you can accomplish with Gemma open models. +description: "Run Gemma 4 with Hugging Face Transformers in Python for text, image, audio, and multi-turn chat generation." models: [gemma-4, gemma-3, gemma-3n] frameworks: [transformers] source_url: "https://ai.google.dev/gemma/docs/core/huggingface_inference.md.txt" @@ -163,7 +163,7 @@ messages = [ "role": "user", "content": [ {"type": "text", "text": "Transcribe the following speech segment in its original language. Follow these specific instructions for formatting the answer:\n* Only output the transcription, with no newlines.\n* When transcribing numbers, write the digits, i.e. write 1.7 and not one point seven, and write 3 instead of three."}, - {"type": "audio", "audio": "https://ai.google.dev/gemma/docs/audio/roses-are.wav"}, + {"type": "audio", "audio": "https://gemma.ai/assets/capabilities/roses-are.wav"}, ] } ] @@ -176,7 +176,7 @@ pipe(text=messages, return_full_text=False, generate_kwargs=gen_kwargs) 'content': [{'type': 'text', 'text': 'Transcribe the following speech segment in its original language. Follow these specific instructions for formatting the answer:\n* Only output the transcription, with no newlines.\n* When transcribing numbers, write the digits, i.e. write 1.7 and not one point seven, and write 3 instead of three.'}, {'type': 'audio', - 'audio': 'https://ai.google.dev/gemma/docs/audio/roses-are.wav'}]}], + 'audio': 'https://gemma.ai/assets/capabilities/roses-are.wav'}]}], 'generated_text': 'Roses are red, violets are blue.'}] ``` diff --git a/docs/deployment/keras.md b/docs/deployment/keras.md index 8278b98..139fc16 100644 --- a/docs/deployment/keras.md +++ b/docs/deployment/keras.md @@ -1,6 +1,6 @@ --- title: Run Gemma with Keras -description: Generating content, summarizing, and analysing content are just some of the tasks you can accomplish with Gemma open models. +description: "Run Gemma 4 inference with Keras and KerasHub for text and multimodal image generation in Python." models: [gemma-4] frameworks: [keras] source_url: "https://ai.google.dev/gemma/docs/core/keras_inference.md.txt" @@ -269,7 +269,7 @@ Load the image and format the data so the model can process it. Use `read_image( from matplotlib import pyplot as plt image = read_image( - "https://ai.google.dev/gemma/docs/images/thali-indian-plate.jpg" + "https://gemma.ai/assets/deployment/thali-indian-plate.jpg" ) plt.imshow(image) ``` diff --git a/docs/deployment/litert.md b/docs/deployment/litert.md index 95a631b..147e54f 100644 --- a/docs/deployment/litert.md +++ b/docs/deployment/litert.md @@ -1,5 +1,5 @@ --- -title: LiteRT-LM +title: Run Gemma on-device with LiteRT-LM description: Run Gemma 4 on-device with LiteRT-LM — CLI install, prebuilt .litertlm weights, and exporting your own fine-tune. models: [gemma-4] frameworks: [litert] diff --git a/docs/deployment/llamacpp.md b/docs/deployment/llamacpp.md index 1c93499..658f618 100644 --- a/docs/deployment/llamacpp.md +++ b/docs/deployment/llamacpp.md @@ -1,5 +1,5 @@ --- -title: llama.cpp +title: Run Gemma with llama.cpp description: Run Gemma 4 with llama.cpp — GGUF repos for every size, image/audio/video input, and the OpenAI-compatible server. models: [gemma-4] frameworks: [llamacpp] diff --git a/docs/deployment/lmstudio.md b/docs/deployment/lmstudio.md index b329157..0873b19 100644 --- a/docs/deployment/lmstudio.md +++ b/docs/deployment/lmstudio.md @@ -1,5 +1,5 @@ --- -title: LM Studio +title: Run Gemma with LM Studio description: Run Gemma 4 with LM Studio — desktop app, lms CLI, and the OpenAI-compatible local server. models: [gemma-4] frameworks: [lmstudio] diff --git a/docs/deployment/mlx.md b/docs/deployment/mlx.md index ecf49bd..b802fe6 100644 --- a/docs/deployment/mlx.md +++ b/docs/deployment/mlx.md @@ -1,5 +1,5 @@ --- -title: Apple MLX +title: Run Gemma with MLX description: Run Gemma 4 on Apple silicon with MLX — text and vision generation, model repos, and the OpenAI-compatible server. models: [gemma-4] frameworks: [mlx] diff --git a/docs/deployment/ollama.md b/docs/deployment/ollama.md index d64ed67..ac30581 100644 --- a/docs/deployment/ollama.md +++ b/docs/deployment/ollama.md @@ -1,5 +1,5 @@ --- -title: Ollama +title: Run Gemma with Ollama description: Run Gemma 4 locally with Ollama — model tags, image input, and the OpenAI-compatible server. models: [gemma-4] frameworks: [ollama] diff --git a/docs/deployment/sglang.md b/docs/deployment/sglang.md index 8443b15..116038d 100644 --- a/docs/deployment/sglang.md +++ b/docs/deployment/sglang.md @@ -1,5 +1,5 @@ --- -title: SGLang +title: Serve Gemma with SGLang description: Serve Gemma 4 with SGLang — install, launch_server, model repositories, and the OpenAI-compatible API. models: [gemma-4] frameworks: [sglang] diff --git a/docs/deployment/unsloth.md b/docs/deployment/unsloth.md index 65280f7..ac4be19 100644 --- a/docs/deployment/unsloth.md +++ b/docs/deployment/unsloth.md @@ -1,5 +1,5 @@ --- -title: Unsloth +title: Run Gemma with Unsloth description: Run Gemma 4 with Unsloth — the desktop Studio app, dynamic-quant GGUFs for llama.cpp, and 2x faster fine-tuning. models: [gemma-4] frameworks: [unsloth, llamacpp] diff --git a/docs/deployment/vllm.md b/docs/deployment/vllm.md index 5ec7bb2..8599966 100644 --- a/docs/deployment/vllm.md +++ b/docs/deployment/vllm.md @@ -1,5 +1,5 @@ --- -title: vLLM +title: Serve Gemma with vLLM description: Serve Gemma 4 with vLLM — install, vllm serve, model repositories, and the OpenAI-compatible API. models: [gemma-4] frameworks: [vllm] diff --git a/docs/get-started/capabilities/audio.md b/docs/get-started/capabilities/audio.md index f15b526..ffb8da5 100644 --- a/docs/get-started/capabilities/audio.md +++ b/docs/get-started/capabilities/audio.md @@ -1,6 +1,6 @@ --- title: Audio understanding -description: Starting with Gemma 3n, you can use audio directly into your prompts and workflows. +description: "Process and transcribe speech, music, and sound inputs with Gemma 4 and Gemma 3n multimodal audio understanding." models: [gemma-4] requires: audio frameworks: [transformers] @@ -185,7 +185,7 @@ messages = [ "role": "user", "content": [ {"type": "text", "text": "Transcribe the following speech segment in English, then translate it into Korean. When formatting the answer, first output the transcription in English, then one newline, then output the string 'Korean: ', then the translation in Korean."}, - {"type": "audio", "audio": "https://ai.google.dev/gemma/docs/audio/roses-are.wav"}, + {"type": "audio", "audio": "https://gemma.ai/assets/capabilities/roses-are.wav"}, ] } ] diff --git a/docs/get-started/capabilities/function-calling.md b/docs/get-started/capabilities/function-calling.md index 4bcedf9..fef94f2 100644 --- a/docs/get-started/capabilities/function-calling.md +++ b/docs/get-started/capabilities/function-calling.md @@ -1,6 +1,6 @@ --- title: Tool calling -description: When using a generative artificial intelligence (AI) model such as Gemma, you may want to use the model to operate programming interfaces in order to complete tasks or answer questions. +description: "Build agentic workflows with Gemma 4 native tool calling and structured function schemas in Hugging Face Transformers." models: [gemma-4] frameworks: [transformers] colab: https://colab.research.google.com/github/google-gemma/docs/blob/main/docs/notebooks/function-calling-gemma-4-e2b.ipynb diff --git a/docs/get-started/capabilities/image.md b/docs/get-started/capabilities/image.md index 8ffc8ab..12c24f8 100644 --- a/docs/get-started/capabilities/image.md +++ b/docs/get-started/capabilities/image.md @@ -1,6 +1,6 @@ --- title: Image understanding -description: You can use Gemma 3 and later models to analyze and understand the content of images. +description: "Analyze images with Gemma 4 using variable aspect ratios, configurable vision token budgets, and multi-image prompts." models: [gemma-4] frameworks: [transformers] colab: https://colab.research.google.com/github/google-gemma/docs/blob/main/docs/notebooks/image-gemma-4-e2b.ipynb @@ -103,8 +103,8 @@ config.max_new_tokens = 512 gen_kwargs = dict(generation_config=config) img_urls = [ - "https://ai.google.dev/gemma/docs/capabilities/vision/images/surprise.png", - "https://ai.google.dev/gemma/docs/capabilities/vision/images/kitchen.jpg", + "https://gemma.ai/assets/capabilities/surprise.png", + "https://gemma.ai/assets/capabilities/kitchen.jpg", ] for img in img_urls: display(Image.open(requests.get(img, stream=True).raw)) @@ -196,7 +196,7 @@ config = GenerationConfig.from_pretrained(MODEL_ID) config.max_new_tokens = 512 gen_kwargs = dict(generation_config=config) -img_url = "https://ai.google.dev/gemma/docs/capabilities/vision/images/cat.png" +img_url = "https://gemma.ai/assets/capabilities/cat.png" input_image = Image.open(requests.get(img_url, stream=True).raw) display(input_image) diff --git a/docs/get-started/capabilities/video.md b/docs/get-started/capabilities/video.md index 609072a..4024529 100644 --- a/docs/get-started/capabilities/video.md +++ b/docs/get-started/capabilities/video.md @@ -1,6 +1,6 @@ --- title: Video understanding -description: Video data is a rich source of information that can help you accomplish tasks and understand the world around you. +description: "Analyze video clips and interleaved frame sequences with Gemma 4 multimodal vision-language models." models: [gemma-4] frameworks: [transformers] colab: https://colab.research.google.com/github/google-gemma/docs/blob/main/docs/notebooks/video-gemma-4-e2b.ipynb diff --git a/docs/llms.txt b/docs/llms.txt index 9869569..4d52d97 100644 --- a/docs/llms.txt +++ b/docs/llms.txt @@ -12,26 +12,26 @@ Follow the Markdown links below to read canonical page content without cloning t - [Best practices](https://gemma.ai/get-started/best-practices.md): Sampling parameters, thinking-mode tokens, modality order and image token budgets that get the best results out of Gemma 4. - [Inference](https://gemma.ai/get-started/capabilities/text.md): Basic text inference with Gemma 4 in Hugging Face Transformers: single-turn prompts, multi-turn conversations, and system instructions. - [Reasoning](https://gemma.ai/get-started/capabilities/thinking.md): Use Gemma 4's thinking mode to reason before answering, for text and image prompts, and parse the reasoning apart from the answer. -- [Tool calling](https://gemma.ai/get-started/capabilities/function-calling.md): When using a generative artificial intelligence (AI) model such as Gemma, you may want to use the model to operate programming interfaces in order to complete tasks or answer questions. +- [Tool calling](https://gemma.ai/get-started/capabilities/function-calling.md): Build agentic workflows with Gemma 4 native tool calling and structured function schemas in Hugging Face Transformers. - [Vision overview](https://gemma.ai/get-started/capabilities/vision.md): Prepare and pass visual data to Gemma 4 for object detection, OCR, visual question answering, captioning, and multi-image reasoning. -- [Image understanding](https://gemma.ai/get-started/capabilities/image.md): You can use Gemma 3 and later models to analyze and understand the content of images. -- [Video understanding](https://gemma.ai/get-started/capabilities/video.md): Video data is a rich source of information that can help you accomplish tasks and understand the world around you. -- [Audio understanding](https://gemma.ai/get-started/capabilities/audio.md): Starting with Gemma 3n, you can use audio directly into your prompts and workflows. +- [Image understanding](https://gemma.ai/get-started/capabilities/image.md): Analyze images with Gemma 4 using variable aspect ratios, configurable vision token budgets, and multi-image prompts. +- [Video understanding](https://gemma.ai/get-started/capabilities/video.md): Analyze video clips and interleaved frame sequences with Gemma 4 multimodal vision-language models. +- [Audio understanding](https://gemma.ai/get-started/capabilities/audio.md): Process and transcribe speech, music, and sound inputs with Gemma 4 and Gemma 3n multimodal audio understanding. - [Prompt Formatting](https://gemma.ai/get-started/prompt-formatting.md): The control tokens Gemma 4 uses to structure a prompt, and the older start_of_turn format used by Gemma 1 to 3. - [Speed-up Gemma 4 with Multi-Token Prediction](https://gemma.ai/get-started/capabilities/mtp.md): In Gemma 4, Multi-Token Prediction (MTP) is the specific architecture used to enable highly efficient Speculative Decoding. - [Quantization-Aware Training](https://gemma.ai/get-started/qat.md): Which Gemma 4 quantized weights to download for each engine, and why QAT beats post-training quantization at 4-bit. ## Models - [Gemma Model Family](https://gemma.ai/models.md): What Gemma is, how the generations relate, and which variant was built from which base model. -- [Gemma 4](https://gemma.ai/models/gemma-4.md): Gemma is a family of generative artificial intelligence models and you can use them in a wide variety of generation tasks, including question answering, summarization, and reasoning. -- [Gemma 4 — Model card](https://gemma.ai/models/gemma-4/model-card.md): Gemma is a family of open models built by Google DeepMind. +- [Gemma 4 model overview](https://gemma.ai/models/gemma-4.md): Overview of Google's Gemma 4 open-weight multimodal models (E2B, E4B, 12B, 26B A4B, and 31B): capabilities, context windows, VRAM, and QAT checkpoints. +- [Gemma 4 model card](https://gemma.ai/models/gemma-4/model-card.md): Model card for Gemma 4 (E2B, E4B, 12B, 26B A4B, and 31B): architecture, multimodal inputs and outputs, training data, and evaluation benchmarks. - [Gemma 3 model card](https://gemma.ai/models/gemma-3.md): Model card for the multimodal Gemma 3 models: 128K context, 140+ languages, inputs and outputs, training data, and evaluation. - [Gemma 2 model card](https://gemma.ai/models/gemma-2.md): Model card for Gemma 2 text-to-text models: description, inputs and outputs, training data, and evaluation. - [Gemma model card](https://gemma.ai/models/gemma-1.md): Model card for the first-generation Gemma text-to-text models: description, inputs and outputs, training data, and evaluation. - [Gemma 3n model overview](https://gemma.ai/models/gemma-3n.md): Gemma 3n is a generative AI model optimized for use in everyday devices, such as phones, laptops, and tablets. - [Gemma 3n model card](https://gemma.ai/models/gemma-3n/model-card.md): Model card for Gemma 3n: on-device inputs and outputs, training data, evaluation results, and intended use. - [DiffusionGemma model overview](https://gemma.ai/models/diffusiongemma.md): DiffusionGemma is an experimental open model that explores text diffusion, an exceptionally fast approach to text generation. -- [DiffusionGemma model card](https://gemma.ai/models/diffusiongemma/model-card.md): DiffusionGemma is a generative model built by Google DeepMind. +- [DiffusionGemma model card](https://gemma.ai/models/diffusiongemma/model-card.md): Model card for DiffusionGemma (26B A4B MoE): discrete text diffusion architecture, multimodal inputs, training data, and evaluation benchmarks. - [DiffusionGemma — Diffusion in Text Generation Explained](https://gemma.ai/models/diffusiongemma/explained.md): To understand DiffusionGemma, it helps to examine the core limitations of standard language models and how text-based diffusion differs. - [DiffusionGemma — Generate output](https://gemma.ai/models/diffusiongemma/inference.md): Generate text with DiffusionGemma using Hugging Face Transformers, including the GPU memory the model requires. - [FunctionGemma model overview](https://gemma.ai/models/functiongemma.md): FunctionGemma is a specialized version of our Gemma 3 270M model tuned for function calling. @@ -67,20 +67,20 @@ Follow the Markdown links below to read canonical page content without cloning t ## Run - [Overview](https://gemma.ai/deployment.md): Choose an execution framework and a Gemma variant for your hardware, then run your first generation request. -- [Ollama](https://gemma.ai/deployment/ollama.md): Run Gemma 4 locally with Ollama — model tags, image input, and the OpenAI-compatible server. -- [llama.cpp](https://gemma.ai/deployment/llamacpp.md): Run Gemma 4 with llama.cpp — GGUF repos for every size, image/audio/video input, and the OpenAI-compatible server. -- [LM Studio](https://gemma.ai/deployment/lmstudio.md): Run Gemma 4 with LM Studio — desktop app, lms CLI, and the OpenAI-compatible local server. -- [Apple MLX](https://gemma.ai/deployment/mlx.md): Run Gemma 4 on Apple silicon with MLX — text and vision generation, model repos, and the OpenAI-compatible server. -- [Run Gemma with Hugging Face Transformers](https://gemma.ai/deployment/huggingface.md): Generating text, summarizing, and analysing content are just some of the tasks you can accomplish with Gemma open models. -- [Run Gemma with Keras](https://gemma.ai/deployment/keras.md): Generating content, summarizing, and analysing content are just some of the tasks you can accomplish with Gemma open models. -- [LiteRT-LM](https://gemma.ai/deployment/litert.md): Run Gemma 4 on-device with LiteRT-LM — CLI install, prebuilt .litertlm weights, and exporting your own fine-tune. -- [AI Edge Gallery](https://gemma.ai/deployment/ai-edge-gallery.md): Run Gemma 4 on an Android or iOS phone with no code — chat, vision, audio transcription and benchmarking, fully offline. -- [vLLM](https://gemma.ai/deployment/vllm.md): Serve Gemma 4 with vLLM — install, vllm serve, model repositories, and the OpenAI-compatible API. -- [SGLang](https://gemma.ai/deployment/sglang.md): Serve Gemma 4 with SGLang — install, launch_server, model repositories, and the OpenAI-compatible API. -- [Gemini API](https://gemma.ai/deployment/gemini-api.md): Call hosted Gemma 4 models through the Gemini API instead of running and serving your own instance. -- [Google Cloud](https://gemma.ai/deployment/google-cloud.md): Deploy, serve, and fine-tune Gemma 4 on Google Cloud: Cloud Run, GKE, the Agent Development Kit, vLLM on TPUs, MaxText, and Sovereign Cloud. +- [Run Gemma with Ollama](https://gemma.ai/deployment/ollama.md): Run Gemma 4 locally with Ollama — model tags, image input, and the OpenAI-compatible server. +- [Run Gemma with llama.cpp](https://gemma.ai/deployment/llamacpp.md): Run Gemma 4 with llama.cpp — GGUF repos for every size, image/audio/video input, and the OpenAI-compatible server. +- [Run Gemma with LM Studio](https://gemma.ai/deployment/lmstudio.md): Run Gemma 4 with LM Studio — desktop app, lms CLI, and the OpenAI-compatible local server. +- [Run Gemma with MLX](https://gemma.ai/deployment/mlx.md): Run Gemma 4 on Apple silicon with MLX — text and vision generation, model repos, and the OpenAI-compatible server. +- [Run Gemma with Hugging Face Transformers](https://gemma.ai/deployment/huggingface.md): Run Gemma 4 with Hugging Face Transformers in Python for text, image, audio, and multi-turn chat generation. +- [Run Gemma with Keras](https://gemma.ai/deployment/keras.md): Run Gemma 4 inference with Keras and KerasHub for text and multimodal image generation in Python. +- [Run Gemma on-device with LiteRT-LM](https://gemma.ai/deployment/litert.md): Run Gemma 4 on-device with LiteRT-LM — CLI install, prebuilt .litertlm weights, and exporting your own fine-tune. +- [Try Gemma on your phone with AI Edge Gallery](https://gemma.ai/deployment/ai-edge-gallery.md): Run Gemma 4 on an Android or iOS phone with no code — chat, vision, audio transcription and benchmarking, fully offline. +- [Serve Gemma with vLLM](https://gemma.ai/deployment/vllm.md): Serve Gemma 4 with vLLM — install, vllm serve, model repositories, and the OpenAI-compatible API. +- [Serve Gemma with SGLang](https://gemma.ai/deployment/sglang.md): Serve Gemma 4 with SGLang — install, launch_server, model repositories, and the OpenAI-compatible API. +- [Run Gemma with the Gemini API](https://gemma.ai/deployment/gemini-api.md): Call hosted Gemma 4 models through the Gemini API instead of running and serving your own instance. +- [Gemma on Google Cloud](https://gemma.ai/deployment/google-cloud.md): Deploy, serve, and fine-tune Gemma 4 on Google Cloud: Cloud Run, GKE, the Agent Development Kit, vLLM on TPUs, MaxText, and Sovereign Cloud. - [Get started with Gemma and LangChain](https://gemma.ai/deployment/langchain.md): This tutorial shows you how to get started with Gemma and LangChain, running in Google Cloud or in your Colab environment. -- [Unsloth](https://gemma.ai/deployment/unsloth.md): Run Gemma 4 with Unsloth — the desktop Studio app, dynamic-quant GGUFs for llama.cpp, and 2x faster fine-tuning. +- [Run Gemma with Unsloth](https://gemma.ai/deployment/unsloth.md): Run Gemma 4 with Unsloth — the desktop Studio app, dynamic-quant GGUFs for llama.cpp, and 2x faster fine-tuning. ## Fine-tune - [Gemma model fine-tuning](https://gemma.ai/tuning.md): Fine-tuning a generative artificial intelligence (AI) model such as Gemma modifies the behavior of the model. @@ -92,10 +92,10 @@ Follow the Markdown links below to read canonical page content without cloning t ## Learn - [Learn](https://gemma.ai/learn.md): Illustrated walkthroughs of how the Gemma models work, from the architecture down to individual mechanisms. -- [A Visual Guide to Gemma 4](https://gemma.ai/tutorials/visual-guides/gemma-4.md): A Visual Guide to Gemma 4 — a visual walkthrough. -- [A Visual Guide to Gemma 4 12B](https://gemma.ai/tutorials/visual-guides/gemma-4-12b.md): A Visual Guide to Gemma 4 12B — a visual walkthrough. +- [A Visual Guide to Gemma 4](https://gemma.ai/tutorials/visual-guides/gemma-4.md): Illustrated guide to the Gemma 4 architecture: dense and 26B A4B MoE models, Per-Layer Embeddings (E2B/E4B), vision and audio encoders, and KV cache. +- [A Visual Guide to Gemma 4 12B](https://gemma.ai/tutorials/visual-guides/gemma-4-12b.md): How Gemma 4 12B achieves fast, unified multimodal understanding of text, images, and audio using an encoder-free architecture with linear projections. - [A Visual Guide to MTP](https://gemma.ai/tutorials/visual-guides/mtp.md): How multi-token prediction and speculative decoding make Gemma 4 faster — drafter models, shared KV cache, and the clustered LM head. -- [A Visual Guide to DiffusionGemma](https://gemma.ai/tutorials/visual-guides/diffusiongemma.md): A Visual Guide to DiffusionGemma — a visual walkthrough. +- [A Visual Guide to DiffusionGemma](https://gemma.ai/tutorials/visual-guides/diffusiongemma.md): How DiffusionGemma uses discrete text diffusion, block-autoregressive multi-canvas sampling, and a 26B A4B MoE architecture to generate tokens in parallel. - [Overview of Gemma Architectures](https://gemma.ai/tutorials/gemma-explained/overview.md): Text-to-text models and specialization for coding. - [What’s New in Gemma 2](https://gemma.ai/tutorials/gemma-explained/gemma-2.md): Updated architecture with knowledge distillation for 2B and 9B models. - [RecurrentGemma Architecture](https://gemma.ai/tutorials/gemma-explained/recurrentgemma.md): The Griffin architecture mixing local attention and linear recurrences for fast long-sequence inference. diff --git a/docs/models/diffusiongemma/model-card.md b/docs/models/diffusiongemma/model-card.md index fed31be..4aa8d8e 100644 --- a/docs/models/diffusiongemma/model-card.md +++ b/docs/models/diffusiongemma/model-card.md @@ -1,6 +1,6 @@ --- title: DiffusionGemma model card -description: DiffusionGemma is a generative model built by Google DeepMind. +description: "Model card for DiffusionGemma (26B A4B MoE): discrete text diffusion architecture, multimodal inputs, training data, and evaluation benchmarks." models: [diffusiongemma] source_url: "https://ai.google.dev/gemma/docs/diffusiongemma/model_card.md.txt" --- diff --git a/docs/models/embeddinggemma/index.md b/docs/models/embeddinggemma/index.md index 5ce7bd2..9708271 100644 --- a/docs/models/embeddinggemma/index.md +++ b/docs/models/embeddinggemma/index.md @@ -4,7 +4,7 @@ description: EmbeddingGemma 2 is a lightweight, open-source 740M parameter model models: [embeddinggemma-2, embeddinggemma] source_url: "https://ai.google.dev/gemma/docs/embeddinggemma.md.txt" --- -# EmbeddingGemma model overview {: #hidden-title style="display: none;" } +# EmbeddingGemma model overview