Mindket

DistilBERT base uncased

Newversion 1 · updated

Overview

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.

At a glance

You need
  • Python
  • The transformers package, with PyTorch or TensorFlow
  • About 268 MB of disk space for the F32 weights
Runs in
  • Python, through the Transformers library
  • PyTorch or TensorFlow, since the card shows both
  • Windows, macOS or Linux, on a CPU or a GPU
  • A fine-tuning job for a task that reads a whole sentence
Start with
pip install -U huggingface_hub
hf download distilbert/distilbert-base-uncased

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

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.

IndustryWho uses itHow they use itExample
Customer supportNLP developersFine-tune it to label messagesA ticket is sorted into a topic after fine-tuning
Search and QASearch engineersFine-tune it for question answeringThe card lists question answering as an intended task
EducationML students and teachersLearn how masked language models workThe 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

  • Python, through the Transformers library
  • PyTorch or TensorFlow, since the card shows both
  • Windows, macOS or Linux, on a CPU or a GPU
  • A fine-tuning job for a task that reads a whole sentence
Use caseWhoWhat they get back
Fill in a masked wordBeginnersRanked guesses for the hidden word
Sentence or token classificationDevelopersA small base model to fine-tune
Question answeringSearch teamsA quick base model for that task

How to set it up

You need Python and the Transformers library with PyTorch or TensorFlow.

  • Python
  • The transformers package, with PyTorch or TensorFlow
  • About 268 MB of disk space for the F32 weights
  1. Install the transformers package and a deep learning library.
  2. Optionally download the model files first with the Hugging Face tools, using the second command below.
  3. Load the model by its name in your code.
  4. Run a masked sentence, or encode text to get features.
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)
ToolWhat it does
pipelineRuns fill-mask with one call
DistilBertTokenizerTurns text into tokens the model reads
DistilBertModelReturns features of a text in PyTorch
TFDistilBertModelReturns 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.

  1. Hide some words in a sentence
  2. The student predicts the hidden words
  3. It is pushed to match its teacher BERT
  4. You fine-tune it on your own labels
  5. Use it for your task

Good to know

The card lists these figures.

DistilBERT base uncased at a glance
PropertyValue
Parameters67M
Weights in F32About 268 MB
Weights at 4-bit, estimatedAbout 33 MB
Share of words masked in training15%
  • Bias: the card warns that predictions can be biased, and it inherits some bias from its teacher
  • Language: English
  • Other versions: other people have published 108 quantized and 12,853 fine-tuned versions
  • License: Apache 2.0
  • Cost to run: none named
  • Data it reaches: the files you download and the text you run through it locally
  • Not for: text generation, or any task where biased guesses would cause harm

README and files

README

DistilBERT base uncased

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.

About

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:

  • Python, through the Transformers library
  • PyTorch or TensorFlow, since the card shows both
  • Windows, macOS or Linux, on a CPU or a GPU
  • A fine-tuning job for a task that reads a whole sentence
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.

  • Python
  • The transformers package, with PyTorch or TensorFlow
  • About 268 MB of disk space for the F32 weights
  1. Install the transformers package and a deep learning library.
  2. Optionally download the model files first with the Hugging Face tools, using the second command below.
  3. Load the model by its name in your code.
  4. Run a masked sentence, or encode text to get features.
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%
  • Bias: the card warns that predictions can be biased, and it inherits some bias from its teacher
  • Language: English
  • Other versions: other people have published 108 quantized and 12,853 fine-tuned versions
  • License: Apache 2.0
  • Cost to run: none named
  • Data it reaches: the files you download and the text you run through it locally
  • Not for: text generation, or any task where biased guesses would cause harm

On Hugging Face, 13 November 2026

  • Task: fill mask
  • Library: transformers
  • Parameters: 67M
  • Weights: about 268 MB in F32; about 33 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 5,452,853
  • Likes: 1,148
  • License: apache-2.0
  • Languages: en
  • Quantized versions: 108
  • Fine-tunes: 12,864
  • Tags: transformers, pytorch, rust, safetensors, distilbert, fill-mask, exbert

Links

Get the model

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.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
DistilBERT base uncased This page5,452,8531,14867Mapache-2.0
BERT base model (uncased)Shares exbert · rust · fill-mask31,346,5283,071110Mapache-2.0
GPT-2Shares exbert · rust · pytorch32,892,2233,932137Mmit
all-MiniLM-L6-v2Shares rust · pytorch · transformers174,740,1846,10422.7Mapache-2.0
T5 SmallShares rust · pytorch · transformers20,046,14169660.5Mapache-2.0
T5 BaseShares rust · pytorch · transformers2,853,651811223Mapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

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.

hessdalenlightShow HN: Chonky – a neural approach for text semantic chunkingTLDR: I’ve made a transformer model and a wrapper library that segments text into meaningful semantic chunks. The current text splitting approaches rely on heuristics (although one can use neural embedder to group semantically related sentences). I propose a fully neural approach to semantic…169 points · 35 repliesSergii Yarochevskyi 🇺🇦model: "Xenova/toxic-bert", options: { dtype: "q8" }, }, sentiment: { task: "text-classification", model: "Xenova/distilbert-base-uncased-finetuned-sst-2-english", options: { dtype: "q8" }, }, }, }, })1 replyseizethecheese65% of Hacker News posts have negative sentiment, and they outperformThis is currently the top reply to the top comment. It’s classified at 89% negative by this model: https://huggingface.co/distilbert/distilbert-base-uncased-fi... Ironically, the above comment scored 99.9% negativity.seizethecheese65% of Hacker News posts have negative sentiment, and they outperformIs it “negative” though? I ran it through this model and it gave 99.9% positive. (You tell me if this model is substantively different from what you used.) https://huggingface.co/distilbert/distilbert-base-uncased-fi...seizethecheese65% of Hacker News posts have negative sentiment, and they outperformI’m not sure if this is the exact model used by OP, but it appears close, and it classifies your comment as positive at 99.9%. https://huggingface.co/distilbert/distilbert-base-uncased-fi...7777777phil65% of Hacker News posts have negative sentiment, and they outperformFair point, `ai_sentiment` should have been defined explicitly. It's the production score from DistilBERT-base-uncased-finetuned-sst-2-english, the same model family as Cloudflare's sentiment classifier. That explains the r=0.98 correlation you noticed. And you're right that the models disagree.…

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