Mindket

gemma-4-31B-it

Newversion 1 · updated

Overview

An instruction-tuned 31B model from Google DeepMind that reads text and images and writes text, with a 256K context and configurable thinking. For developers who run an open model on a workstation or server.

gemma-4-31B-it is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and pip
  • A GPU setup with room for about 62.5 GB of BF16 weights, or about 15.6 GB at a 4-bit estimate
Runs in
  • Python with the transformers library
  • Consumer GPUs, workstations and servers, the range the card gives for the larger sizes
  • Windows, macOS or Linux, with enough memory for a 31B model
  • Agent setups that need native function calling
Start with
pip install -U huggingface_hub
hf download google/gemma-4-31B-it

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

gemma-4-31B-it is the instruction-tuned 31B dense model of Gemma 4, an open model family from Google DeepMind. It takes text and images and writes text. It has a context window of 256K tokens and supports more than 140 languages. Its weights are open under Apache 2.0.

Who it suits

It suits developers, researchers and teams who want an open model for chat, coding, reasoning and agents, hosted on their own GPU or server.

IndustryWho uses itHow they use itExample
SoftwareDevelopersAdd a multimodal assistant to an appA helper that answers questions about screenshots
Global businessSupport and content teamsWork in many languages with one modelReply to customers in their own language
Agent buildingAgent developersUse function calling to drive toolsAn agent that looks up orders through an API
AI researchResearchersStudy an open reasoning modelCompare thinking modes on the same questions

If you need audio input or a model for a phone, you can skip it, because audio sits only in the smaller sizes and the 31B has none.

Where to use it

  • Python with the transformers library
  • Consumer GPUs, workstations and servers, the range the card gives for the larger sizes
  • Windows, macOS or Linux, with enough memory for a 31B model
  • Agent setups that need native function calling
Use caseWhoWhat they get back
Chat and reasoningDevelopersText answers, with a thinking mode you can configure
Image questionsProduct teamsText answers about an image of any shape or size
Tool-driven agentsAgent buildersFunction calls the model chooses to make

How to set it up

You need these first:

  • Python and pip
  • A GPU setup with room for about 62.5 GB of BF16 weights, or about 15.6 GB at a 4-bit estimate
  1. Install the Hugging Face hub tool.
  2. Download the model files.
  3. Load the model with transformers as the model card describes.
pip install -U huggingface_hub
hf download google/gemma-4-31B-it

How to use it

Chat with the model through its chat template, using the system role for instructions. Pick a thinking mode when you want step-by-step reasoning, and send an image along with your text when you have one.

ToolWhat it does
System roleNative support for a system message, for more controllable conversations
Thinking modesConfigurable reasoning before the final answer
Function callingNative support for calling tools, which agents rely on
Image inputTakes images with a variable aspect ratio and resolution

Example

You send a photo of a receipt and ask for the total and the shop name. The model reads the image and answers in text. With a system message, you can also fix the answer format.

For newcomers and experts

This is a large general model that understands pictures as well as words. A good first step is to read the model card, then try one text question and one image question.

The model mixes local sliding window attention, 1024 tokens wide, with full global attention, and the last layer is always global. Global layers share keys and values and use proportional RoPE. It has 60 layers and a vision encoder of about 550M parameters.

  1. You send text and optionally an image
  2. The model reads them with a system role
  3. It may think before it answers
  4. It returns text or a function call

Good to know

The Gemma 4 family has five sizes, and this one is the largest dense model.

Total parameters of the dense Gemma 4 models in billions
E2B (effective)2.3 B
E4B (effective)4.5 B
12B Unified11.95 B
31B Dense30.7 B
  • Sizes: five in all, with this 31B at the top and E2B, E4B, 12B and 26B A4B below it, where small models have a 128K context and medium ones 256K
  • Modalities: this 31B model takes text and images, with no audio
  • Other versions: 358 quantized and 369 fine-tuned versions made by other people are listed
  • License: Apache 2.0
  • Cost to run: none named, you supply the GPU
  • Data it reaches: the prompts and images you give it

README and files

README

gemma-4-31B-it

An instruction-tuned 31B model from Google DeepMind that reads text and images and writes text, with a 256K context and configurable thinking. For developers who run an open model on a workstation or server.

Made by google on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: gemma-4-31B-it is the instruction-tuned 31B dense model of Gemma 4, an open model family from Google DeepMind. It takes text and images and writes text. It has a context window of 256K tokens and supports more than 140 languages. Its weights are open under Apache 2.0.

Who it suits: It suits developers, researchers and teams who want an open model for chat, coding, reasoning and agents, hosted on their own GPU or server.

Industry | Who uses it | How they use it | Example
Software | Developers | Add a multimodal assistant to an app | A helper that answers questions about screenshots
Global business | Support and content teams | Work in many languages with one model | Reply to customers in their own language
Agent building | Agent developers | Use function calling to drive tools | An agent that looks up orders through an API
AI research | Researchers | Study an open reasoning model | Compare thinking modes on the same questions

If you need audio input or a model for a phone, you can skip it, because audio sits only in the smaller sizes and the 31B has none.

Where to use it:

  • Python with the transformers library
  • Consumer GPUs, workstations and servers, the range the card gives for the larger sizes
  • Windows, macOS or Linux, with enough memory for a 31B model
  • Agent setups that need native function calling
Use case | Who | What they get back
Chat and reasoning | Developers | Text answers, with a thinking mode you can configure
Image questions | Product teams | Text answers about an image of any shape or size
Tool-driven agents | Agent builders | Function calls the model chooses to make

How to set it up: You need these first:

  • Python and pip
  • A GPU setup with room for about 62.5 GB of BF16 weights, or about 15.6 GB at a 4-bit estimate
  1. Install the Hugging Face hub tool.
  2. Download the model files.
  3. Load the model with transformers as the model card describes.
pip install -U huggingface_hub
hf download google/gemma-4-31B-it

How to use it: Chat with the model through its chat template, using the system role for instructions. Pick a thinking mode when you want step-by-step reasoning, and send an image along with your text when you have one.

Tool | What it does
System role | Native support for a system message, for more controllable conversations
Thinking modes | Configurable reasoning before the final answer
Function calling | Native support for calling tools, which agents rely on
Image input | Takes images with a variable aspect ratio and resolution

Example: You send a photo of a receipt and ask for the total and the shop name. The model reads the image and answers in text. With a system message, you can also fix the answer format.

For newcomers and experts: This is a large general model that understands pictures as well as words. A good first step is to read the model card, then try one text question and one image question.

The model mixes local sliding window attention, 1024 tokens wide, with full global attention, and the last layer is always global. Global layers share keys and values and use proportional RoPE. It has 60 layers and a vision encoder of about 550M parameters.

You send text and optionally an image
The model reads them with a system role
It may think before it answers
It returns text or a function call

Good to know: The Gemma 4 family has five sizes, and this one is the largest dense model.

Title: Total parameters of the dense Gemma 4 models in billions
E2B (effective): 2.3 B
E4B (effective): 4.5 B
12B Unified: 11.95 B
31B Dense: 30.7 B
  • Sizes: five in all, with this 31B at the top and E2B, E4B, 12B and 26B A4B below it, where small models have a 128K context and medium ones 256K
  • Modalities: this 31B model takes text and images, with no audio
  • Other versions: 358 quantized and 369 fine-tuned versions made by other people are listed
  • License: Apache 2.0
  • Cost to run: none named, you supply the GPU
  • Data it reaches: the prompts and images you give it

On Hugging Face, 13 November 2026

  • Task: image text to text
  • Library: transformers
  • Parameters: 31.3B
  • Weights: about 62.5 GB in BF16; about 15.6 GB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 6,692,367
  • Likes: 4,348
  • License: apache-2.0
  • Based on: google/gemma-4-31B
  • Quantized versions: 363
  • Fine-tunes: 372
  • Tags: transformers, safetensors, gemma4, image-text-to-text, conversational

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download google/gemma-4-31B-it

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
gemma-4-31B-it This page6,692,3674,34831.3Bapache-2.0
gemma-4-26B-A4B-itShares gemma4 · image-text-to-text · conversational5,304,0191,75825.8Bapache-2.0
gemma-4-31B-it-scotoma-2Shares gemma4 · image-text-to-text · conversational1,6436031.3Bapache-2.0
gemma-4-E4B-it-weight-space-programmingShares gemma4 · image-text-to-text · conversational12538Bgemma
gemma-4-31B-it-qat-GGUFShares gemma4 · image-text-to-text · conversational79,93322630.7Bapache-2.0
gemma-4-E4B-itShares gemma4 · image-text-to-text · transformers4,298,3481,8508Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

acrispinoQwen 3.6 27B is the sweet spot for local developmentpossibly a problem with the chat template https://huggingface.co/google/gemma-4-31B-it/discussions/118danielWonderful!! Could you fix the gemma4 chat templates, tho, for example here the llama.cpp author reported an issue in the official chat template huggingface.co/google/gemma... Having gemma4 on these inference engines validated end to end for correctness is of great importance.1 like · 1 replylambdaAsk HN: Has anyone replaced Claude/GPT with a local model for daily coding?Not a harness issue. The harness (pi in my case) passes back the cot for all previous turns. The jinja template is what renders the openai-format request sent by the harness, into the actual string of text that will be tokenized and fed to the model. For models without preserve thinking support,…AWS What's New SkeetbotGemma-4-31B-it-assistant and Gemma-4-31B-IT-NVFP4 models now available on Amazon SageMaker JumpStart Google DeepMind & NVIDIA's Gemma-4-31B models now on AWS SageMaker JumpStart: full-precision assistant variant for multimodal AI & quantized version for efficient deployment.int_19hGemma 4 QAT models: Optimizing compression for mobile and laptop efficiencyThey have -assistant in the name, so e.g.: https://huggingface.co/google/gemma-4-31B-it-assistantAWS What's New SkeetbotGemma-4-31B-it-assistant and Gemma-4-31B-IT-NVFP4 models now available on Amazon SageMaker JumpStart Google DeepMind's Gemma-4-31B models now on AWS SageMaker: full-precision assistant variant for multimodal AI and NVIDIA's 4-bit quantized version for faster, cost-efficient deployment.nlIndexing a year of video locally on a 2021 MacBook with Gemma4-31B (50GB swap)Try some of the models on OpenRouter if you are looking to save money. Gemma 4 31B is $0.12/M input, $0.37/M output vs $1/M input, $5/M output for Haiku. There are other options that are good too. Gemini 3.1 Flash Lite is great for this kind of thing (NOT Gemini 3.5 Flash though - the pricing for…AWS What's New SkeetbotGemma-4-31B-it-assistant and Gemma-4-31B-IT-NVFP4 models now available on Amazon SageMaker JumpStart Google DeepMind's Gemma-4-31B models now on AWS SageMaker: full-precision assistant variant for multimodal AI and NVIDIA's 4-bit quantized version for faster, cost-efficient deployment.apiemotionI want to try S.Y's GasTown to create code from a Spec without spending any $The freeride proxy is fairly stable and easily configurable. stevef@omen:~/dev/freeride$ ./scripts/freeride_proxy_model_stats.py +-------------------------------------------+-------------+----------+ | model | completions | attempts |…AWS News Feed on 🦋🆕 AWS adds Google's Gemma-4-31B-assistant and NVIDIA's Gemma-4-31B-NVFP4 to Amazon SageMaker JumpStart. These models offer high-performance AI for enterprise workloads, with multimodal reasoning and optimized memory for scalable, cost-efficient deployments. #AWS #AmazonSagemakerJumpstart #Aimlsatellite2Accelerating Gemma 4: faster inference with multi-token prediction draftersYes they should have stick with the naming convention. google/gemma-4-31B-it-assAWS News(Unofficial)Gemma-4-31B-it-assistant and Gemma-4-31B-IT-NVFP4 models now available on Amazon SageMaker JumpStart Google DeepMind's Gemma-4-31B-it-assistant and NVIDIA's Gemma-4-31B-IT-NVFP4 models are now available on Amazon SageMaker JumpStart, expanding the portfolio ... #AWS #AmazonSagemakerJumpstart #Aiml

Searched

More from Mindket

See all from Mindket

Bonsai-27B-GGUF

lmstudio-community · Kit

A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…

New

Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…

New

MusicGen Small

facebook · Kit

Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…

New

Similar in Developer

See all in Developer

Lexnet

alpindale · Kit

Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…

New

FLUX.2 Klein LoRA Studio

prithivMLmods · Kit

Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…

New

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New