# Mission 1.3: Gemini or Gemma for the tax firm?

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/einsatz-1-3

Belongs to [Chapter 1: What AI is](https://llm.yoga/en/01-was-ist-ki.md).

Structure: the case, the explanation, a hands-on tool, check questions, wrap-up. The answers to all questions are collected at the end.

## The case

**Jeff**, partner at a tax firm:

> “We want an AI to summarize client documents. We’re not allowed to pass data to third parties. An acquaintance says: use Gemma instead of Gemini, it’s open source, so data protection is taken care of. Can I tell our professional chamber that?”

Both models come from Google. You can only reach Gemini through an interface (API) or Google products; Gemma you can download. “Open source” is the name for software whose components are published freely. Decide what you tell Jeff.

**Question 1 (decision):** What do you advise Jeff?

- A) Use Gemma, because with open weights data protection is taken care of.
- B) Use Gemini, because Google knows security better than a tax firm.
- C) Gemma in-house fits, but running and securing it stays with the firm.

## What’s behind it

In the end, a fully trained model is one big file with its parameters. The key question is: do you get this file or not?

**Gemini** is a closed model. Google runs it, and you can only reach it through an application programming interface (API) or through Google products. Your documents go to Google for that. In return you get extras like checking against Google Search (grounding), answers in a fixed, machine-readable format (JSON), or running code on Google’s servers. You pay per token, that is, per word piece of text.

**Gemma** has **open weights**. The firm downloads the parameters and runs the model on its own hardware. According to its own page, Google provides Gemma with open weights and permits responsible commercial use. The current generation, Gemma 4, comes in five sizes up to 31 billion parameters, under the Apache 2.0 license, which also permits commercial use. Running it means the weights sit in the memory of a graphics unit (GPU), which has to be big enough.

But open doesn’t mean everything is open. The training data, and often the training code, are missing. That’s why it’s more precise to speak of “open weights” rather than open source. And a local installation is only as secure as the computer it runs on.

For Jeff this means: Gemma fits his requirement, because the documents don’t leave the building. It doesn’t take care of data protection. The firm still has to sort out the legal basis, access control, deletion and purpose limitation.

### In more detail: and if it is a cloud model after all?

If you have a cloud provider process personal data, Article 28 of the GDPR, the EU’s General Data Protection Regulation, requires a data processing agreement. For providers outside the EU, the rules for transfers to third countries apply too (Articles 44 to 49). So a cloud service isn’t automatically forbidden if both are properly handled (chapter 2). Whether that’s enough for a tax firm is a legal question this course doesn’t answer.

The five sizes of Gemma 4 are called E2B, E4B, 12B, 31B and 26B A4B; B stands for billion parameters.

The same pattern as with Google applies to Claude (closed) and to Qwen, gpt-oss or Llama (open weights).

## Try it

**Sort: what speaks for which, and what is a misconception?**

**Task:** Seven sentences from Jeff’s meeting. Place each one: does it speak for Gemma, for Gemini, or is it a misconception?

Categories: for Gemma · for Gemini · misconception

1. The client documents must not leave the building.
2. With open weights, data protection is taken care of automatically.
3. The summaries should be checked against current results from Google Search.
4. With Gemma, the firm also gets the training data and can check what’s in it.
5. The model should run on a computer without an internet connection.
6. The firm doesn’t want to run its own hardware and would rather pay per use.
7. A model on the firm’s laptop is just as strong as a large cloud model.

## Check

**Question 2 (check question):** The firm’s IT has installed Gemma on a server in the building. What does the firm still have to sort out itself?

- A) Nothing more; a server in your own building is secure by itself.
- B) Just buy a license for commercial use from Google.
- C) Access to the server, where the results go, deletion and updates.

**Question 3 (check question):** Why is it more precise to say “open weights” rather than “open source” for Gemma?

- A) Because you only get the parameters, not the training data.
- B) Because Gemma is only free for non-commercial use.
- C) Because the weights are encrypted and only run on Google hardware.

**Question 4 (check question):** A colleague chimes in: “Gemini with a data processing agreement would work too.” What do you answer?

- A) No, cloud services are forbidden for personal data.
- B) Maybe, but that’s a separate legal review against Jeff’s requirement.
- C) Yes, with such an agreement the cloud is always allowed.

## Done

**What you can do now**

- You can explain the difference between closed and open weights using Gemini and Gemma.
- You push back on the misconception “open weights means data protection” and name what the firm has to sort out itself.
- When a customer tells you “The model is open source, so it’s privacy-compliant”, you ask where it runs, who can access it and where the results go.

### Two cards for review

**Card 1:** True or false? “If a model runs on a server in your own building, data protection is taken care of.”

**Card 2:** What does a tax firm get with Gemma that it doesn’t get with Gemini?

- A) grounding with Google Search
- B) the training data
- C) the parameters as a file for its own hardware

- [Next mission: Should we fill in the security questionnaire with AI?](https://llm.yoga/en/einsatz-2-1.md)
- [Read chapter 1](https://llm.yoga/en/01-was-ist-ki.md)

## Read more in the chapter

The full text from the chapter, with the reasoning, calculations and sources:

- [Open and closed weights: Gemini and Gemma](https://llm.yoga/en/01-was-ist-ki-3.md)
- [Generative AI, foundation models and LLMs](https://llm.yoga/en/01-was-ist-ki-2.md)
- [Why this needs graphics cards](https://llm.yoga/en/01-was-ist-ki-2.md)
- [Chapter 2: honest limits, data protection](https://llm.yoga/en/02-anwendungsfaelle-4.md)

## Answers: only reveal them after the learner has answered or explicitly asks

**Question 1:** The correct answer is C.
- A: The direction is right, the reasoning isn’t. Open weights only means the firm can download the parameters, the learned numbers that make up the model. Data protection only comes from how it’s run: where the model runs, who can access the computer, and where the results go.
- B: With Gemini, the documents go to Google. Whether that would be allowed with a data processing agreement is a separate legal review. It doesn’t fit Jeff’s requirement of “no data to third parties”.
- C, correct: With open weights, the documents don’t leave the building. In return, the firm gets only the model: it has to provide access control, updates and extra features itself, and a laptop-sized model is weaker than a large cloud model.

- Card 1: **for Gemma:** With open weights, the model runs on the firm’s own hardware, and the data doesn’t go to Google.
- Card 2: **misconception:** This is the sentence Jeff heard. Open weights only means you can download the parameters. Data protection comes from how it’s run: where the model runs, who has access, where the results go.
- Card 3: **for Gemini:** Grounding with Google Search is a built-in extra. With Gemma, the firm gets only the model, no services.
- Card 4: **misconception:** You get the finished parameters, but usually not the training data and often not the training code. That’s why “open weights” is the more precise term.
- Card 5: **for Gemma:** Running in a sealed-off environment without internet (air-gapped) is one of the reasons for open weights that a prep course for Google’s Generative AI Leader certification names.
- Card 6: **for Gemini:** Google runs the model, and you pay per token. With Gemma, hardware and electricity cost money, and running and updating it is up to the firm.
- Card 7: **misconception:** Locally, only what the hardware can carry will run, and a laptop-sized model is weaker than a large cloud model. Only a test with real documents shows whether it’s good enough for summaries.

**Question 2:** The correct answer is C.
- A: Local only means the data doesn’t reach a provider. A local installation is only as secure as the computer it runs on.
- B: Gemma 4 is under the Apache 2.0 license, and Google permits responsible commercial use. The real issue isn’t the license, it’s operation.
- C, correct: The firm still has to sort out the legal basis, access control, deletion and purpose limitation. On top of that come operation and updates, which Google would have taken care of with Gemini.

**Question 3:** The correct answer is A.
- A, correct: “Open source” suggests that everything the model was made from is out in the open. With language models you usually get only the finished result, the weights, and the training code is often missing too.
- B: That’s not true. Google explicitly permits responsible commercial use, and Gemma 4 is under Apache 2.0. The difference lies in what you get.
- C: The weights are an ordinary file that runs on your own hardware, for example with Ollama, a program that runs models on your own computer. That’s exactly what makes them interesting for Jeff.

**Question 4:** The correct answer is B.
- A: That’s too sweeping. A cloud service isn’t automatically forbidden if data processing (Article 28 of the General Data Protection Regulation) and transfers to countries outside the EU are properly handled.
- B, correct: So far, Jeff’s requirement is “no data to third parties”. Whether a cloud model with an agreement would be legally possible is something the firm clarifies with its legal advisers. As long as the requirement stands, only a model that runs in-house fits.
- C: The agreement is a precondition, not a free pass. For providers outside the EU, the rules for transfers to third countries apply too, and so far Jeff’s requirement rules out third parties entirely.

**Card 1:** **False.** Local only means the data doesn’t reach a provider. An installation is only as secure as the computer it runs on. The company still has to sort out the legal basis, access control, deletion and purpose limitation, and open weights don’t mean the training data is out in the open either.

**Card 2:** Correct: C, the parameters as a file for its own hardware Gemma has open weights: the firm downloads the parameters and runs the model itself, and the documents don’t leave the building. Gemini runs at Google and comes with services like grounding with Google Search. Neither of the two comes with training data.
