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…
A small, fast English language model distilled from BERT base, with 67M parameters. Fills in masked words and is mainly meant to be fine-tuned for classification, tagging and question answering.
DistilBERT base uncased 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 distilbert/distilbert-base-uncased
DistilBERT base uncased is a compact English language model, distilled from the BERT base model. It has 67M parameters and about 268 MB of weights in F32. It is uncased, so it treats English and english as the same word. It learns the same inner picture of English as its teacher while running faster. It is mainly meant to be fine-tuned for your own task.
It suits developers and students who need a small, quick text model to fine-tune for classification, tagging or question answering.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Customer support | NLP developers | Fine-tune it to label messages | A ticket is sorted into a topic after fine-tuning |
| Search and QA | Search engineers | Fine-tune it for question answering | The card lists question answering as an intended task |
| Education | ML students and teachers | Learn how masked language models work | The fill-mask demo guesses a missing word |
You can skip it if you need text generation, since the card points you to models like GPT2 for that.
| Use case | Who | What they get back |
|---|---|---|
| Fill in a masked word | Beginners | Ranked guesses for the hidden word |
| Sentence or token classification | Developers | A small base model to fine-tune |
| Question answering | Search teams | A quick base model for that task |
You need Python and the Transformers library with PyTorch or TensorFlow.
pip install -U huggingface_hub hf download distilbert/distilbert-base-uncased
The quickest try is a fill-mask pipeline. Put [MASK] where a word is missing, and the model ranks guesses.
from transformers import pipeline
unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
unmasker("Hello I'm a [MASK] model.")To get the features of a text in PyTorch:
from transformers import DistilBertTokenizer, DistilBertModel
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
model = DistilBertModel.from_pretrained("distilbert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)| Tool | What it does |
|---|---|
| pipeline | Runs fill-mask with one call |
| DistilBertTokenizer | Turns text into tokens the model reads |
| DistilBertModel | Returns features of a text in PyTorch |
| TFDistilBertModel | Returns features of a text in TensorFlow |
You write the sentence Hello I'm a [MASK] model and run the pipeline. The card shows the top guesses as role, fashion, business, model and modeling, each with a score.
Think of it as a smaller student that copied a bigger teacher, BERT, and kept most of its language sense. A first small try is the fill-mask pipeline above.
Training combined three goals. It matched the teacher's probabilities, it predicted masked words, with 15% of the input words hidden, and it matched the teacher's hidden states. Because it reads the whole sentence in both directions, it suits tasks that judge a whole sentence, not text generation.
The card lists these figures.
| Property | Value |
|---|---|
| Parameters | 67M |
| Weights in F32 | About 268 MB |
| Weights at 4-bit, estimated | About 33 MB |
| Share of words masked in training | 15% |
A small, fast English language model distilled from BERT base, with 67M parameters. Fills in masked words and is mainly meant to be fine-tuned for classification, tagging and question answering.
Made by distilbert 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: DistilBERT base uncased is a compact English language model, distilled from the BERT base model. It has 67M parameters and about 268 MB of weights in F32. It is uncased, so it treats English and english as the same word. It learns the same inner picture of English as its teacher while running faster. It is mainly meant to be fine-tuned for your own task.
Who it suits: It suits developers and students who need a small, quick text model to fine-tune for classification, tagging or question answering.
Industry | Who uses it | How they use it | Example
Customer support | NLP developers | Fine-tune it to label messages | A ticket is sorted into a topic after fine-tuning
Search and QA | Search engineers | Fine-tune it for question answering | The card lists question answering as an intended task
Education | ML students and teachers | Learn how masked language models work | The fill-mask demo guesses a missing word
You can skip it if you need text generation, since the card points you to models like GPT2 for that.
Where to use it:
Use case | Who | What they get back
Fill in a masked word | Beginners | Ranked guesses for the hidden word
Sentence or token classification | Developers | A small base model to fine-tune
Question answering | Search teams | A quick base model for that task
How to set it up: You need Python and the Transformers library with PyTorch or TensorFlow.
pip install -U huggingface_hub
hf download distilbert/distilbert-base-uncased
How to use it: The quickest try is a fill-mask pipeline. Put [MASK] where a word is missing, and the model ranks guesses.
from transformers import pipeline
unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
unmasker("Hello I'm a [MASK] model.")
To get the features of a text in PyTorch:
from transformers import DistilBertTokenizer, DistilBertModel
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
model = DistilBertModel.from_pretrained("distilbert-base-uncased")
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
Tool | What it does
pipeline | Runs fill-mask with one call
DistilBertTokenizer | Turns text into tokens the model reads
DistilBertModel | Returns features of a text in PyTorch
TFDistilBertModel | Returns features of a text in TensorFlow
Example: You write the sentence Hello I'm a [MASK] model and run the pipeline. The card shows the top guesses as role, fashion, business, model and modeling, each with a score.
For newcomers and experts: Think of it as a smaller student that copied a bigger teacher, BERT, and kept most of its language sense. A first small try is the fill-mask pipeline above.
Training combined three goals. It matched the teacher's probabilities, it predicted masked words, with 15% of the input words hidden, and it matched the teacher's hidden states. Because it reads the whole sentence in both directions, it suits tasks that judge a whole sentence, not text generation.
Hide some words in a sentence
The student predicts the hidden words
It is pushed to match its teacher BERT
You fine-tune it on your own labels
Use it for your task
Good to know: The card lists these figures.
Title: DistilBERT base uncased at a glance
Property | Value
Parameters | 67M
Weights in F32 | About 268 MB
Weights at 4-bit, estimated | About 33 MB
Share of words masked in training | 15%
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download distilbert/distilbert-base-uncased
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 |
|---|---|---|---|---|---|
| DistilBERT base uncased This page | 5,452,853 | 1,148 | 67M | apache-2.0 | |
| BERT base model (uncased)Shares exbert · rust · fill-mask | 31,346,528 | 3,071 | 110M | apache-2.0 | |
| GPT-2Shares exbert · rust · pytorch | 32,892,223 | 3,932 | 137M | mit | |
| all-MiniLM-L6-v2Shares rust · pytorch · transformers | 174,740,184 | 6,104 | 22.7M | apache-2.0 | |
| T5 SmallShares rust · pytorch · transformers | 20,046,141 | 696 | 60.5M | apache-2.0 | |
| T5 BaseShares rust · pytorch · transformers | 2,853,651 | 811 | 223M | 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.