← Master Index
Vol. 11 Module 11.5 Lecture

Gemma

Modern LLM Families

How This Lesson Fits the Module & Volume

Gemma is Google’s open-weight LLM family for developers—lighter-weight cousins to the closed Gemini product line. Use this lecture to practice open-vs-closed product pairing from one vendor.

Learning Objectives

By the end of this lesson, students should be able to:

  • Define Gemma as Google’s open-weight developer LLM line.
  • Contrast Gemma (open) with Gemini (closed product).
  • Describe typical sizes and instruct variants at a high level.
  • List fit cases: education, prototyping, on-prem small apps.
  • State license/terms awareness for Gemma weights.
  • Show a simple HF inference path.
Definition

Gemma is Google’s family of open-weight decoder-only language models intended for developers and researchers, related in branding to Gemini but released for download/adaptation under Gemma terms of use.

Architecture & Lineage

Stage / modelPublicly known shiftCurriculum note
Gemma 1First open developer weights from Google line2B/7B-class teaching/deploy
Gemma 1.1 / instructImproved instruction followingChat-style local demos
Gemma 2Stronger quality/efficiency updatesBetter open baseline
Gemma 2 / later sizesExpanded size menuStill not Gemini API models

Open vs Closed Positioning

Access

  • Open weights with Gemma ToS
  • Not the same as Gemini API
  • HF + Kaggle distribution common

Positioning

  • Developer-friendly Google open models
  • Smaller than flagship closed Gemini
  • Great for teaching PEFT

Vs Gemini

  • Self-host possible
  • Lower peak multimodal product polish
  • Different terms and capabilities

Typical Use Cases

Use caseWhy this familyWatch-outs
Course labs / demosManageable sizes on one GPUNot a Gemini replacement blindly
Private prototypesOn-prem experimentationCheck ToS for commercial use
PEFT practiceLoRA on instruct GemmaData quality still rules

Engineering Touchpoint

from transformers import pipeline pipe = pipeline("text-generation", model="google/gemma-2-2b-it", device_map="auto") print(pipe("Explain context length simply:", max_new_tokens=80)[0]["generated_text"])

Engineering Upsides

  • Open weights from Google ecosystem
  • Good teaching sizes
  • Clear Gemini contrast case

Engineering Trade-offs

  • Terms are not “do anything”
  • Smaller ceiling than Gemini flagships
  • Multimodal product features differ
Common Misconception

“Downloading Gemma gives you Gemini.” Gemma is a separate open-weight line; Gemini remains the closed multimodal product family.

Knowledge Check

  1. Short Answer: Is Gemma the same as Gemini? Answer: No—Gemma is open-weight; Gemini is the closed product/API family.
  2. True/False: Gemma weights are intended for developers to download and adapt. Answer: True (under Gemma terms).
  3. Multiple Choice: Gemma is offered by: (a) Google, (b) only Anthropic, (c) only Cohere, (d) only Databricks. Answer: (a).
  4. Short Answer: Name a typical Gemma use in class. Answer: Single-GPU instruct demos / LoRA labs.
  5. True/False: Gemma ToS can still restrict some uses. Answer: True.
  6. Multiple Choice: Versus Gemini APIs, Gemma usually enables: (a) more self-host control, (b) identical closed SKUs, (c) no tokenization, (d) only CNNs. Answer: (a).
  7. Short Answer: Why mention Gemma 2 in lineage? Answer: It improved the open baseline after Gemma 1.
  8. True/False: You should read Gemma terms before commercial shipping. Answer: True.
  9. Multiple Choice: A good PEFT practice model is: (a) instruct Gemma on a GPU, (b) only random init CNNs, (c) only k-means, (d) deleting attention. Answer: (a).
  10. Short Answer: What lecture is next? Answer: Phi.

Key Takeaways

  • Gemma = Google open-weight developer LLMs.
  • Gemini = closed multimodal products/APIs.
  • Ideal for labs, prototypes, and PEFT practice.
  • Next: Phi.
Trainer’s Guide

Clarify board: Two columns—Gemma vs Gemini—fill access, modality, ops.
Lab: Run a tiny Gemma instruct generate on HF.

Recap: Gemma is Google’s open-weight counterpart to Gemini products. Continue with Phi.