Gemma 4 31B IT: architecture, context, and deployment tradeoffs

Google's dense open-weight Gemma 4: exact configuration, text and image scope, provider benchmark conditions, memory estimates and hosting limits.

By benchr Editorial Team · · · Changelog

Gemma 4 31B IT: architecture, context, and deployment tradeoffs
Open-weight configuration, hosted API availability, and deployment cost are separate records.

Google has published substantial specifications for Gemma 4 31B IT. The earlier availability-only version of this article incorrectly left those specifications out. This is the dense instruction-tuned variant: a text-and-image model whose open-weight deployment, Gemini API availability, and provider evaluations need to be read as separate contracts.

Identity and exact configuration

The Gemini API identifier is gemma-4-31b-it. Google's weight repository is google/gemma-4-31B-it; its spelling and capitalization differ from the API identifier. Do not substitute a repository name into a hosted API request.

Google's 31B instruction-tuned variant
PropertyPublished value
ArchitectureDense, 30.7B total parameters
Layers60
Open-weight context configuration262,144 tokens
Inputs and outputText and images in; text out. This variant has no native audio encoder.
LicenseApache-2.0

The model card abbreviates context as 256K. The Google-owned config.json records text_config.max_position_embeddings as the exact value above; the previous ledger rounded it to 256,000. That artifact setting does not establish a hosted service's maximum output or an account's usable quota. Those depend on the serving contract and runtime configuration. A separately confirmed maximum output remains absent from this record.

The family supports a system role, configurable thinking, and function-calling formats. Those model capabilities do not automatically provide a server's JSON-schema enforcement, caching API, or streaming implementation. Check the serving stack for those features rather than copying Gemini's entire feature matrix onto an open-weight model.

Plan memory around the complete workload

Google's loading table estimates 69.9 GB for BF16, 34.9 GB for SFP8, and 17.5 GB for Q4_0. The table includes a stated loading-overhead allowance. It still excludes additional context-cache and runtime needs, so fitting the listed weights into memory does not guarantee that a long-context request will fit.

Budget separately for loaded weights, KV cache, concurrent sequences, image processing, and the framework's working memory. Validate a short request before increasing context and concurrency one variable at a time. Quantization can change memory and output behavior; this article does not present a local throughput measurement or a hardware recommendation inferred from parameter count alone.

For the alternatives, the 26B A4B variant uses MoE computation and has a different full-weight footprint. Smaller audio-capable Gemma variants solve a different modality problem. Choosing the dense 31B model should follow your task evaluation and deployment budget.

Read Google's results with their conditions

Selected provider-published instruction-tuned results; no benchr replication
Evaluation31B IT resultWhat to keep explicit
MMLU Pro85.2Knowledge benchmark, not your application's success rate.
LiveCodeBench v680Keep the benchmark version and evaluation setup.
GPQA Diamond84.3Provider evaluation; not a verified research assistant workflow.
OmniDocBench 1.50.131Edit distance: lower is better. Do not turn this raw value into a percentage bar.

The model card also reports long-context retrieval and tool-oriented evaluations. Compare scores only when benchmark version, tools, reasoning settings, and scoring method align. The same card is a useful comparison with 26B A4B; unrelated vendor leaderboard figures may use different conditions.

Hosted access is not a paid token quote

Google's April 2 release notes announce both Gemma API identifiers. Its current pricing table lists Gemma 4 on the free tier and marks paid-tier access unavailable. A missing paid price does not mean a free, unlimited production endpoint. Quotas and availability still apply, and self-hosting has infrastructure and operating costs.

Use the local deployment references to plan a controlled evaluation, or check your hosted platform's current contract. Preserve the exact weights, quantization, prompt format, generation settings, and validation cases alongside any results. This page records published facts and deployment considerations, not a claim that benchr loaded or tested the weights.

Changelog

  • 2026-10-14 — Corrected the claim that Google had not published specifications. Added variant-specific architecture, exact open-weight context, evaluation context and memory planning; retained unknown hosted output limits.
  • July 29, 2026 — Added the official architecture, context, memory estimates, selected sibling results, deployment matrix, and practical acceptance plan.
  • July 28, 2026 — Published the initial availability record.

Sources and documentation review

Documentation review dates are recorded per source. No provider inference or independent benchmark replication was performed for this revision.

  1. Official Gemma 4 model card — read
  2. Google-owned exact 31B configuration — read
  3. Google memory estimates and their scope — read
  4. Gemini API availability announcement — read
  5. Hosted free-tier and paid-tier distinction — read