
Many companies want generative AI but cannot send their data to an external API: a bank's customer records, a hospital's reports, a manufacturer's design documents. Others want to fine-tune a model on their own material, or run it on a device with no network at all. For these cases you need a model whose weights you can download, host and change yourself. Gemma 4, Google's open-weight model family, is built for exactly that, from phones and laptops up to GPU servers.
This article explains what Gemma 4 is, how the family is structured, where it fits, when a hosted model is the better choice, and how it compares with other open-weight models.
What is Gemma 4?
Gemma 4 is the fourth generation of Gemma, a family of open-weight generative AI models developed by Google DeepMind. Google describes Gemma as built from the same research and technology as its Gemini models; Gemma 4 draws on the work behind Gemini 3.
The Gemma line started on 21 February 2024 with two small models, Gemma 2B and Gemma 7B. Google released Gemma 4 on 2 April 2026, calling it its most capable open model family to date. The family is multimodal, reasons with configurable thinking modes, supports function calling, and was pre-trained on more than 140 languages.
The biggest change for businesses is the licence. Earlier Gemma generations shipped under Google's own Gemma terms of use. Gemma 4 is released under Apache 2.0, a standard, commercially permissive open-source licence that legal teams already know.
How Gemma 4 works
A family of sizes for different hardware. Gemma 4 comes in five sizes, each aimed at a different deployment target:
- E2B and E4B: compact models for phones, edge devices and browsers. The "E" stands for effective parameters, a design that keeps memory use low on small devices. Both have a 128K-token context window.
- 12B: a unified, encoder-free multimodal model that runs on a well-equipped laptop, with a 256K-token context window.
- 26B A4B: a mixture-of-experts model. It has 26 billion parameters in total, but only around 4 billion are active for each token, which gives high throughput for its size.
- 31B: a dense model, the strongest in the family, intended for servers and fine-tuning. Both larger models offer a 256K-token context window.
Multimodal input. All Gemma 4 models accept text and images. The E2B, E4B and 12B models also take audio natively, which makes speech recognition and spoken commands possible on the device itself.
Open weights you run yourself. The weights are published on Hugging Face, Kaggle and Ollama. You can run them on your own GPUs with an inference server such as vLLM, on a laptop with Ollama or LM Studio, or on Google Cloud through Vertex AI, Cloud Run or GKE. Because you hold the weights, you can also fine-tune them on your own data.
Key features
- Apache 2.0 licence, permitting commercial use, modification and redistribution.
- Five sizes, from on-device E2B to the 31B dense model.
- Long context: 128K tokens on the edge models, 256K on the larger ones.
- Text, image and, on smaller models, audio input.
- Configurable thinking for multi-step reasoning when the task needs it.
- Native function calling for agents that use tools.
- Broad tooling support across Hugging Face, Ollama, vLLM, LM Studio and NVIDIA NIM.
Where Gemma 4 is used
- Private RAG systems: assistants that answer from internal documents, with the model and the data on company infrastructure.
- Regulated industries: finance, healthcare and the public sector, where data residency rules limit external APIs.
- On-device features: offline transcription, summarisation or image understanding in mobile and edge applications.
- Domain fine-tuning: adapting a model to a company's terminology, document formats or tone.
- Cost control at volume: high-volume classification and extraction where per-token API costs add up.
- Prototyping: running a model on a laptop during a workshop, before any infrastructure decision.
When to choose Gemma 4, and when not to
Choose Gemma 4 when:
- Data must stay on your own servers or devices.
- You want to fine-tune a model and own the result.
- The workload is high-volume and predictable, so running your own inference is cheaper than paying per call.
- You need a clear, standard open-source licence for a commercial product.
Look elsewhere when:
- You need the strongest available reasoning or coding quality and data policy allows a hosted API. Frontier models such as Claude, Google Gemini or OpenAI's GPT models are still ahead on the hardest tasks.
- The team has no capacity to run GPU infrastructure, monitoring and model updates. A managed API removes that work.
- Usage is low or unpredictable. Idle GPUs cost money; per-token pricing may be cheaper.
- You need information from after the model's training cutoff, which for Gemma 4 is January 2025, without adding retrieval.
Gemma 4 and its alternatives
| Model family | Developer | Licence | Best fit |
|---|---|---|---|
| Gemma 4 | Google DeepMind | Apache 2.0 | Self-hosting from phone to server, multimodal |
| Llama | Meta | Llama community licence | Large ecosystem, many fine-tuned variants |
| Qwen | Alibaba | Varies by model, many Apache 2.0 | Multilingual and coding workloads |
| Mistral | Mistral AI | Varies by model | European provider, efficient models |
| gpt-oss | OpenAI | Apache 2.0 | Text reasoning on self-hosted GPUs |
| Hosted APIs (Gemini, Claude, GPT) | Google, Anthropic, OpenAI | Commercial terms | Top quality without running infrastructure |
The choice between open-weight families usually comes down to licence terms, the sizes available for your hardware, and how well each model handles your language and tasks. Gemma 4's advantages are the Apache 2.0 licence, a size for almost every device class, and native audio on the smaller models. Run a short evaluation on your own data before committing; benchmark scores rarely match a specific use case. For how we take Gemma 4 into production, see Gemma 4 in Production: Cloud vs Self-Hosted vLLM Deployment Guide, and for the broader question of running models in-house, On-Premise LLM: When to Keep AI on Your Own Servers.
How we use Gemma 4 at Internative
Gemma 4 is our default recommendation when clients want open-weight AI they can fully control. We fine-tune it on client documents for private RAG systems, serve it with vLLM for production inference, and run it through Ollama on laptops to build quick prototypes during discovery workshops. Its permissive licence also makes it easier to ship into regulated industries than many models that are described as open but come with restrictive terms.
If you are considering a model that runs on your own infrastructure, our RAG and knowledge retrieval systems team can help you decide whether Gemma 4 fits and how to deploy it.
Frequently asked questions
What are the different versions of Gemma 4?
Gemma 4 comes in five sizes: E2B and E4B for phones and edge devices, a 12B multimodal model for laptops, the 26B A4B mixture-of-experts model, and the 31B dense model for servers. The smaller models have a 128K-token context window and the larger ones 256K.
What can Gemma 4 do?
Gemma 4 generates and summarises text, answers questions, writes code, understands images and, on the smaller models, audio. It supports reasoning with configurable thinking and function calling for agents. Because the weights are open, it can run offline and be fine-tuned on your own data.
Is Gemma the same as Gemini?
No. Gemini is Google's family of proprietary models, available through Google's apps and APIs. Gemma is a separate family of open-weight models built from the same research, which you can download and run yourself. Gemma models are smaller and designed for self-hosting.
Is Gemma 4 free?
Yes. The model weights are free to download and are released under the Apache 2.0 licence, which allows commercial use. Costs come from the hardware or cloud services you run it on, or from Google Cloud if you use a managed deployment.
Keep reading
The articles that follow this one.



