Gemma 4 / Compare / Gemma 3

Gemma 3

The previous generation of Google's open models. Gemma 4 has replaced it for most uses, but Gemma 3 is still available, still runs well, and still has one model Gemma 4 does not: the tiny 270M.

From Google's Gemma 3 model card and release history ·

Gemma 3 · March 2025 270M292 MB 1B815 MB 4B3.3 GB 12B8.1 GB 27B17 GB Gemma 3 Gemma 4 · March 2026
Five sizes, succeeded by Gemma 4 a year later.
Mar 10, 2025Released
270M - 27BFive sizes
128KContext on 4B, 12B and 27B
Aug 2024Training data cutoff
October 2026

Where Gemma 3 stands now

⏭️

Superseded, not withdrawn

Gemma 4 arrived on March 31, 2026. Gemma 3's weights are still published and current runtimes still run them.

📉

Well behind on quality

On Google's own tests the gap is large: 20.8 against 89.2 on AIME 2026 maths, and 29.1 against 80.0 on LiveCodeBench v6 coding.

🔬

Still the smallest Gemma

The 270M has no Gemma 4 equivalent. For tiny, single-purpose models it remains the one to use.

Building something new? Start with Gemma 4 - see the models page and the model comparison.

The family

The five Gemma 3 sizes

Text in every size; images from the 4B up. Output is text.

ModelContextInputsReleasedOllama tagDownloadBest for
Gemma 3 270M32KTextAug 14, 2025gemma3:270m292 MBFine-tuning for one small task
Gemma 3 1B32KTextMar 10, 2025gemma3:1b815 MBOn-device text
Gemma 3 4B128KText, imageMar 10, 2025gemma3:4b3.3 GBLaptops and small GPUs
Gemma 3 12B128KText, imageMar 10, 2025gemma3:12b8.1 GBA single consumer GPU
Gemma 3 27B128KText, imageMar 10, 2025gemma3:27b17 GBThe flagship

Context from Google's Gemma 3 model card; dates from the release history; tags, inputs and download sizes from Ollama's gemma3 page. Images are resized to 896 × 896 and cost 256 tokens each. The model card lists support for more than 140 languages. Ollama also carries -it-qat builds of every size.

Still unique

Gemma 3 270M: the smallest Gemma

Gemma 4's smallest model, E2B, has 2.3B effective parameters. The 270M is roughly an eighth of that. It is not a general chatbot; it is a base for fine-tuning one narrow job and running it almost anywhere.

Gemma 3 270M292 MB download Gemma 4 E2B2.3B effective about 8× Circle areas drawn to scale by parameter count
A different class of model, not a smaller version of the same one.
Parameters
270M

170M in the embeddings, 100M in the transformer blocks.

Vocabulary
256K

Large for its size, which helps with rare words when fine-tuning.

Battery
0.75%

For 25 conversations on a Pixel 9 Pro chip at 4-bit, in Google's test.

Context
32K

Text only.

What Google built it for

Sentiment analysis, entity extraction, query routing, turning unstructured text into structured data, compliance checks and content moderation.

What it is not for

Google says it is "not designed for complex conversational use cases". For open-ended chat, use Gemma 4 E2B or larger.

From Google's Gemma 3 270M announcement. Phone-sized Gemma 4 models are on the mobile downloads and Android pages.

Benchmarks

Gemma 3's own scores

From Google's Gemma 3 model card. These are older tests than the ones used for Gemma 4, so the two tables on this page are not directly comparable.

Test1B4B12B27B
MMLU · knowledge14.743.660.667.5
BIG-Bench Hard · reasoning39.172.285.787.6
GSM8K · maths word problems62.889.294.495.9
HumanEval · coding41.571.385.487.8
MBPP · coding35.263.273.074.4
IFEval · following instructions80.290.288.990.4
DocVQA · documents-75.887.186.6
ChartQA · charts-68.875.778.0
MMMU · vision-48.859.664.9

Instruction-tuned models, from Google's Gemma 3 model card. The 1B has no image input, so it has no vision scores.

Head to head

Gemma 3 vs Gemma 4

Google re-tested Gemma 3 27B on the newer benchmarks used for Gemma 4. The mid-size Gemma 4 12B beats it on every row, with less than half the parameters.

AIME 2026

Competition maths, percent
Gemma 4 31B89.2
Gemma 4 12B77.5
Gemma 3 27B20.8

LiveCodeBench v6

Writing code, percent
Gemma 4 31B80.0
Gemma 4 12B72.0
Gemma 3 27B29.1
TestGemma 3 27BGemma 4 12BGemma 4 31B
MMLU Pro · knowledge67.677.285.2
AIME 2026 · maths20.877.589.2
GPQA Diamond · science42.478.884.3
LiveCodeBench v6 · coding29.172.080.0
Codeforces Elo11016592150
Tau2 · agent tasks16.269.076.9
IFEval · following instructions90.497.298.9
MMMU Pro · vision49.769.176.9
InfographicVQA70.688.492.0
RULER at 128K · long context66.091.296.4
LOFT retrieval at 128K8.666.479.5
Gemma 3Gemma 4
ReleasedMarch 10, 2025March 31, 2026
Sizes270M, 1B, 4B, 12B, 27BE2B, E4B, 12B, 26B A4B, 31B
LicenceGemma Terms of UseApache 2.0
Largest context128K256K
InputsText, imageText, image, video, audio on three sizes
Image detailFixed, 256 tokensAdjustable, 70 to 1,120 tokens
Thinking modeNoYes
Function callingThrough promptingBuilt in
Training data toAugust 2024January 2025
Smallest model270ME2B, 2.3B effective

Scores from Google's Gemma 4 model card and technical report; Gemma 3 has no thinking mode, so its figures are without it. On the public Arena text leaderboard on October 2, 2026, Gemma 3 27B scored 1365 and Gemma 4 31B 1453. Gemma 3 is notably weak at long range: its RULER score falls from 91.1 at 32K to 66.0 at 128K. All tests are on the benchmarks page; what Gemma 4 adds is on features and capabilities.

Licence

The licence is different

This is the difference people overlook. Gemma 4 moved to Apache 2.0; Gemma 3 did not move with it.

📄

Gemma 3 - Gemma Terms of Use

  • A Prohibited Use Policy applies to what you build.
  • If you redistribute, you must pass the use restrictions on and include a notice that Gemma is provided under the Gemma Terms of Use.
  • Google reserves the right to restrict usage it reasonably believes breaks the agreement.
  • Google may update the terms.
🔓

Gemma 4 - Apache 2.0

  • Commercial use, modification and redistribution allowed.
  • Keep the licence and copyright notices when you redistribute.
  • A standard, widely understood open-source licence.
  • Applies to Gemma 4 and models built on it, such as EmbeddingGemma 2.

Summarised from Google's Gemma Terms of Use, whose appendix lists Gemma 1, 1.1, 2, 3 and 3n along with variants such as PaliGemma, ShieldGemma, CodeGemma, EmbeddingGemma, FunctionGemma, T5Gemma, VaultGemma and TranslateGemma. This is a summary, not legal advice - read the terms before you ship. On Hugging Face, Gemma 3 repositories are gated: you accept the terms before downloading.

Decision

Should you migrate to Gemma 4?

✅

Yes, if you use 4B, 12B or 27B

Gemma 4 is stronger at every comparable size, with a simpler licence. From the 27B, the natural move is to Gemma 4 12B: better scores in a smaller model.

⏸️

Not yet, if it is fine-tuned and working

A fine-tune does not carry over; you would train again. If your deployment does its job, there is no rush.

📌

No, if you need the 270M

Or a variant that is still built on Gemma 3, such as ShieldGemma 2 or TranslateGemma.

# Gemma 3
model = "google/gemma-3-27b-it"      # lowercase b

# Gemma 4
model = "google/gemma-4-12B-it"      # capital B

Watch the capital B in Gemma 4 repository names. On Ollama the family name changes from gemma3 to gemma4.

The prompt format changed

Gemma 4 uses new turn markers and a real system role. Libraries and apps apply the right template for you, but hand-written Gemma 3 templates will not work.

Two new settings

Thinking mode, and how much detail each image gets. Both are worth setting deliberately.

Formats are explained on the chat page and in prompting; memory needs in the VRAM guide; the 12B has its own guide. Files are in the download hub.

Download

Getting Gemma 3

Still available from the usual places.

Hugging Face repositoryNotes
google/gemma-3-270m-itTiny; no Gemma 4 equivalent
google/gemma-3-1b-itText only, 32K context
google/gemma-3-4b-itImages, 128K context
google/gemma-3-12b-itA single consumer GPU
google/gemma-3-27b-itThe flagship
# Ollama
ollama pull gemma3:270m
ollama pull gemma3:12b
ollama run gemma3:27b

# Hugging Face (accept Google's terms on the model page first)
hf download google/gemma-3-27b-it

Plain gemma3 on Ollama points to the 4B. Setup is the same as for Gemma 4: see how to download, the install guide, the runtime selector and Mac setup. About 4-bit builds, see QAT builds; for serving, self-hosting.

Same era

Gemma 3n and the Gemma 3 variants

Gemma 3n was the on-device branch and the direct ancestor of Gemma 4's edge models. The variants below are specialised models from the same generation.

ModelReleasedSizesWhat it is for
Gemma 3nJune 26, 2025E2B, E4BOn-device models with audio; succeeded by Gemma 4 E2B and E4B
ShieldGemma 2March 10, 2025-Checking images for safety
MedGemmaMay 20, 2025; version 1.5 on January 13, 20264B, 27BMedical text and images
EmbeddingGemmaSeptember 4, 2025308MText embeddings; succeeded by EmbeddingGemma 2
VaultGemmaSeptember 13, 20251BPrivacy-preserving training
FunctionGemmaDecember 18, 2025270MA tiny model for calling tools
T5Gemma v2December 18, 2025270M, 1B, 4B pairsEncoder-decoder tasks
TranslateGemmaJanuary 15, 20264B, 12B, 27BTranslation

Dates and sizes from Google's Gemma release history; the one-line purposes are this site's summaries. All of these fall under the Gemma Terms of Use. Gemma 4's own relatives are on the models page.

FAQ

Gemma 3 questions

More answers on the full FAQ page.

Is there a Gemma 3.5 or Gemma 3.6?

No. Google's release history goes from Gemma 3 and Gemma 3n straight to Gemma 4; it lists no 3.5 or 3.6. If you saw "3.6" elsewhere, it probably referred to a different model family.

Is Gemma 3 still available?

Yes. The weights are still on Hugging Face, Kaggle and Ollama. Google's new work is going into Gemma 4, so do not expect improvements to Gemma 3.

Is Gemma 3 free?

The weights are free to download and commercial use is permitted, subject to the Gemma Terms of Use and its Prohibited Use Policy. It is not Apache 2.0.

Did Gemma 3 become Apache 2.0 when Gemma 4 launched?

No. Google's terms page still lists Gemma 3 under the Gemma Terms of Use and points to a separate licence for Gemma 4.

Why would anyone still use Gemma 3?

Three reasons: you need the 270M, you depend on a variant built on Gemma 3, or you have a fine-tuned deployment that works and is not worth retraining.

Which Gemma 4 model replaces Gemma 3 27B?

The Gemma 4 12B beats it on every test listed above while being less than half the size. If you have the hardware, the 26B A4B and 31B go further. See the model comparison.

Can Gemma 3 take audio or video?

No. Gemma 3 accepts text and, from the 4B up, images. Audio arrived with Gemma 3n and continues in Gemma 4's E2B, E4B and 12B.

How does Gemma 3 compare with other open models?

It has been overtaken. For current comparisons see Gemma 4 vs Qwen 3.5, and for costs the pricing page. Known gaps in the current generation are in limitations; responsible-use notes under safety.

Ready for the current generation?

Gemma 4 is stronger at every size and simpler to license.

Top '