Google DeepMind has released Gemma 4 12B, a dense multimodal model that ditches traditional encoders for vision and audio, allowing data to flow directly into the LLM backbone. This design enables agentic workflows on consumer laptops with just 16 GB of RAM, under the permissive Apache 2.0 license.
Model Overview & Access
Gemma 4 12B is a 12-billion-parameter decoder-only transformer that natively processes text, images, audio, and video. It shares the same architecture as the larger Gemma 4 31B Dense model, bridging the gap between the edge-focused E4B and the 26B Mixture of Experts variant.
- Architecture: Unified, encoder-free decoder-only transformer.
- Modalities: Text, image, video, and native audio input.
- Hardware Requirement: 16 GB VRAM or unified memory; runs on consumer GPU laptops and Apple Silicon Macs.
- License: Apache 2.0, with open weights on Hugging Face and Kaggle.
- Inference Support: llama.cpp, MLX, vLLM, Ollama, SGLang, Unsloth, and LM Studio.
- Integration: Hugging Face Transformers, LiteRT-LM CLI, and an OpenAI-compatible local API server.
A dedicated Multi-Token Prediction (MTP) drafter model is also released to reduce inference latency on local hardware.
Architecture: Encoder-Free Design
Previous mid-sized Gemma models used separate Transformer encoders for vision (550M parameters) and audio (300M parameters). Gemma 4 12B eliminates them entirely.
- Vision Embedder (35M parameters): Raw images are split into 48x48 pixel patches, each projected to the LLM's hidden dimension with a single matrix multiplication. No attention layers are used; position is injected via a factorized X/Y coordinate lookup.
- Audio Wave Projection: Raw 16 kHz audio is sliced into 40 ms frames (640 values each), linearly projected into the same embedding space as text tokens. The LLM's existing Rotary Position Embedding (RoPE) handles the temporal sequence.
This unified weight space allows downstream fine-tuning (LoRA or full) to update vision, audio, and text processing in a single pass, reducing multimodal latency.
Capabilities & Performance
Google reports that the 12B model performs near the 26B MoE model on standard benchmarks, at less than half the memory footprint. Demonstrated capabilities include:
- Automatic Speech Recognition: Transcribes audio natively without external ASR.
- Agentic Reasoning: Runs multi-step workflows locally.
- Diarization: Distinguishes speakers in audio input.
- Video Understanding: Processes video frames alongside audio (demo used 313 frames at 1 FPS).
- Coding: Built a Gradio app using its own code generation via llama.cpp.
- Multimodal Agentic Workflows: Supported by the official Gemma Skills repository.
In Google's AI Edge Eloquent app, switching to Gemma 4 12B resulted in a 60%+ jump in overall quality.
How to Run Locally
- Google AI Edge Gallery (macOS): Sandboxed Python execution loop.
- Google AI Edge Eloquent (macOS): On-device dictation and editing.
- LiteRT-LM CLI: Exposes an OpenAI-compatible endpoint.
- Compatible Tools: Continue, Aider, OpenCode, Open WebUI, LM Studio, Ollama, and more.
Key Takeaways
The encoder-free design removes separate vision (550M) and audio (300M) encoders, replacing them with a 35M vision embedder and direct audio wave projection. This enables fine-tuning that updates all modalities simultaneously, approaching 26B performance at under half the memory, all on a 16 GB laptop. The model is Apache 2.0 licensed and supported by a broad ecosystem.