Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Gemma 4 26B A4B

by Google

Fast chat, code and image reading.

Text and agentsCommercial useRuns on 32 GB

Hugging FaceDemos

1. Commercial use

“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work”

Any use is allowed, paid products included; no fee and no credit line is required to use it.

ai.google.dev/gemma/docs/gemma_4_license

Checked against its official pages on Nov 23, 2026. Tap a verdict to see its source.How we checkedReport an error

What Gemma 4 26B A4B does

Gemma 4 26B A4B is an open text and image model by Google DeepMind that chats, writes code, reasons and reads pictures, built to answer fast. Only a small part of it (3.8B of 25.2B parameters) works on each step, so it runs almost as fast as a 4B model. The model files are on Hugging Face, free to use in paid products under the Apache 2.0 license.

What people use it for

Quick chat assistant on your server

Power support chats, assistants or writing tools where answer speed matters, without paying per request to a hosted model.

Read documents, charts and screenshots

Ask questions about a photo, a scanned page, a chart or an app screen, including text in many languages and handwriting.

Agents that call your tools

Let the model pick a function from your app (search, booking, database lookup) and fill in its inputs, as the core of an agent.

Write and fix code

Generate, complete and correct code locally, for example inside a private coding assistant.

Many languages

Answer users in 35+ languages out of the box; it was trained on text in over 140 languages.

Gemma 4 26B A4B popularity

1,811
likes on Hugging Face
4.6M
downloads, last 30 days
21
Hugging Face trending score

As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none.

Where to run Gemma 4 26B A4B

Through an API

Provider$ per 1M in / outToolsContext
Io Net (99.9% up, 24h)$0.067 / $0.29Yes262K
AkashML (97.2% up, 24h)$0.07 / $0.24Yes131K
DeepInfra (100% up, 24h)$0.07 / $0.34Yes262K
Makora (100% up, 24h)$0.09 / $0.28Yes256K
NextBit (100% up, 24h)$0.09 / $0.3Yes262K
OpenRouter$0.09 / $0.3Yes262K
Cloudflare (100% up, 24h)$0.1 / $0.3Yes256K
CoreWeave (99.7% up, 24h)$0.1 / $0.3No262K
PrimeIntellect (100% up, 24h)$0.1 / $0.36Yes262K
Parasail (100% up, 24h)$0.13 / $0.4No262K

As reported by each provider via Hugging Face Inference Providers and OpenRouter, checked Nov 26, 2026.

On your machine

Parameters

25.8B

Memory at 4-bit

about 15.5 GB

Our estimate: 0.6 GB per billion parameters, with room for the context.

GGUF builds

64 on Hugging Face

For llama.cpp, Ollama and LM Studio; e.g. ggml-org/gemma-4-26B-A4B-it-GGUF

MLX builds

19 on Hugging Face

For Apple silicon

Gemma 4 26B A4B license

Free to use, change and sell inside paid products under Apache 2.0. If you pass the model files on, include a copy of the license and mark the files you changed.

In a paid product
Yes

Any use is allowed, paid products included; no fee and no credit line is required to use it.

“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work” source

Ship the weights to users
With conditions

Shipping the weights or a fine-tuned copy needs a copy of the Apache 2.0 license and a note on changed files.

“You must cause any modified files to carry prominent notices stating that You changed the files” source

Work for clients
Yes

You may build and deliver client projects with it under the same Apache 2.0 terms.

“each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work” source

Alternatives

Gemma 4 26B A4B This page

1,811 likesApache 2.0

Qwen3.8-27B

Qwen · image-text-to-text

21.7K likesApache 2.0

Kimi-K3

moonshotai · image-text-to-text

12K likesCustom license

Llama-3.1-8B-Instruct

meta-llama · text-generation

9,102 likesLlama 3.1 license

Qwen3.8-Flash-Next

Qwen · image-text-to-text

7,502 likesCustom license

All text and agents models

Get started

Tell your AI assistant

“Run google/gemma-4-26B-A4B-it locally with the latest transformers (pip install -U transformers torch accelerate), load it with AutoProcessor and AutoModelForMultimodalLM (dtype="auto", device_map="auto"), put images before text, use temperature 1.0, top_p 0.95, top_k 64, and read answers through processor.parse_response.”

  1. Install the libraries.

    pip install -U transformers torch accelerate

    From huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md

  2. Load the model and its processor.

    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    MODEL_ID = "google/gemma-4-26B-A4B-it"
    
    # Load model
    processor = AutoProcessor.from_pretrained(MODEL_ID)
    model = AutoModelForMultimodalLM.from_pretrained(
        MODEL_ID,
        dtype="auto",
        device_map="auto"
    )
    

    From huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md

  3. Send a chat with apply_chat_template and generate; add enable_thinking=True when you want step-by-step reasoning.

    From huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md

Model id to use

OpenAI-compatible: base URL https://openrouter.ai/api/v1

google/gemma-4-26b-a4b-it

Mistakes to avoid

Loading it with old Gemma code or an old Transformers version
pip install -U transformers torch accelerate, then AutoProcessor plus AutoModelForMultimodalLM as in the model card

The model card says Gemma 4 needs the latest Transformers and shows only this loading code.

Picking it for the longest documents because it is fast
For long-document recall pick the dense 31B, which scored 66.4% against 44.1% on Google's 128k test

In Google's own long-context table this model scores much lower than the 31B.

Sending the model's earlier thinking back in the chat history
Keep only the final answers of earlier turns; keep the thinking only for tool-call turns

The card says earlier thoughts must not be added before the next user turn.

Putting the image after the question in the prompt
Put image content first, then the text

Google recommends this order for the best results with images.

Keeping sampling settings copied from another model
temperature=1.0, top_p=0.95, top_k=64

The card gives one standard setting for all uses.

Questions

Why is it called 26B A4B?

It has about 26B parameters in total, but only about 4B (3.8B) are active for each step, so it runs nearly as fast as a 4B model.

Can I use it in a paid app?

Yes. It is under Apache 2.0, which allows commercial use; keep the license text with any copies of the files you share.

Does it understand images and audio?

Images and video frames, yes. Audio no; only the E2B, E4B and 12B sizes take audio.

How long can the input be?

Up to 256K tokens for this size.