Skip to main content

Deploy and Fine-Tune Gemma 3 Models with Vertex AI

Google for DevelopersMay 7, 202512 min11,308 views
19 connections·23 entities in this video→

Introduction to Gemma 3 and Vertex AI

  • πŸ’‘ Google's new family of open models, Gemma 3, is now available, building on the research behind Gemini 2.0.
  • πŸš€ Gemma 3 comes in four sizes (1B, 7B, 27B parameters) and can run on various devices, from smartphones to the cloud.
  • 🧠 Larger Gemma 3 models are multimodal, understanding images and text, supporting multiple languages, and processing up to 128,000 tokens.

Simplifying Model Deployment with Vertex AI

  • πŸ› οΈ Vertex AI simplifies the complex process of deploying and tuning AI models by leveraging Google Cloud's infrastructure.
  • πŸ“š The Vertex AI Model Garden offers a curated collection of hundreds of verified open models, including Gemma 3, ready for use.
  • ⚑ Deployment can be achieved in as little as three lines of code using the Vertex AI Model Garden SDK, with Vertex AI managing the necessary infrastructure.
  • πŸ–ΌοΈ Vertex AI supports multimodal tasks, allowing interaction with models like Gemma 3 using standard APIs and providing image URLs along with text prompts.

Fine-Tuning Gemma 3 with Vertex AI

  • 🎯 Fine-tuning allows modification of Gemma 3's behavior for specific use cases, such as private languages or industry-specific tasks.
  • βš™οΈ Techniques like full fine-tuning or parameter-efficient fine-tuning (PEFT), such as LoRA, can be used to update model weights.
  • ☁️ Vertex AI provides built-in support for fine-tuning Gemma 3 using the LoRA technique, abstracting away hardware management and training framework complexity.
  • πŸ“ Training data for fine-tuning must be in JSONL format, with examples structured using roles like 'system', 'user', and 'assistant' for chat data.
  • πŸ–±οΈ Fine-tuning can be initiated via a code approach using open notebooks or a UI-first approach in Model Garden for quicker setup.
  • πŸ“ˆ Key hyperparameters for fine-tuning include epochs and learning rate, which need careful configuration to optimize learning and prevent overfitting.
  • πŸš€ Vertex AI can automatically deploy the fine-tuned model as an endpoint once the tuning process is complete.
Knowledge graph23 entities Β· 19 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
23 entities
Chapters5 moments

Key Moments

Transcript44 segments

Full Transcript

Topics13 themes

What’s Discussed

Gemma 3Vertex AIModel GardenAI Model DeploymentModel Fine-TuningMultimodal AIParameter Efficient Fine-TuningLoRAGoogle CloudLarge Language ModelsOpen ModelsGemini 2.0JSONL
Smart Objects23 Β· 19 links
ProductsΒ· 9
ConceptsΒ· 13
MediaΒ· 1