gemma-4-E4B-it
by google
Efficient 4B multimodal VLM with Per-Layer Embeddings for on-device AI
google/gemma-4-E4B-itmixpeek://image_extractor@v1/google_gemma4_e4b_v1Overview
Gemma 4 E4B is Google DeepMind's efficient multimodal model that uses Per-Layer Embeddings (PLE) to achieve the representational depth of a larger model while maintaining a compact inference footprint. With 4.5 billion effective parameters, it processes text, images, and audio with a 128K token context window, making it one of the most capable small models available.
On Mixpeek, Gemma 4 E4B powers lightweight multimodal understanding tasks including scene captioning, visual question answering, and document analysis where you need strong accuracy without the compute overhead of larger models.
Architecture
Decoder-only transformer with hybrid attention interleaving local sliding-window and full global attention. Uses Per-Layer Embeddings (PLE) that feed a secondary embedding signal into every decoder layer, enabling 4.5B effective parameters from a 2.3B-active compute footprint. Final layer always uses global attention.
Mixpeek SDK Integration
// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so gemma-4-E4B-it runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
"https://api.mixpeek.com/v1/namespaces/ns_your_namespace/documents/upsert",
{
method: "POST",
headers: {
Authorization: "Bearer API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
collection_id: "col_your_collection",
documents: [
{
document_id: "asset-00412",
// The model produces text, so it lands in payload. Give the
// collection a text vector index and embed that text to make it
// searchable rather than only filterable.
payload: { extracted_text: modelOutput, source_key: "archive/2026/asset-00412" },
vectors: { "multimodal-embedding": embeddingOfModelOutput },
},
],
}),
},
);
// Managed alternative, if this exact model is not the requirement:
// universal_extractor@v1 runs google/gemini-embedding-2
// (3072-d) over a bucket, with no inference of your own.Capabilities
- Multimodal input: text, image, and audio understanding
- 128K token context window
- Built-in thinking mode for step-by-step reasoning
- Per-Layer Embeddings for compute-efficient inference
- Fits under 1.5 GB with 2-bit quantization
Use Cases on Mixpeek
Benchmarks
| Dataset | Metric | Score | Source |
|---|---|---|---|
| AIME 2026 | Accuracy | 42.5% | Google Gemma 4 technical report |
| MMLU Pro | Accuracy | ~55% | Gemma 4 E4B model card |
Performance
4.5B effective params via PLE: only 2.3B active at runtime
Common Pipeline Companions
Explore on Mixpeek
Compare alternatives in this category
Hand-picked tools & platforms compared
Deep-dive technical guide
See how Mixpeek runs models as extractors
Store & search embeddings at scale
Usage-based pricing for pipelines
Compare models, APIs & infrastructure
Specification
Research Paper
Gemma 4 model overview
arxiv.orgBuild a pipeline with gemma-4-E4B-it
Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.
Run it on your own data, free