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…
Handles text, image and audio input and writes text, in a small Gemma 4 model built for laptops and phones. From Google DeepMind, with 2.3B effective parameters and a 128K context.
gemma-4-E2B 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-E2B
gemma-4-E2B is the smallest model in Google DeepMind's Gemma 4 family. It takes text, images and audio as input and writes text. The E stands for effective parameters, so it behaves like a 2.3B model while the files hold 5.1B parameters, since per-layer embedding tables take up the difference.
Developers and hobbyists who want a small open model with multimodal input that can run on a laptop or a phone-class device.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Mobile and desktop developers | Run a small multimodal model on the device | An assistant that understands a photo |
| Research | ML researchers | Study small multimodal and per-layer embedding designs | A comparison across Gemma 4 sizes |
| Education | Students | Try reasoning and coding help on modest hardware | A study helper on a laptop |
| Accessibility | Tool builders | Describe images or transcribe short audio locally | A screen reader that explains pictures |
If you need a larger model for harder tasks, you can skip it, since the family also has E4B, 12B, 26B A4B and 31B sizes.
| Use case | Who | What they get back |
|---|---|---|
| Chat and reasoning | Individuals | Answers with a configurable thinking mode |
| Image and audio input | Developers | Text answers about pictures or sound you supply |
| Coding and agents | Builders | Function calls and code help |
| Multilingual use | Anyone | Support for more than 140 languages, per the card |
pip install -U huggingface_hub hf download google/gemma-4-E2B
Send the model text, an image or audio and read the text it writes back. The card says Gemma 4 supports a system role, so you can set rules for a conversation in a system message.
You give the model a photo of a menu and ask "Which dishes here are vegetarian". It reads the image and replies in text with the dishes it thinks qualify.
Start with a short text prompt to confirm the model loads, then add an image. Keep early prompts small, since the model is built for modest hardware.
The model has 35 layers and a sliding window of 512 tokens, and its design alternates local attention with full global attention, ending in a global layer. A vision encoder of about 150M and an audio encoder of about 300M parameters feed it. The vocabulary has 262K entries and the context reaches 128K tokens.
Handles text, image and audio input and writes text, in a small Gemma 4 model built for laptops and phones. From Google DeepMind, with 2.3B effective parameters and a 128K context.
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-E2B is the smallest model in Google DeepMind's Gemma 4 family. It takes text, images and audio as input and writes text. The E stands for effective parameters, so it behaves like a 2.3B model while the files hold 5.1B parameters, since per-layer embedding tables take up the difference.
Who it suits: Developers and hobbyists who want a small open model with multimodal input that can run on a laptop or a phone-class device.
Industry | Who uses it | How they use it | Example
Software | Mobile and desktop developers | Run a small multimodal model on the device | An assistant that understands a photo
Research | ML researchers | Study small multimodal and per-layer embedding designs | A comparison across Gemma 4 sizes
Education | Students | Try reasoning and coding help on modest hardware | A study helper on a laptop
Accessibility | Tool builders | Describe images or transcribe short audio locally | A screen reader that explains pictures
If you need a larger model for harder tasks, you can skip it, since the family also has E4B, 12B, 26B A4B and 31B sizes.
Where to use it:
Use case | Who | What they get back
Chat and reasoning | Individuals | Answers with a configurable thinking mode
Image and audio input | Developers | Text answers about pictures or sound you supply
Coding and agents | Builders | Function calls and code help
Multilingual use | Anyone | Support for more than 140 languages, per the card
How to set it up:
pip install -U huggingface_hub
hf download google/gemma-4-E2B
How to use it: Send the model text, an image or audio and read the text it writes back. The card says Gemma 4 supports a system role, so you can set rules for a conversation in a system message.
Example: You give the model a photo of a menu and ask "Which dishes here are vegetarian". It reads the image and replies in text with the dishes it thinks qualify.
For newcomers and experts: Start with a short text prompt to confirm the model loads, then add an image. Keep early prompts small, since the model is built for modest hardware.
The model has 35 layers and a sliding window of 512 tokens, and its design alternates local attention with full global attention, ending in a global layer. A vision encoder of about 150M and an audio encoder of about 300M parameters feed it. The vocabulary has 262K entries and the context reaches 128K tokens.
Send text, image or audio
Local and global attention layers process it
Per-layer embeddings add lookups
Text comes back
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download google/gemma-4-E2B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 4 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-E2B This page | 109,387 | 559 | 5.1B | apache-2.0 | |
| gemma-4-E4B-itShares any-to-any · gemma4 · image-text-to-text | 4,298,348 | 1,850 | 8B | apache-2.0 | |
| gemma-4-E2B-itShares any-to-any · gemma4 · image-text-to-text | 3,017,059 | 1,129 | 5.1B | apache-2.0 | |
| gemma-4-E4BShares any-to-any · gemma4 · image-text-to-text | 449,316 | 508 | 8B | apache-2.0 | |
| gemma-4-12B-it-qat-GGUFShares any-to-any · gemma4 · transformers | 196,871 | 617 | 11.9B | apache-2.0 | |
| gemma-4-12B-itShares any-to-any · image-text-to-text · transformers | 1,738,905 | 1,735 | 12B | 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.