Mindket

gemma-4-31B

Newversion 1 · updated

Overview

Reads text and images and writes text, for developers and researchers who want Google DeepMind's largest dense open-weights Gemma 4 model for coding, reasoning and image questions.

gemma-4-31B 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 with pip
  • The huggingface_hub package
  • Free disk space for the weights
Runs in
  • Python scripts that use the transformers library
  • A consumer GPU or a workstation
  • Windows, macOS or Linux with Python, for downloading the files
Start with
pip install -U huggingface_hub
hf download google/gemma-4-31B

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Gemma 4 31B is the largest dense size in the open Gemma 4 family from Google DeepMind. It reads text and images and writes text. The repository holds about 31.3B parameters as Safetensors files for the transformers library, and it has no audio input.

Who it suits

It suits developers and researchers who want an open-weights model for text generation, coding, reasoning and image understanding, run on a consumer GPU or a workstation.

Who uses this model
IndustryWho uses itHow they use itExample
SoftwareDevelopersAdd coding help and reasoning to their own appsAsk it to review a function
ResearchMachine learning researchersStudy a dense open-weights modelCompare it with the smaller sizes in the family
Product teamsAgent buildersBuild assistants that call functionsGive the model a tool and let it decide when to use it

Anyone who needs audio input can skip this size, since the card lists audio only for the E2B, E4B and 12B models.

Where to use it

  • Python scripts that use the transformers library
  • A consumer GPU or a workstation
  • Windows, macOS or Linux with Python, for downloading the files
Jobs it does
Use caseWhoWhat they get back
Text generationWriters and developersWritten replies to a prompt
Coding helpDevelopersCode and explanations in text
Image questionsAnyone with pictures to checkText answers about an image you supply
ReasoningResearchersStep-by-step answers, with thinking modes you can configure

How to set it up

You need Python and plenty of disk space. The BF16 files weigh about 62.5 GB, and a 4-bit copy is estimated at about 15.6 GB.

  • Python with pip
  • The huggingface_hub package
  • Free disk space for the weights
  1. Install huggingface_hub.
  2. Run the download command to save the model files on your computer.
  3. Load the files with the transformers library in your own script.
pip install -U huggingface_hub
hf download google/gemma-4-31B

How to use it

Load the downloaded files with transformers and give the model text, or an image together with text. The system role lets you set ground rules for a conversation. The card says thinking modes are configurable and points to its own pages for the exact settings.

Example

You hand the model a screenshot of an error message and ask what it means in plain words. It answers in text. A system message can tell it to keep replies short and formal.

For newcomers and experts

Think of it as a model that looks at a picture and a question, then writes an answer. A first small test is one image and one short question. The family also has smaller sizes if this one is too big for your computer.

The dense design means all parameters work on every token. The card gives 60 layers, a sliding window of 1024 tokens, a 256K-token context length and a vocabulary of 262K. Attention alternates between local windows and full global layers, with the last layer always global. Global layers share keys and values and use Proportional RoPE to save memory. The vision encoder has roughly 550M parameters.

  1. Text or image goes in
  2. Vision encoder reads the image
  3. Hybrid attention layers
  4. Text comes out

Good to know

The family reaches a context window of 256K tokens and supports more than 140 languages. Other people have published 44 quantized and 103 fine-tuned versions of this model. The release has pre-trained and instruction-tuned variants, so check the repository name to see which one you get.

Estimated weight size
BF1662.5 GB
4-bit15.6 GB
  • License: Apache 2.0.
  • Cost to run: none named.
  • Data it reaches: the files come from Hugging Face, and the model then runs on your own hardware.
  • Not for: audio input, which the card lists only for E2B, E4B and 12B.

README and files

README

gemma-4-31B

Reads text and images and writes text, for developers and researchers who want Google DeepMind's largest dense open-weights Gemma 4 model for coding, reasoning and image questions.

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 is the largest dense size in the open Gemma 4 family from Google DeepMind. It reads text and images and writes text. The repository holds about 31.3B parameters as Safetensors files for the transformers library, and it has no audio input.

Who it suits: It suits developers and researchers who want an open-weights model for text generation, coding, reasoning and image understanding, run on a consumer GPU or a workstation.

Title: Who uses this model
Industry | Who uses it | How they use it | Example
Software | Developers | Add coding help and reasoning to their own apps | Ask it to review a function
Research | Machine learning researchers | Study a dense open-weights model | Compare it with the smaller sizes in the family
Product teams | Agent builders | Build assistants that call functions | Give the model a tool and let it decide when to use it

Anyone who needs audio input can skip this size, since the card lists audio only for the E2B, E4B and 12B models.

Where to use it:

  • Python scripts that use the transformers library
  • A consumer GPU or a workstation
  • Windows, macOS or Linux with Python, for downloading the files
Title: Jobs it does
Use case | Who | What they get back
Text generation | Writers and developers | Written replies to a prompt
Coding help | Developers | Code and explanations in text
Image questions | Anyone with pictures to check | Text answers about an image you supply
Reasoning | Researchers | Step-by-step answers, with thinking modes you can configure

How to set it up: You need Python and plenty of disk space. The BF16 files weigh about 62.5 GB, and a 4-bit copy is estimated at about 15.6 GB.

  • Python with pip
  • The huggingface_hub package
  • Free disk space for the weights
  1. Install huggingface_hub.
  2. Run the download command to save the model files on your computer.
  3. Load the files with the transformers library in your own script.
pip install -U huggingface_hub
hf download google/gemma-4-31B

How to use it: Load the downloaded files with transformers and give the model text, or an image together with text. The system role lets you set ground rules for a conversation. The card says thinking modes are configurable and points to its own pages for the exact settings.

Example: You hand the model a screenshot of an error message and ask what it means in plain words. It answers in text. A system message can tell it to keep replies short and formal.

For newcomers and experts: Think of it as a model that looks at a picture and a question, then writes an answer. A first small test is one image and one short question. The family also has smaller sizes if this one is too big for your computer.

The dense design means all parameters work on every token. The card gives 60 layers, a sliding window of 1024 tokens, a 256K-token context length and a vocabulary of 262K. Attention alternates between local windows and full global layers, with the last layer always global. Global layers share keys and values and use Proportional RoPE to save memory. The vision encoder has roughly 550M parameters.

Text or image goes in
Vision encoder reads the image
Hybrid attention layers
Text comes out

Good to know: The family reaches a context window of 256K tokens and supports more than 140 languages. Other people have published 44 quantized and 103 fine-tuned versions of this model. The release has pre-trained and instruction-tuned variants, so check the repository name to see which one you get.

Title: Estimated weight size
BF16: 62.5 GB
4-bit: 15.6 GB
  • License: Apache 2.0.
  • Cost to run: none named.
  • Data it reaches: the files come from Hugging Face, and the model then runs on your own hardware.
  • Not for: audio input, which the card lists only for E2B, E4B and 12B.

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: 44,151
  • Likes: 596
  • License: apache-2.0
  • Quantized versions: 46
  • Fine-tunes: 103
  • Tags: transformers, safetensors, gemma4, image-text-to-text

Links

Get the model

Download its files with Hugging Face's command line:

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

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 This page44,15159631.3Bapache-2.0
gemma-4-31B-itShares gemma4 · image-text-to-text · transformers6,692,3674,34831.3Bapache-2.0
gemma-4-26B-A4B-itShares gemma4 · image-text-to-text · transformers5,304,0191,75825.8Bapache-2.0
gemma-4-E4B-itShares gemma4 · image-text-to-text · transformers4,298,3481,8508Bapache-2.0
gemma-4-E2B-itShares gemma4 · image-text-to-text · transformers3,017,0591,1295.1Bapache-2.0
gemma-4-E4BShares gemma4 · image-text-to-text · transformers449,3165088Bapache-2.0
Numbers as Mindket last read them, on 2026-11-12.

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.

epolanskiQwen 3.8 Omni Flash> If google/gemma-4-31b works, you don't need to overthink it. Up until recently I had a gemini flash 2.0 api deployed that did summarization and translation of news articles/corporate statements fast and cheap and had no reason to update it. If it works fine, this chase of the latest LLM is bit…baxin(2/4) - google/gemma-4-26b-a4b-it:free - google/gemma-4-31b-it:free - heygen/heygen-voice-1-turbo:free - liquid/lfm-2.5-2.6b:free - liquid/lfm-2.5-embedding-350m:free - liquid/lfm-3-1.7b:free - nvidia/llama-nemotron-embed-vl-1b-v2:free - nvidia/llama-nemotron-rerank-vl-1b-v2:free1 replySystemerror7A69Qwen 3.8 Omni FlashMy approach to this problem is to just...not try them all. As long as the model you're using solves the problems you have to your satisfaction, there is no need to try any other models, except for financial reasons maybe. So I start with a relatively cheap model (GLM 5.3 flash for me) and as long…baxin(2/4) - google/gemma-4-31b-it:free - heygen/heygen-voice-1-turbo:free - liquid/lfm-2.5-2.6b:free - liquid/lfm-2.5-embedding-350m:free - liquid/lfm-3-1.7b:free - nvidia/llama-nemotron-embed-vl-1b-v2:free - nvidia/llama-nemotron-rerank-vl-1b-v2:free - nvidia/nemotron-3-embed-1b:free1 replymavamaartenQwen 3.8 Omni FlashI'm wondering, is there a tool or something out there that helps me pick a model, in the vast sea of models out there these days? Every time I need a model for something I see the list on openrouter and I'm completely overwhelmed. I'd love to be able to explain my use case, my cost preferences and…baxin(2/4) - google/gemma-4-31b-it:free - heygen/heygen-voice-1-turbo:free - liquid/lfm-2.5-2.6b:free - liquid/lfm-2.5-embedding-350m:free - liquid/lfm-3-1.7b:free - nvidia/llama-nemotron-embed-vl-1b-v2:free - nvidia/llama-nemotron-rerank-vl-1b-v2:free - nvidia/nemotron-3-embed-1b:free1 replyakazantsevQwen 3.8Google makes Gemma 4 31B QAT; that's not a small lab. It's one of the better models out there for consumer hardware. Allows me to run it on a 7900XTX with 64k context.baxin(1/4) OpenRouter free models (23) Updated: 2026-11-11 05:21 UTC #OpenRouter #LLM https://openrouter.ai/models?q=free - cohere/north-mini-code:free - dots-studio/dots-3-note-preview:free - fish-audio/s2.1-pro-free:free - google/gemma-4-26b-a4b-it:free - google/gemma-4-31b-it:free1 replyacrispinoQwen 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/118baxin(1/4) OpenRouter free models (24) Updated: 2026-11-10 19:28 UTC #OpenRouter #LLM https://openrouter.ai/models?q=free - cohere/north-mini-code:free - dots-studio/dots-3-note-preview:free - fish-audio/s2.1-pro-free:free - google/gemma-4-26b-a4b-it:free - google/gemma-4-31b-it:free1 replyzepearlAsk HN: MacBook vs. Dedicated GPU for LLMI agree. To run an acceptable model (e.g. Qwen/Qwen3.6-27B or google/gemma-4-31B) with a good quantization (minimum Q5) with a good context size (min 64k) you could buy 2 or even 3 GTX 5060 16GiB VRAM for ~550$ each. Fyi the much faster MoE models were useless for my usecases - e.g not able to…baxin(1/4) OpenRouter free models (24) Updated: 2026-11-10 06:34 UTC #OpenRouter #LLM https://openrouter.ai/models?q=free - cohere/north-mini-code:free - dots-studio/dots-3-note-preview:free - fish-audio/s2.1-pro-free:free - google/gemma-4-26b-a4b-it:free - google/gemma-4-31b-it:free1 reply

Searched

More from Mindket

See all from Mindket

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

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k