ModelsReviewed · Google

Gemma 4 31B-it

Gemma 4 31B-it is Google DeepMind's open-weights, instruction-tuned model for developers and researchers who want to run a large text-and-image model themselves, and its main catch is that the card gives no memory, speed or cost figures and its benchmark numbers are the publisher's own. Technically, it is a dense 30.7B-parameter transformer with 60 layers, a 256K-token context window, text and image input (video as sampled frames, no audio), text output and an optional thinking mode.

Researched 12 Nov 2026

In short.

Gemma 4 31B-it is Google DeepMind's open-weights, instruction-tuned model for people who want a large, self-hosted assistant that reads text and images, and its main catch is that the captured card gives no memory, speed, price or independent test figures, so whether a given machine can run it is unknown. Technically, the card describes a dense 30.7B-parameter model with 60 layers, hybrid sliding-window and global attention, a 256K-token context window, an optional thinking mode and native function calling. Its benchmark table is the publisher's own, and the methods behind it are referenced but not captured. Nothing was run or tested in preparing this report.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is the single captured text file selected-page.txt (27,963 bytes), which is the README.md for google/gemma-4-31B-it at commit 842da3794eaa0b77d5f08bae87a17459d91ff475 on Hugging Face. It includes the YAML front matter, the card text, the benchmark table, the code snippets, the usage and best-practice sections, the model data, the ethics and safety text, the limitations and the citation block. Related notices inside the file are the Apache 2.0 licence metadata and the license_link to the Gemma 4 licence page. The README declares Apache 2.0, but the linked licence text was not captured, so its complete conditions remain unknown. Exclusions: linked pages (the Hugging Face collection, GitHub, the launch blog, the documentation, the arXiv technical report, the licence page itself, the Responsible Generative AI Toolkit, Google's AI principles and policy PDF, and the sample image and video files) and the other folders in the repository, including the model weights, configuration files and the other size variants. Untested behaviour: no code was run; the loading and generation snippets, the benchmark figures, the safety claims, the thinking and multimodal behaviour, memory use and speed were not reproduced or measured.

The overview

Identity

This is the model card (README.md) for google/gemma-4-31B-it on Hugging Face. It describes the instruction-tuned version of the 31B model in the Gemma 4 family, which the card says is built by Google DeepMind. The card's metadata lists the base model as google/gemma-4-31B, the library as transformers and the pipeline as image-text-to-text. The family has five sizes: E2B, E4B, 12B, 26B A4B and 31B. The 31B is the dense model in that list, as opposed to the mixture-of-experts (MoE) 26B A4B.

The captured text is the card only. The model weights, configuration files, tokenizer and the other size variants were not captured. The card gives no release date for this revision. The captured copy is pinned to commit 842da3794eaa0b77d5f08bae87a17459d91ff475 in the source URL, so the text can be matched to that version.

Assessment

The card is substantive. It gives an architecture table, a benchmark table covering text, vision, audio and long-context tasks, loading and generation code, recommended sampling and thinking settings, and a limitations section. It is a real model description, not a marketing stub.

The main weakness for decision-making is what is missing. The card does not give memory or disk requirements, speed figures, pricing, the evaluation harness or prompts behind the benchmarks, or whether the Gemma 4 rows were run with thinking on. Only the Gemma 3 column is labelled 'no think', so the conditions for the Gemma 4 columns are unclear. The scores should be read as the publisher's reported results, not as independent measurements. The card is useful for shortlisting and understanding design choices, but it is not enough on its own to choose hardware or to predict performance on your tasks.

Users

The most likely readers are developers and engineers who want an open-weights multimodal model to run locally or on their own servers. The card lists intended uses including text generation, coding, chatbots, text summarisation, image data extraction, NLP and vision-language research, and knowledge exploration.

Teams that need document or screen understanding may find the 31B relevant. The card lists OCR (including multilingual), document and PDF parsing, chart comprehension, handwriting recognition and UI understanding, and it recommends higher visual token budgets for OCR and document parsing.

The 31B is a poor fit for some needs. The card says audio input is available only on E2B, E4B and 12B, so the 31B cannot take audio. For phone and edge deployment, the card points to E2B and E4B. The card places the 31B among consumer GPUs and workstations, but it does not say which GPU or how much memory is needed.

Capabilities

Reasoning: the card describes a configurable thinking mode in which the model reasons step by step before answering. Reported results for the 31B include GPQA Diamond 84.3%, AIME 2026 without tools 89.2%, MMLU Pro 85.2%, and HLE at 19.5% without tools and 26.5% with search. The card does not say whether these figures were measured with thinking on.

Coding and agents: the card lists native function-calling support for structured tool use. Reported results include LiveCodeBench v6 at 80.0%, a Codeforces ELO of 2150 and Tau2 at 76.9% (labelled 'average over 3'; the card does not explain what the three represent). The card does not show how these tool-use results map to real applications.

Vision and documents: reported results include MMMU Pro 76.9%, MATH-Vision 85.6%, MedXPertQA MM 61.3% and OmniDocBench 1.5 at 0.131 average edit distance (lower is better). The card supports object detection, document and PDF parsing, screen and UI understanding, charts, OCR, handwriting and pointing, at variable aspect ratios and visual token budgets.

Long context and language: reported MRCR v2 8-needle at 128K averages 66.4%, and the card states a 256K-token context window for the 31B. Reported MMMLU is 88.4%. The card says the model has out-of-the-box support for 35+ languages and was pre-trained on 140+ languages.

Limits on inputs: the 31B takes text and images. Video is handled as sampled frames, with the card's guidance of up to 60 seconds at one frame per second. Audio is not supported on the 31B.

Using it

Requirements

Software: the card says to use the latest version of Hugging Face transformers, with torch and accelerate installed. The image example also needs torchvision, and the video example needs torchvision and librosa. The card gives no minimum Python, transformers or torch version, so the exact versions needed are unknown.

Hardware: the card gives no VRAM, system RAM, disk size, GPU model or precision and quantisation requirements for the 31B. The card's loading code passes dtype='auto' and device_map='auto'. How the weights are actually allocated across devices and how much memory they use were not verified, so the memory needed is unknown and must be measured on your own machine.

Access and format: the captured text does not say whether downloading the weights needs a logged-in Hugging Face account or accepted terms, or which file formats are shipped. These are unknown.

Mechanism

Attention: the card says the model interleaves local sliding-window attention with full global attention, and that the final layer is always global. For the 31B the sliding window is 1024 tokens. The card says this design keeps speed and memory use low while still supporting long-context tasks.

Long-context memory: the card says global layers use unified Keys and Values and Proportional RoPE (p-RoPE) to save memory on long contexts. It does not explain these techniques further. The 31B table lists 60 layers, a 262K vocabulary, a vision encoder of about 550M parameters and no audio encoder.

Thinking: thinking is switched on by putting the <|think|> token at the start of the system prompt. The model then writes its reasoning between '<|channel>thought' and '<channel|>', followed by the final answer. For the 31B, if thinking is disabled, the model still emits an empty thought block. In multi-turn chat, earlier thinking should not be sent back, except in tool-call turns.

Images and budgets: the card recommends placing images before text in the prompt. Visual token budgets are 70, 140, 280, 560 or 1120 tokens per image. Lower budgets suit classification and captioning; higher budgets suit OCR and small text. The card does not measure how these budgets trade accuracy against speed for the 31B.

Setup

Install the packages with pip install -U transformers torch accelerate, as the card shows.

Load the processor and model with AutoProcessor.from_pretrained and AutoModelForMultimodalLM.from_pretrained, using the model ID google/gemma-4-31B-it, dtype='auto' and device_map='auto'. The card does not give the download size.

Build a messages list with a system message and a user message. The card's example uses the system message 'You are a helpful assistant.' and the user message 'Write a short joke about saving RAM.'

Call processor.apply_chat_template with tokenize=True, return_dict=True, return_tensors='pt', add_generation_prompt=True and enable_thinking set to True or False. Then call model.generate with max_new_tokens (512 or 1024 in the examples), decode only the newly generated tokens and pass the result to processor.parse_response.

Sampling: the card recommends temperature 1.0, top_p 0.95 and top_k 64 for all use cases. Its snippets do not pass these values to generate, so the card does not show how they are applied. Whether the library's defaults match is unknown.

Example

Text: the card's joke prompt runs with enable_thinking=False and max_new_tokens=1024. The card does not show the expected output.

Image: the card passes a sample image URL (GoldenGate.png) with the question 'What is shown in this image?', with the image placed before the text and max_new_tokens=512. Video: the card passes a sample .mp4 URL with the instruction 'Describe this video.' The sample files are external and were not captured.

The card's audio example uses google/gemma-4-E2B-it, not the 31B, so it does not apply to this model.

None of these snippets was run for this report. Output quality, speed and memory use for the 31B are unknown.

Assessment & evidence

Limitations

The card's own limitations: the pre-training data has a cutoff of January 2025; the model may generate incorrect or outdated facts; it relies on statistical patterns and may lack common sense; it may miss nuance, sarcasm and figurative language; open-ended or highly complex tasks may be difficult; output quality depends on the prompt and the context supplied; training-data bias can appear in outputs; and the model can be misused to produce false or harmful text.

Safety: the card says Gemma 4 went through safety evaluations, reports 'minimal policy violations' across text-to-text and image-to-text tests, and says it improved on Gemma 3 while keeping unjustified refusals low. It does not give the numbers or methods. It also says all testing was run without safety filters. The card asks developers to add content-safety safeguards for their own products.

Scope limits for the 31B: no audio input; video is limited to about 60 seconds at one frame per second; the benchmark methods are not captured; the card provides no 31B-specific fine-tuning procedure; and the captured text says nothing on quantised variants or failure modes beyond the general list above. These are unknown.

Reasoning

The practical case for considering the 31B is that it accepts text and image input (with video handled as frames) and has a 256K-token context window, and the publisher reports strong results across reasoning, coding, vision and long-context rows. Against that, the card gives no hardware requirements, and the captured README provides no independent verification of its task performance. Whether independent testing exists elsewhere is unknown. These strengths therefore have to be weighed against unknown running costs and unconfirmed results on your own work.

Nothing in the captured text says the model is deprecated, abandoned or replaced. The card links to a launch blog, documentation and a 2026 technical report that were not captured, so the status beyond this copy is unknown.

The most useful question for a reader is whether a 31B dense model fits their hardware and tasks. The card alone cannot answer that, so this report sets out what the card states and what still has to be measured.

Alternatives

Within the same card, the table gives a few comparisons. The Gemma 4 26B A4B has 25.2B total and 3.8B active parameters, a 256K context and text and image input. Its reported performance is worse than the 31B's on every row both are reported for. On most rows that means a lower score. On OmniDocBench 1.5, where a lower edit distance is better, it means a higher figure: 0.149 against 0.131. The size of the gap varies. On some rows it is about 2 to 3 points, for example MMLU Pro 82.6% against 85.2%, GPQA Diamond 82.3% against 84.3% and LiveCodeBench v6 77.1% against 80.0%. On others it is much larger: MRCR v2 8-needle 128K 44.1% against 66.4%, HLE without tools 8.7% against 19.5%, and Codeforces ELO 1718 against 2150. The publisher says the 26B A4B runs much faster than the dense 31B, almost as fast as a 4B-parameter model, but the card gives no measured speed figures, so the actual speed difference is unknown.

The Gemma 4 12B Unified has 11.95B parameters, an encoder-free design and audio support, with a 256K context. Its reported MMLU Pro is 77.2% and LiveCodeBench v6 is 72.0%. The E4B and E2B models are aimed at phones and edge devices and support audio; the card reports MMLU Pro of 69.4% for E4B and 60.0% for E2B.

Gemma 3 27B (no think) is the card's earlier-generation baseline, with MMLU Pro 67.6%, GPQA Diamond 42.4% and LiveCodeBench v6 29.1%.

The captured text does not compare the 31B with non-Gemma models, hosted APIs or other open-weights families, so those comparisons are not assessed here.

Evidence

The evidence is one captured text file: the README for google/gemma-4-31B-it at the pinned commit. It includes the front matter, the model card text, the benchmark table, the code examples, the usage section and the ethics and limitations sections.

The card is the publisher's own description. Benchmark numbers are as reported by the card, and no independent reproduction is included. The card cites a technical report (arXiv 2607.02770) that was not captured, so benchmark methods, dataset details and safety-testing methods are not verified.

Nothing was executed. No code snippet, benchmark figure or safety claim was tested for this report.

Access & freshness

Costs

The card gives no price for the model, no hosted-API price, no hardware or cloud cost and no energy figures. The card makes qualitative speed and efficiency claims, including the MoE comparison and hybrid-attention benefits, but supplies no measured throughput or latency figures. For example, it says the 26B A4B MoE runs much faster than the dense 31B, almost as fast as a 4B-parameter model.

The download size and storage cost are not stated. The total cost of running the 31B is unknown. Any licence fees are not stated in the captured text; the licence terms are described under rights.

Rights

Licence metadata: the card's front matter says license: apache-2.0, and the card header says 'License: Apache 2.0'. The license_link field points to https://ai.google.dev/gemma/docs/gemma_4_license. That page is outside the captured scope, so its text was not reviewed here. The authors are listed as Google DeepMind.

The card includes a BibTeX citation (Gemma Team, 2026, arXiv 2607.02770) and asks readers to consider citing the work if they find it helpful. This is a request, not a stated condition.

Training data is described only by category: web documents, code, mathematics, images and, per the card, audio. The card says it applied filtering for CSAM and for certain personal and sensitive data. It does not describe the licences of the training data.

This report sets out what the captured text says about licensing and does not assess whether the licence is suitable for any particular use.

Freshness

The README snapshot was captured on 2026-11-12; the card gives no publication date for this revision. The snapshot is pinned to a specific commit. The card cites a 2026 technical report and a 2026 citation entry. The card's training-data cutoff is January 2025.

The captured text shows no deprecation, abandonment or successor. Whether a newer Gemma 4 revision, an update or a successor model exists when you read this is unknown and was not checked here.

Actions

Check your hardware. Load the model on the machine you plan to use and measure memory use and speed yourself, because the card gives no memory requirements and no measured speed figures. The card does report benchmark scores, but they do not show output quality on your own tasks, so check quality on your own inputs as well.

Read the licence text at the linked Gemma 4 licence page before any use, since that page is outside the captured scope.

Treat the benchmark table as the publisher's figures. Run a small evaluation on your own tasks and record whether thinking was on.

Use the card's sampling settings as a starting point, and test thinking on and off, since the card allows both.

For image and document work, try visual token budgets from 280 to 1120 and compare the results on your own documents.

Add your own content-safety safeguards, as the card asks developers to do.

If you need audio or a smaller footprint, compare with the 12B Unified, E4B or E2B cards. If speed matters more to you than the benchmark differences relevant to your tasks, compare with the 26B A4B. The publisher describes it as much faster, but the card gives no measured speed, so measure it yourself.

Pin the exact revision you test (the captured commit is 842da3794eaa0b77d5f08bae87a17459d91ff475) so results can be reproduced.

Evidence for this report

selected-page.txtselected · checked 2026-11-12