SAVRN
Search Contact SAVRN

Open-weight model · Token classification

bert-base-NER

by D dslim/bert-base-NER

If my open source models have been useful to you, please consider supporting me in building small, useful AI models for everyone (and help me afford med school / help out my parents financially). Thanks!

Parameters108M
Context512
Weights2.2 GB
Licensemit
AccessOpen weights
Monthly Downloads1.4M

Runs On

What it takes to serve bert-base-NER (108M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.2 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By D, published under mit, revision d1a3e8f13f8c.

If my open source models have been useful to you, please consider supporting me in building small, useful AI models for everyone (and help me afford med school / help out my parents financially). Thanks!

Model description

bert-base-NER is a fine-tuned BERT model that is ready to use for Named Entity Recognition and achieves state-of-the-art performance for the NER task. It has been trained to recognize four types of entities: location (LOC), organizations (ORG), person (PER) and Miscellaneous (MISC).

Specifically, this model is a bert-base-cased model that was fine-tuned on the English version of the standard CoNLL-2003 Named Entity Recognition dataset.

If you'd like to use a larger BERT-large model fine-tuned on the same dataset, a bert-large-NER version is also available.

Available NER models

Read the full model card (666 words)

Configuration

Architecture
BertForTokenClassification
Context length (tokens)
512
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
Vocabulary size
28,996
Model type
bert

Identity and Version

Repository
dslim/bert-base-NER
Publisher
D
Task
Token classification
Modality
Text
Library
transformers
Parameters
108M parameters
Languages
en
Revision
d1a3e8f13f8c3566299d95fcfc9a8d2382a9affc
First published
2022-03-02
Last updated
2024-10-08

Files and Weights

18 files, 2.2 GB in total. The weights are 5 files totalling 2.2 GB in bin, h5, msgpack, onnx, safetensors.

Weights5 files · 2.2 GB
Configuration6 files · 2.1 KB
Tokenizer5 files · 1.1 MB
Documentation1 file · 6.6 KB
Repository1 file · 445 B
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights430.9 MB a124466eab9a
model.safetensorsWeights433.3 MB b04492186cfb
onnx/model.onnxWeights431.2 MB 963039b81eec
pytorch_model.binWeights433.3 MB 4c0b01790e43
tf_model.h5Weights433.5 MB ba8245e6eefa
added_tokens.jsonConfiguration2 B
config.jsonConfiguration829 B
onnx/added_tokens.jsonConfiguration82 B
onnx/config.jsonConfiguration999 B
onnx/special_tokens_map.jsonConfiguration125 B
special_tokens_map.jsonConfiguration112 B
README.mdDocumentation6.6 KB
.gitattributesRepository445 B
onnx/tokenizer.jsonTokenizer668.9 KB
onnx/tokenizer_config.jsonTokenizer1.3 KB
onnx/vocab.txtTokenizer213.4 KB
tokenizer_config.jsonTokenizer59 B
vocab.txtTokenizer213.4 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
2.2 GB
Download from D

Released by D through its official repository on Hugging Face. Read the license.

Built From

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
conll2003 Configuration conll2003Task Token ClassificationMetric AccuracyComparison conditions not established 0.911804 dslim
Publisher reported
Evaluated revision not stated
conll2003 Configuration conll2003Task Token ClassificationMetric F1Comparison conditions not established 0.925874 dslim
Publisher reported
Evaluated revision not stated
conll2003 Configuration conll2003Task Token ClassificationMetric PrecisionComparison conditions not established 0.921155 dslim
Publisher reported
Evaluated revision not stated
conll2003 Configuration conll2003Task Token ClassificationMetric RecallComparison conditions not established 0.930642 dslim
Publisher reported
Evaluated revision not stated
conll2003 Configuration conll2003Task Token ClassificationMetric lossComparison conditions not established 0.483256 dslim
Publisher reported
Evaluated revision not stated

Memory Requirements

PrecisionWeights in memory
As published2.2 GB
16-bit0.2 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About bert-base-NER

How much GPU memory does bert-base-NER need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (108M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run bert-base-NER on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use bert-base-NER commercially?

Yes. bert-base-NER is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

What is bert-base-NER's context length?

512 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Token classification

OpenMed-NER-AnatomyDetect-ElectraMed-109M

OpenMed

Specialized model for Anatomical Entity Recognition - Anatomical structures and body parts This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for anatomical entity recognition - anatomical structures and body parts. This specialized model excels at identifying and extracting biomedical entities from clinical texts, research papers, and healthcare documents, enabling applications such as drug interaction detection, medication extraction from patient records, adverse event monitoring, literature mining for drug discovery, and biomedical knowledge graph construction with production-ready reliability for clinical and research applications.…

Open weights apache-2.0 109M parameters 512 tokens transformers

Model · Token classification

OpenMed-NER-SpeciesDetect-ElectraMed-109M

OpenMed

Specialized model for Species Entity Recognition - Species and organism names This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for species entity recognition - species and organism names. This specialized model excels at identifying and extracting biomedical entities from clinical texts, research papers, and healthcare documents, enabling applications such as drug interaction detection, medication extraction from patient records, adverse event monitoring, literature mining for drug discovery, and biomedical knowledge graph construction with production-ready reliability for clinical and research applications. This model can identify and…

Open weights apache-2.0 109M parameters 512 tokens transformers

Model · Token classification

OpenMed-NER-GenomicDetect-PubMed-109M

OpenMed

Specialized model for Gene Entity Recognition - Gene-related entities This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for gene entity recognition - gene-related entities. This specialized model excels at identifying and extracting biomedical entities from clinical texts, research papers, and healthcare documents, enabling applications such as drug interaction detection, medication extraction from patient records, adverse event monitoring, literature mining for drug discovery, and biomedical knowledge graph construction with production-ready reliability for clinical and research applications. This model can identify and classify the…

Open weights apache-2.0 109M parameters 512 tokens transformers

Model · Token classification

OpenMed-NER-DiseaseDetect-ElectraMed-109M

OpenMed

Specialized model for Disease Entity Recognition - Disease entities from the BC5CDR dataset This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for disease entity recognition - disease entities from the bc5cdr dataset. This specialized model excels at identifying and extracting biomedical entities from clinical texts, research papers, and healthcare documents, enabling applications such as drug interaction detection, medication extraction from patient records, adverse event monitoring, literature mining for drug discovery, and biomedical knowledge graph construction with production-ready reliability for clinical and research applications.…

Open weights apache-2.0 109M parameters 512 tokens transformers

Model · Token classification

OpenMed-NER-OrganismDetect-BioMed-109M

OpenMed

Specialized model for Species Entity Recognition - Species names from the Species-800 dataset This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for species entity recognition - species names from the species-800 dataset. This specialized model excels at identifying and extracting biomedical entities from clinical texts, research papers, and healthcare documents, enabling applications such as drug interaction detection, medication extraction from patient records, adverse event monitoring, literature mining for drug discovery, and biomedical knowledge graph construction with production-ready reliability for clinical and research…

Open weights apache-2.0 109M parameters 512 tokens transformers

Model · Token classification

OpenMed-NER-OrganismDetect-BioPatient-108M

OpenMed

Specialized model for Species Entity Recognition - Species names from the Species-800 dataset This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for species entity recognition - species names from the species-800 dataset. This specialized model excels at identifying and extracting biomedical entities from clinical texts, research papers, and healthcare documents, enabling applications such as drug interaction detection, medication extraction from patient records, adverse event monitoring, literature mining for drug discovery, and biomedical knowledge graph construction with production-ready reliability for clinical and research…

Open weights apache-2.0 108M parameters 512 tokens transformers