ArticleslgStudy

computer science

Gemma (language model)

Gemma (language model) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Gemma (language model) rather than just read about it. In short: Gemma is a series of source-available large language models developed by Google DeepMind. It is based on similar technologies as Gemini.

Gemma (language model) — main illustration
Gemma (language model) — illustration

Key takeaways

  • Gemma (language model) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Gemma (language model) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Gemma (language model) from memory before moving on to harder problems.

Reference excerpt

Gemma is a series of source-available large language models developed by Google DeepMind. It is based on similar technologies as Gemini. The first version was released in February 2024, followed by Gemma 2 in June 2024, Gemma 3 in March 2025, and the open-weights Gemma 4 in April 2026. Variants of Gemma have also been developed, such as the vision-language model PaliGemma and the model MedGemma for medical consultation topics.

History In February 2024, Google debuted Gemma, a collection of open weight LLMs that serve as a lightweight version of Gemini. The initial release came in two sizes: neural networks with two and seven billion parameters respectively. Multiple publications viewed this as a response to competitors such as Meta releasing source code for their AI models, and a shift from Google's longstanding practice of keeping its AI source code private. Gemma 2 was released on June 27, 2024, and Gemma 3 was released on March 12, 2025. On April 2, 2026, Google released Gemma 4 under the free and open-source Apache 2.0 license. In May 2026, a Financial Times investigation reported that an uncensored variant of Gemma 3 modified with Heretic, an open-source tool developed by Philipp Emanuel Weidmann, could generate instructions for weapons and malware, while Weidmann told the newspaper he had stripped Gemma 4's safeguards within 90 minutes of its release.

Overview Based on similar technologies as the Gemini series of models, Gemma is described by Google as helping support its mission of "making AI helpful for everyone". Google offers official Gemma variants optimized for specific use cases, such as MedGemma for medical analysis. Since its release, Gemma models have had over 150 million downloads, with 70,000 variants available on Hugging Face. Gemma 3 was offered in 1, 4, 12, and 27 billion parameter sizes with support for over 140 languages. As multimodal models, they support both text and image input. Google also offers Gemma 3n – smaller models optimized for execution on consumer devices like smartphones, laptops, and tablets. The latest generation of models is Gemma 4, released on April 2, 2026. It is available in four sizes: Effective 2B (E2B), Effective 4B (E4B), 26B Mixture of Experts (MoE), and 31B Dense. Gemma 4 supports multimodal input, including images and video across all models, with native audio input on the E2B and E4B models. Gemma 4's 31B Dense variant reached third place on Arena's text leaderboard, and the 26B variant reached sixth place. Gemma 4 12B was released on June 3, 2026 and features a unified multimodal architecture that processes images and audio without encoders.

Architecture Gemma 3 is based on a decoder-only transformer architecture with grouped-query attention (GQA) and the SigLIP vision encoder. Every model has a context length of 128K, with the exception of Gemma 3 1B, which has a context length of 32K. Quantized versions fine-tuned using quantization-aware training (QAT) are also available, offering sizable memory usage improvements with some negative impact on accuracy and precision.

Variants Google develops official variants of Gemma models designed for specific purposes, like medical analysis or programming. These include:

CodeGemma (2B and 7B): CodeGemma is a group of models designed for code completion as well as general coding use. It supports multiple programming languages, including Python, Java, C++, and more. DolphinGemma (roughly 400M): Developed in collaboration with researchers at Georgia Tech and the Wild Dolphin Project, DolphinGemma aims to better understand dolphin communication through audio analysis. However, no model or data have been publicly released. MedGemma (4B and 27B): Also based on Gemma 3, MedGemma is designed for medical applications like image analysis. However, Google also notes that MedGemma "isn't yet clinical grade". Developers at Tap Health in Gurgaon, India, have used MedGemma to enhance AI-assisted diabetes management applications. PaliGemma (3B, 10B and 28B, based on Gemma 2 with 2B, 9B and 27B, respectively): For machine vision and image analysis. ShieldGemma 2 (4B): Based on the Gemma 3 family, ShieldGemma is designed to identify and filter violent, dangerous, and sexually explicit images. TranslateGemma (4B, 12B and 27B): For machine translation.

Note: open-weight models can have their context length rescaled at inference time. With Gemma 1, Gemma 2, PaliGemma, and PaliGemma 2, the cost is a linear increase of kv-cache size relative to context window size. With Gemma 3, there is an improved growth curve due to the separation of local and global attention. With RecurrentGemma, the memory use is unchanged after 2,048 tokens.

See also List of large language models Lists of open-source artificial intelligence software

References

External links Official website

Illustrations

Gemma (language model) illustration

Worked examples

Example 1 — a first encounter with Gemma (language model)

Start with the simplest possible case. Write down what Gemma (language model) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Gemma (language model) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Gemma (language model) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Gemma (language model)

In research
Gemma (language model) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Gemma (language model) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Gemma (language model) is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2024 in artificial intelligence, 2024 software, Chatbots, so understanding it makes those chapters shorter.
In everyday life
Look for Gemma (language model) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Gemma (language model)” →

How to study Gemma (language model) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Gemma (language model) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Gemma (language model) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Gemma (language model) in simple terms?

Gemma is a series of source-available large language models developed by Google DeepMind. It is based on similar technologies as Gemini.

Why does Gemma (language model) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Gemma (language model)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Gemma (language model).

Tags

  • 2024 in artificial intelligence
  • 2024 software
  • Chatbots
  • Generative pre-trained transformers
  • Google DeepMind
  • Google software
  • Large language models
  • Multimodal interaction

Keep exploring