
AI model Google DeepMind
Gemma
Google DeepMind's Apache-2.0 open-weight Gemma 4 models, from on-device E2B to 31B, with text, image and audio input.
What it is
Gemma is Google DeepMind's family of open-weight models. The current generation, Gemma 4 (April 2026), comes in E2B, E4B and 12B dense models that accept text, image and audio, a 26B A4B mixture-of-experts model and a 31B dense model, with 128K to 256K context. Gemma 4 is released under Apache-2.0 and runs locally with tools like Ollama, LM Studio, llama.cpp and Transformers, free of charge through the Gemini API, or on Vertex AI in Google Cloud.
What it's useful for
Running a capable multimodal model on a laptop or phone, or fine-tuning a small open model for a specific task without license restrictions.
Key features
- Sizes from E2B and E4B (on-device) to 26B A4B MoE and 31B dense
- Text and image input on all sizes; audio on E2B, E4B and 12B
- 128K context on small models, 256K on larger ones
- Apache-2.0 license for Gemma 4
- Weights on Hugging Face and Kaggle; runs in Ollama, LM Studio, llama.cpp, MLX and vLLM
- Free use through Google AI Studio and the Gemini API
How to use it
pip install -U transformers torch accelerateCommands are copied from the official documentation. Check the docs for the latest version before running them.
Limitations to know
- Audio clips up to 30 seconds and video only as frames (up to 60 s at 1 fps)
- The 31B model needs about 70 GB of memory in BF16
- No paid Gemini API tier for Gemma, so production rate limits are those of the free tier
Alternatives
OpenAI's Apache-2.0 open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, for local and self-hosted use.
Microsoft's MIT-licensed Phi small language models (Phi-4 family) for reasoning, vision and multimodal tasks on modest hardware.
Meta's family of downloadable open-weight language models, including the multimodal mixture-of-experts Llama 4.
Cohere's Command model family for enterprise chat, RAG, tool use and reasoning, with Command A+ released as Apache-2.0 weights.
MCP servers for this
CreateWithAI Hub's own MCP server: tell your AI what you're building and it finds the tools, MCP servers and skills for the job.
Upstash's service that feeds current, version-specific library docs and code examples into coding agents.
MCP reference server with one tool that has a model work through a problem as numbered thoughts it can revise and branch.
Skills for this
Anthropic's public repository of example Agent Skills, the document skills, a skill template and the spec.
Curated GitHub list of skills, plugins, agents, status lines, hooks and tooling for Claude Code.
Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.
Related resources
Google's web workspace for trying Gemini models and getting a Gemini API key with a free usage tier.
Hugging Face's platform hosting over 3M models, 1M datasets and 2M Spaces in Git-based repos, with a Python client and hf CLI.
One Hugging Face token to call open models served by partner providers, with automatic failover and no markup.
Elastic-owned APIs for multilingual multimodal embeddings, reranking, URL-to-Markdown reading and web search, with an MCP server.