Lesson 597 of 2116
Local Model Family: Gemma
Gemma is Google DeepMind open-model family, useful for local and single-accelerator experiments when students want polished small models.
Lesson map
What this lesson covers
Learning path
The main moves in order
- 1Why Gemma matters locally
- 2Gemma Sizing: Pick the Model That Fits the Machine
- 3Why Gemma sizing matters locally
- 4Gemma Beyond Chat: Vision and Domain Variants
Concept cluster
Terms to connect while reading
Section 1
Why Gemma matters locally
Gemma is a useful local-model lesson because it makes one trade-off visible: small local assistants, education demos, research baselines, and comparing Google-style open models to Qwen, Mistral, and Llama. The point is not to crown a permanent winner. The point is to learn how to match a model family to hardware, task, license, and risk.
Compare the options
| Question | What students should inspect | Why it matters |
|---|---|---|
| Can it run here? | Size, quantization, RAM, VRAM, runtime support | A model that barely loads is not a usable assistant |
| Is it good for this task? | small local assistants, education demos, research baselines, and comparing Google-style open models to Qwen, Mistral, and Llama | Family reputation only matters when the workload matches |
| Can we legally use it? | License, use policy, model card, redistribution terms | Open weights do not all mean the same rights |
| How do we know? | A small eval set with speed, quality, and failure notes | Local models should be chosen with evidence, not vibes |
Current source signal
Build the small version
Create a Gemma model card reader: students extract size, license terms, intended uses, unsafe uses, and runtime requirements.
- 1Pick one exact model file or runtime tag from the current model card.
- 2Run three short prompts: one easy, one task-specific, and one likely failure case.
- 3Record load time, response speed, memory pressure, answer quality, and one surprising failure.
- 4Write a one-paragraph recommendation: use it, do not use it, or use it only for a narrow job.
A classroom-safe design sketch for this local-model family.
model_card_notes:
family: Gemma
size: check_current_card
quantized_available: yes_or_no
intended_use: classroom_demo_or_app
license_terms: summarize_before_use
safety_notes: copy_key_limits
runtime: ollama_lmstudio_or_transformersKey terms in this lesson
The big idea: remember model card reader. Local model work is product design under constraints, not just downloading the model with the loudest leaderboard score.
Section 2
Gemma Sizing: Pick the Model That Fits the Machine
Section 3
Why Gemma sizing matters locally
Gemma sizing is a useful local-model lesson because it makes one trade-off visible: teaching students how to match a model to RAM, VRAM, latency, and task difficulty. The point is not to crown a permanent winner. The point is to learn how to match a model family to hardware, task, license, and risk.
Compare the options
| Question | What students should inspect | Why it matters |
|---|---|---|
| Can it run here? | Size, quantization, RAM, VRAM, runtime support | A model that barely loads is not a usable assistant |
| Is it good for this task? | teaching students how to match a model to RAM, VRAM, latency, and task difficulty | Family reputation only matters when the workload matches |
| Can we legally use it? | License, use policy, model card, redistribution terms | Open weights do not all mean the same rights |
| How do we know? | A small eval set with speed, quality, and failure notes | Local models should be chosen with evidence, not vibes |
Current source signal
Build the small version
Run a small Gemma variant and a larger one, then score speed, memory pressure, and answer quality on the same five prompts.
- 1Pick one exact model file or runtime tag from the current model card.
- 2Run three short prompts: one easy, one task-specific, and one likely failure case.
- 3Record load time, response speed, memory pressure, answer quality, and one surprising failure.
- 4Write a one-paragraph recommendation: use it, do not use it, or use it only for a narrow job.
A classroom-safe design sketch for this local-model family.
sizing_test:
prompts: 5
models:
- gemma_small_quantized
- gemma_larger_quantized
measure:
- load_time
- tokens_per_second
- memory_used
- quality_score
choose: smallest model that passes the task rubricThe big idea: remember smallest passing model. Local model work is product design under constraints, not just downloading the model with the loudest leaderboard score.
Section 4
Gemma Beyond Chat: Vision and Domain Variants
Section 5
Why Gemma variants matters locally
Gemma variants is a useful local-model lesson because it makes one trade-off visible: discussing when a specialized local model beats a general chat model at a narrow job. The point is not to crown a permanent winner. The point is to learn how to match a model family to hardware, task, license, and risk.
Compare the options
| Question | What students should inspect | Why it matters |
|---|---|---|
| Can it run here? | Size, quantization, RAM, VRAM, runtime support | A model that barely loads is not a usable assistant |
| Is it good for this task? | discussing when a specialized local model beats a general chat model at a narrow job | Family reputation only matters when the workload matches |
| Can we legally use it? | License, use policy, model card, redistribution terms | Open weights do not all mean the same rights |
| How do we know? | A small eval set with speed, quality, and failure notes | Local models should be chosen with evidence, not vibes |
Current source signal
Build the small version
Compare a general chat prompt, an image prompt, and a domain prompt. For each one, decide whether a general model or specialized model is appropriate.
- 1Pick one exact model file or runtime tag from the current model card.
- 2Run three short prompts: one easy, one task-specific, and one likely failure case.
- 3Record load time, response speed, memory pressure, answer quality, and one surprising failure.
- 4Write a one-paragraph recommendation: use it, do not use it, or use it only for a narrow job.
A classroom-safe design sketch for this local-model family.
specialized_model_decision:
if input.type == image:
consider vision_variant
if domain == medical_or_legal:
require expert_review
if task == normal_chat:
use general_instruct
rule: specialization changes evaluation, not just capabilityThe big idea: remember specialization changes evaluation. Local model work is product design under constraints, not just downloading the model with the loudest leaderboard score.
End-of-lesson quiz
Check what stuck
15 questions · Score saves to your progress.
Tutor
Curious about “Local Model Family: Gemma”?
Ask anything about this lesson. I’ll answer using just what you’re reading — short, friendly, grounded.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Creators · 18 min
Local Model Family: Llama
Llama is the reference ecosystem for many local-model tools, formats, fine-tunes, and community workflows.
Creators · 18 min
Local Model Family: GLM
GLM models are useful for studying agent behavior, long context, multilingual use, and tool-oriented Chinese AI ecosystems.
Creators · 16 min
Local Model Family: Falcon
Falcon is an important historical local-model family that helps students understand how fast the open-weight ecosystem evolves.
