open-model guide
Menu

Model / Google DeepMind

Gemma 4 26B A4B

Recipes and explanations are research notes, not task-tested. Numbers show their own evidence status.

Publisher: Google DeepMind

Already present in the private sample. A mixture of experts reduces computation per token while retaining more weights.
Source: Workspace local system-command check · Google DeepMind

What it makes possible: Text output; Text and image input; Reasoning; Tool use.

Is it relevant to me?

Use your plan answers, or choose memory and platform here. Numbers below describe the reviewed planning profile.

20.29–26.345GiB total at 32,768 context tokensestimated

Planning allocation, including the operating system and other apps. Actual memory use needs a check.

Memory / upper allocation
GiB24 GiB limit
Weights
13.97 GiB
Context cache
0.82–6.875 GiB
Runtime
1.5 GiB
OS + other apps
4 GiB

Planning range, not measured RAM. Assumes FP16 cache and text only. Mapped weights, cache allocation, engine, batch size and GPU limits can change use. Reserve values are our assumptions. Gemma K/V sharing could reduce cache further. Do not raise system GPU limits from this estimate.

Source: Google DeepMind · Workspace local system-command check
Memory formula and units

KV efficient bytes = 2(K,V) × 2(FP16 bytes) × [5 full layers × 32768 tokens × 2 heads × 512 dimensions + 25 sliding layers × 1024 tokens × 8 heads × 256 dimensions]. Upper allocation replaces 1024 by 32768. Total GiB = file bytes / 1073741824 + KV bytes / 1073741824 + recurrent allowance + 1.5 runtime + 4 OS/other apps.

File sizes marked GB use 1000000000 bytes. Memory estimates use GiB, 1073741824 bytes. Treat advertised 24 GB unified memory as 24 GiB for these planning examples; measure actual available memory before use.

Variants and sizes.

15GB

Installed or selected model file

verified
262,144

Model context limit, tokens

verified
Exact file identities. Memory applies at the reviewed configured context, with the stated runtime and operating-system reserves.
VariantFormatFile sizeConfigured contextMemory estimate
gemma4:26b-a4b-it-qat verifiedQAT Q4_0 verified15 GB verified32,768 provisional20.29–26.345 GiB estimated
gemma4:26b-32k verifiedQ4_0 verified15 GB verifiedUnknown unknownAlias context and identity need confirmation. unknown
File identity, sizes, revision and settings

gemma-qat-local

Tag
gemma4:26b-a4b-it-qat
verifiedSource: Workspace local system-command check · Ollama
Format
QAT Q4_0
verifiedSource: Workspace local system-command check · Ollama
Size
Approximate local file gb
15
Current registry display gb
16
verifiedDated observations disagree. Display units, packaging or revision may differ. Do not silently replace the installed file with a new pull.Source: Workspace local system-command check · Ollama
Digest
Not established
unknownThe installed file digest was not supplied. The current catalogue displays 2dd70431afed, which is not proof of the installed digest.Source: Ollama
Context override
32768
provisionalExplicit recipe setting. The installed base tag default was not supplied.

gemma-32k-local-alias

Tag
gemma4:26b-32k
verifiedSource: Workspace local system-command check
Format
Q4_0
verifiedSource: Workspace local system-command check
Size
Approximate local file gb
15
verifiedSource: Workspace local system-command check
Context override
Not established
unknownThe alias name suggests 32K, but the brief only explicitly confirms num_ctx for the gpt-oss alias. Inspect its Modelfile before treating it as a 32K guarantee.Source: Workspace local system-command check
Availability
Installed local alias, not a universally downloadable Ollama library tag.
verifiedSource: Workspace local system-command check

Setups that use it.

Existing Mac: Ollama with Gemma 4 QAT

Start here only when the already installed model leaves enough memory during ordinary work. No new model download is needed in the private sample.

Inspect this setup →

Licence and openness.

Name
Apache License 2.0
Spdx
Apache-2.0
Url
https://gemma.ai/resources/apache-2/
verifiedSource: Google DeepMind
Downloadable weights under Apache-2.0. This does not establish that the training data and complete training process meet the OSI Open Source AI Definition.
verifiedSource: Google DeepMind
Commercial use and modification are permitted under Apache License 2.0. Preserve the licence, applicable notices and modification notices when redistributing. No trademark grant.
verifiedSource: Google DeepMind
Control by layer in a reviewed setup
Model
Owner or operator
The user holds downloaded files; the publisher maintains future releases.
Source: Google DeepMind
Model files held
Yes
Source: Google DeepMind
Software licence
Apache License 2.0
provisionalSource: Google DeepMind
Openness
Open weights. Complete training openness is not established.
Source: Google DeepMind
Where data goes
Inference uses local source text.
Source: Google DeepMind
Who can switch off or change
The user can keep a downloaded revision. Publishers can change future downloads.
Source: Google DeepMind
Offline after setup
Yes
Source: Google DeepMind
Commercial use
Apache-2.0 permits commercial use with notices.
Source: Google DeepMind
Upkeep
Keep the file identity and licence. Retest changed files.
Way out
Keep reference files and use a compatible runtime.
Infrastructure
Owner or operator
The user controls the Mac; Apple controls macOS and firmware.
Source: Workspace local system-command check
Model files held
Yes
Source: Workspace local system-command check
Software licence
Proprietary macOS, firmware and device terms.
provisionalSource: Workspace local system-command check
Openness
Closed infrastructure layer. Some OS components have open licences; the whole stack is not open.
Source: Workspace local system-command check
Where data goes
Text stays on the device in this local recipe. Sync or backup copies need separate checks.
Source: Workspace local system-command check
Who can switch off or change
The user can stop local inference. Apple controls future OS and driver changes.
Source: Workspace local system-command check
Offline after setup
Yes
Source: Workspace local system-command check
Commercial use
The exact macOS agreement was not inspected. Model and runtime commercial permissions are recorded separately.
Source: Workspace local system-command check
Upkeep
Keep the operating system and disk healthy.
Way out
Copy files to another owned device.
Runtime
Owner or operator
The user runs Ollama.
Source: Ollama
Model files held
Yes
Source: Ollama
Software licence
MIT
provisionalSource: Ollama
Openness
Open-source inference engine.
Source: Ollama
Where data goes
The local process sees prompts and generated text.
Source: Ollama
Who can switch off or change
The user controls the installed version. Maintainers control future releases.
Source: Ollama
Offline after setup
Yes
Source: Ollama
Commercial use
MIT permits commercial use with notices.
Source: Ollama
Upkeep
Record engine version, cache settings and context.
Way out
Use the same compatible GGUF or reference weights in another runner.
Application
Owner or operator
The user runs the Ollama CLI.
Source: Ollama
Model files held
Yes
Source: Ollama
Software licence
MIT
provisionalSource: Ollama
Openness
Open-source interface. Underlying macOS remains closed.
Source: Ollama
Where data goes
The CLI talks to the local Ollama process on loopback. Cloud models and tools are off.
Source: Ollama
Who can switch off or change
The user controls the local copy and settings; maintainers control future releases.
Source: Ollama
Offline after setup
Yes
Source: Ollama
Commercial use
MIT permits commercial use with notices.
Source: Ollama
Upkeep
Keep prompts, output copies and versions. Manage any API key.
Way out
Save plain-text summaries and prompts. Remove credentials or change the selected model.

Evidence, with its limits.

Hardware fit

20.29–26.345 GiB at 32,768 context tokens. Planning estimate, including other apps.

Planning range, not measured RAM. Assumes FP16 cache and text only. Mapped weights, cache allocation, engine, batch size and GPU limits can change use. Reserve values are our assumptions. Gemma K/V sharing could reduce cache further. Do not raise system GPU limits from this estimate.Source: Google DeepMind · Workspace local system-command check
estimated

Task suitability

Not established
The exact recipe has no five-text English/Greek summary result. Publisher capabilities and other-machine speeds do not establish this.
unknown

Expected speed

Not established
Measure the exact recipe on your texts. External and historical examples are in the model record.
unknown

Licence

Name
Apache License 2.0
Spdx
Apache-2.0
Url
https://gemma.ai/resources/apache-2/
Source: Google DeepMind
verified

Offline data flow

The documented local mode does not need hosted inference after setup. Confirm the selected endpoint and optional tools.
Source: Ollama
Publisher
Google DeepMind
verifiedSource: Google DeepMind
Release date
Not established
unknownThe official model log lists 31 March 2026. The launch announcement is dated 2 April 2026. Exact first public availability needs reconciliation.Source: Google DeepMind · Google
Announcement date
2026-04-02
verifiedSource: Google
Parameters
Total billions
25.2
Active billions
3.8
Marketing name total billions
26
Marketing name active billions
4
verifiedThe vision encoder is additional. The marketing name is rounded. All expert weights still need storage.Source: Google DeepMind
Context tokens
262144
verifiedSource: Google DeepMind
Language claim
The card reports pretraining in over 140 languages and out-of-box support for over 35.
Publisher scope, not a Greek summary test.Source: Google DeepMind
Greek summary quality
Not established
No exact QAT Q4_0 plus Ollama English/Greek long-summary test was found. Run the five-text check.
Capabilities
  • Text output
  • Text and image input
  • Reasoning
  • Tool use
Source: Google DeepMind
Family overview
Gemma 4 includes E2B and E4B for smaller devices, a 12B model, the 26B A4B mixture of experts, and a dense 31B model. All accept text and images. E2B, E4B and 12B also accept audio. The small models have 128K context; the larger models have 256K. Effective and active parameter labels mean different things. These recipes use text only.
Source: Google DeepMind
Limits
A 15 GB file leaves little room for context, the runtime and other apps on 24 GB. Long-context capacity on the card does not prove local fit or faithful summaries.
Source: Workspace local system-command check · Google DeepMind
Download change memory
New registry display gb
16
Added gib if decimal
0.931
If the new file is 1 decimal GB larger, add 1000000000 / 1073741824 = 0.931 GiB to both memory bounds. Display labels are rounded.Source: Ollama · Workspace local system-command check
Speed
Current exact setup
Not established
unknownNo current measurement was run or found for this exact installed file, engine and machine.
Historical
Recency
historical
Measurement date
2026-08-02
Generation tokens per second
75
Prompt tokens per second
1281
Context tokens
32768
Quantization
QAT
Hardware
24 GB M5 Pro Mac
verifiedS7 reports an earlier measurement. Runtime version, exact file hash and full method are missing. It does not test the present setup.Source: Workspace research citing local-ai/reference.md
Public example
Recency
external measurement
Generation tokens per second
48.2
Hardware
Mac mini M6, 32 GB, 12-core GPU
Runtime application
LM Studio, QAT model
Date
2026-10-03 to 2026-10-04
Workload
English prose, median of three runs, max 600 output tokens, temperature 0.7, reasoning off
verifiedReported by Hans-Dieter Zucht with runs by Argus. Found through LLMCheck, CC BY 4.0. A selected paraphrased fact; no table copied. Exact backend version is not stated. This is not an M5 Pro Ollama result.Source: Hans-Dieter Zucht, runs by Argus (Claude Opus 5.5) · LLMCheck

What changed.

Setup ids
  • mac-ollama-gemma
  • mac-ollama-gpt-oss
From version
0.35.0
verifiedSource: Workspace local system-command check
To version
Version
0.40.18
Release date
2026-11-24
verifiedSource: Ollama
Reviewed stable tags
  • v0.35.1
  • v0.40.0
  • v0.40.1
  • v0.40.2
  • v0.40.3
  • v0.40.4
  • v0.40.5
  • v0.40.6
  • v0.40.7
  • v0.40.8
  • v0.40.9
  • v0.40.10
  • v0.40.11
  • v0.40.12
  • v0.40.13
  • v0.40.14
  • v0.40.15
  • v0.40.16
  • v0.40.17
  • v0.40.18
verifiedReviewed stable release bodies by semantic version, excluding release candidates. The API dates are not monotonic: 0.40.0 is dated before 0.35.0. Do not invent a chronological release sequence.Source: Ollama
Why it changes the choice
An update can change the engine, model artifact and memory behavior. Save the existing baseline before updating; repeat the same texts after it.
Relevant notes
  • 0.40.0 makes supported Apple Silicon architectures use MLX by default and names Gemma 4. This does not establish that every installed artifact or gpt-oss uses that path.
    Source: Ollama
  • 0.40.2 says older downloaded models are upgraded in the background on first use for llama.cpp performance and compatibility. Record the artifact before and after.
    Source: Ollama
  • 0.40.12 reports faster Gemma 4 prompt processing on Apple Silicon. No exact speed gain for this file or Mac is given.
    Source: Ollama
  • 0.40.14 reports faster MLX top-k sampling for large vocabularies. No task-specific improvement is established.
    Source: Ollama
  • 0.40.16 changes the Responses endpoint to respect truncation and avoid silent default truncation. This applies to that API path, not proof of changed CLI behavior.
    Source: Ollama
  • 0.40.17 adds concurrent serving on Apple Silicon and changes thinking controls. Keep concurrency at one for the 24 GB recipes and retest the effective thinking setting.
    Source: Ollama
  • 0.40.18 updates llama.cpp to b12651 and refactors MLX setup. Its named Metal speed work targets Inkling, so do not claim a Gemma or gpt-oss speed gain from it.
    Source: Ollama
Gpt oss specific gain
Not established
No named gpt-oss-on-Mac speed improvement or exact backend migration was established from these stable release bodies. Inspect the actual runtime and measure after updating.
Decision
An update is worth testing for Gemma prefill and compatibility. It is not a measured improvement on the sample setup. No update was installed in this task.

Trace the claims.

Sources and attribution

Source addresses are selectable text. This guide makes no external requests.

  • Gemma 4 26B A4B model card

    Google DeepMind · Read 2026-11-25

    https://huggingface.co/google/gemma-4-26B-A4B-it

  • Gemma model release log, lists 31 March

    Google DeepMind · Read 2026-11-25

    https://gemma.ai/models/releases/

  • Gemma 4 launch announcement, dated 2 April

    Google · Read 2026-11-25

    https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/

  • Apache License 2.0 for Gemma 4

    Google DeepMind · Read 2026-11-25

    https://gemma.ai/resources/apache-2/

  • Gemma 4 26B A4B architecture configuration

    Google DeepMind · Read 2026-11-25

    https://huggingface.co/google/gemma-4-26B-A4B-it/raw/4d7ae4984b7db7de8f8457170b3f1a419ee76d52/config.json

  • Mac facts supplied in the project brief, checked 25 November

    Workspace local system-command check · Read 2026-11-25 · Private local evidence

    Workspace file, not published

  • Gemma exact QAT tag and current manifest display

    Ollama · Read 2026-11-25

    https://ollama.com/library/gemma4:26b-a4b-it-qat

  • S7 section 5: report of 2 August 2026 measurements

    Workspace research citing local-ai/reference.md · Read 2026-11-25 · Private local evidence

    Workspace file, not published

  • Mac mini M6 speed session, 3 to 4 October 2026

    Hans-Dieter Zucht, runs by Argus (Claude Opus 5.5) · Read 2026-11-25

    https://github.com/HDZucht/Mac-Mini-M6-LLM-benchmarks

  • Apple Silicon LLM Benchmark Database, version 2026-11-18

    LLMCheck · Read 2026-11-25

    https://llmcheck.net/data/

    LLMCheck, Apple Silicon LLM Benchmark Database, CC BY 4.0. Selected facts paraphrased; no table reproduced.
  • Ollama CLI and multiline text

    Ollama · Read 2026-11-25

    https://docs.ollama.com/cli

  • Ollama local operation, context and memory settings

    Ollama · Read 2026-11-25

    https://docs.ollama.com/faq

  • Ollama cloud operation and local alternative

    Ollama · Read 2026-11-25

    https://docs.ollama.com/cloud

  • Ollama MIT licence

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/blob/main/LICENSE

  • Ollama 0.40.18 release notes

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/releases/tag/v0.40.18

  • Stable release notes, 0.35.1 through 0.40.18

    Ollama · Read 2026-11-25

    https://api.github.com/repos/ollama/ollama/releases?per_page=100

  • Ollama 0.40.0 release notes

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/releases/tag/v0.40.0

  • Ollama 0.40.2 release notes

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/releases/tag/v0.40.2

  • Ollama 0.40.12 release notes

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/releases/tag/v0.40.12

  • Ollama 0.40.14 release notes

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/releases/tag/v0.40.14

  • Ollama 0.40.16 release notes

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/releases/tag/v0.40.16

  • Ollama 0.40.17 release notes

    Ollama · Read 2026-11-25

    https://github.com/ollama/ollama/releases/tag/v0.40.17

Last reviewed.

2026-11-25
verifiedSource: George Kaldelis
Recheck prices, served model availability, retention terms and stable tool releases before showing a recommendation. Retest after changes. Do not silently replace a dated claim.
Back to models