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…
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.
pip install -U huggingface_hub hf download google/gemma-4-31B
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.
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.
| 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.
| 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 |
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.
pip install -U huggingface_hub hf download google/gemma-4-31B
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.
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.
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.
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.
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.
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:
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.
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
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.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| gemma-4-31B This page | 44,151 | 596 | 31.3B | apache-2.0 | |
| gemma-4-31B-itShares gemma4 · image-text-to-text · transformers | 6,692,367 | 4,348 | 31.3B | apache-2.0 | |
| gemma-4-26B-A4B-itShares gemma4 · image-text-to-text · transformers | 5,304,019 | 1,758 | 25.8B | apache-2.0 | |
| gemma-4-E4B-itShares gemma4 · image-text-to-text · transformers | 4,298,348 | 1,850 | 8B | apache-2.0 | |
| gemma-4-E2B-itShares gemma4 · image-text-to-text · transformers | 3,017,059 | 1,129 | 5.1B | apache-2.0 | |
| gemma-4-E4BShares gemma4 · image-text-to-text · transformers | 449,316 | 508 | 8B | apache-2.0 |
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.
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…
Qwen · Kit
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…
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…
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…
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…
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.