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 and encodes text in over 1,800 languages, for classification, embeddings, retrieval and fill-in-the-blank tasks. Built for developers and researchers who fine-tune a multilingual encoder.
mmBERT-base 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 torch>=1.9.0 pip install transformers>=4.21.0
mmBERT-base is a multilingual encoder, a model that reads text and turns it into representations that other systems can use. It was trained on more than 3T tokens across over 1,800 languages. It builds on the ModernBERT design, and the card says it beats the older XLM-R on classification, embedding and retrieval.
It suits developers and researchers who need one model that understands many languages, including ones with little training data, and who plan to fine-tune it.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | ML engineers | Fine-tune the encoder for classification across languages | Tag support tickets in several languages |
| Search | Retrieval teams | Build embeddings and ranking models for multilingual text | Match a query in one language to documents in another |
| Research | NLP researchers | Study how low-resource languages are learned late in training | Compare language coverage against XLM-R |
| Publishing | Content teams | Sort and label articles written in many languages | Group news by topic regardless of language |
If you need a model that writes text or chats, you can skip it, because an encoder does not generate long replies.
| Use case | Who | What they get back |
|---|---|---|
| Text classification | ML engineers | Labels for text in many languages after fine-tuning |
| Embeddings | Retrieval teams | Vectors that capture meaning across languages |
| Fill in the blank | Researchers | Predictions for masked words |
You need Python with pip and the PyTorch and Transformers packages.
pip install torch>=1.9.0 pip install transformers>=4.21.0
pip install -U huggingface_hub hf download jhu-clsp/mmBERT-base
Load the tokenizer and the model, turn a text into tokens, and pass them through the model. The output holds one hidden representation for each token, which you can use for features or fine-tuning.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base")
model = AutoModel.from_pretrained("jhu-clsp/mmBERT-base")
inputs = tokenizer("Hello world", return_tensors="pt")
outputs = model(**inputs)| Tool | What it does |
|---|---|
| AutoTokenizer | Splits text into tokens the model understands |
| AutoModel | Loads the encoder and runs it on those tokens |
| tokenizer(..., return_tensors="pt") | Returns PyTorch tensors ready for the model |
You pass the two words Hello world through the tokenizer and the model. The script returns the encoder's outputs for those tokens. You can then pool or classify them in your own code.
An encoder turns text into numbers that capture meaning, and it does not write replies. The first small thing to try is the short script above, which runs on any text in any covered language.
The card describes a staged recipe. It starts with 60 high-resource languages, adds 110 mid-resource ones, then brings in all 1,833 languages in the decay phase. The mask ratio falls from 30% to 15% to 5%, and sampling shifts from a temperature of 0.7 to 0.3. Variants trained on different language mixes are combined by TIES merging. It uses Flash Attention 2 and unpadding.
Model family: the card lists a small and a base model.
| Model | Total parameters | Non-embedding parameters | Languages |
|---|---|---|---|
| mmBERT-small | 140M | 42M | 1800+ |
| mmBERT-base | 307M | 110M | 1800+ |
Reads and encodes text in over 1,800 languages, for classification, embeddings, retrieval and fill-in-the-blank tasks. Built for developers and researchers who fine-tune a multilingual encoder.
Made by jhu-clsp 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: mmBERT-base is a multilingual encoder, a model that reads text and turns it into representations that other systems can use. It was trained on more than 3T tokens across over 1,800 languages. It builds on the ModernBERT design, and the card says it beats the older XLM-R on classification, embedding and retrieval.
Who it suits: It suits developers and researchers who need one model that understands many languages, including ones with little training data, and who plan to fine-tune it.
Industry | Who uses it | How they use it | Example
Software | ML engineers | Fine-tune the encoder for classification across languages | Tag support tickets in several languages
Search | Retrieval teams | Build embeddings and ranking models for multilingual text | Match a query in one language to documents in another
Research | NLP researchers | Study how low-resource languages are learned late in training | Compare language coverage against XLM-R
Publishing | Content teams | Sort and label articles written in many languages | Group news by topic regardless of language
If you need a model that writes text or chats, you can skip it, because an encoder does not generate long replies.
Where to use it:
Use case | Who | What they get back
Text classification | ML engineers | Labels for text in many languages after fine-tuning
Embeddings | Retrieval teams | Vectors that capture meaning across languages
Fill in the blank | Researchers | Predictions for masked words
How to set it up: You need Python with pip and the PyTorch and Transformers packages.
pip install torch>=1.9.0
pip install transformers>=4.21.0
pip install -U huggingface_hub
hf download jhu-clsp/mmBERT-base
How to use it: Load the tokenizer and the model, turn a text into tokens, and pass them through the model. The output holds one hidden representation for each token, which you can use for features or fine-tuning.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base")
model = AutoModel.from_pretrained("jhu-clsp/mmBERT-base")
inputs = tokenizer("Hello world", return_tensors="pt")
outputs = model(**inputs)
Tool | What it does
AutoTokenizer | Splits text into tokens the model understands
AutoModel | Loads the encoder and runs it on those tokens
tokenizer(..., return_tensors="pt") | Returns PyTorch tensors ready for the model
Example: You pass the two words Hello world through the tokenizer and the model. The script returns the encoder's outputs for those tokens. You can then pool or classify them in your own code.
For newcomers and experts: An encoder turns text into numbers that capture meaning, and it does not write replies. The first small thing to try is the short script above, which runs on any text in any covered language.
The card describes a staged recipe. It starts with 60 high-resource languages, adds 110 mid-resource ones, then brings in all 1,833 languages in the decay phase. The mask ratio falls from 30% to 15% to 5%, and sampling shifts from a temperature of 0.7 to 0.3. Variants trained on different language mixes are combined by TIES merging. It uses Flash Attention 2 and unpadding.
Phase 1: 60 languages, 2.3T tokens
Mid-training: 110 languages, 600B tokens
Decay phase: 1,833 languages, 100B tokens
Merge variants with TIES merging
Good to know: Model family: the card lists a small and a base model.
Model | Total parameters | Non-embedding parameters | Languages
mmBERT-small | 140M | 42M | 1800+
mmBERT-base | 307M | 110M | 1800+
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download jhu-clsp/mmBERT-base
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 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 |
|---|---|---|---|---|---|
| mmBERT-base This page | 353,305 | 283 | — | mit | |
| ModernBERT-baseShares fill-mask · modernbert · pytorch | 2,939,636 | 1,155 | 150M | apache-2.0 | |
| ModernBERT-largeShares fill-mask · modernbert · pytorch | 572,085 | 504 | 396M | apache-2.0 | |
| BERT base model (uncased)Shares fill-mask · pytorch · transformers | 31,346,528 | 3,071 | 110M | apache-2.0 | |
| DistilBERT base uncasedShares fill-mask · pytorch · transformers | 5,452,853 | 1,148 | 67M | apache-2.0 | |
| BERT multilingual base model (cased)Shares fill-mask · pytorch · transformers | 1,539,340 | 623 | 179M | apache-2.0 |
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.