SAVRN
Search Contact SAVRN

Open-weight model · Token classification

bert-base-multilingual-cased-ner-hrl

by David Adelani Davlan/bert-base-multilingual-cased-ner-hrl

Hugging Face's logo - multilingual bert-base-multilingual-cased-ner-hrl is a Named Entity Recognition model for 10 high resourced languages (Arabic, German, English, Spanish, French, Italian, Latvian, Dutch, Portuguese and Chinese) based on a fine-tuned mBERT…

Parameters177M
Context512
Weights2.8 GB
Licenseafl-3.0
AccessOpen weights
Monthly Downloads233.7k

Runs On

What it takes to serve bert-base-multilingual-cased-ner-hrl (177M 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.4 GB 0.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.2 GB 0.2 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 David Adelani, published under afl-3.0, revision e756de7f7b8f.

Hugging Face's logo - multilingual bert-base-multilingual-cased-ner-hrl is a Named Entity Recognition model for 10 high resourced languages (Arabic, German, English, Spanish, French, Italian, Latvian, Dutch, Portuguese and Chinese) based on a fine-tuned mBERT base model. It has been trained to recognize three types of entities: location (LOC), organizations (ORG), and person (PER). Specifically, this model is a bert-base-multilingual-cased model that was fine-tuned on an aggregation of 10 high-resourced languages You can use this model with Transformers pipeline for NER. This model is limited by its training dataset of entity-annotated news articles from a specific span of time. This may…

Read David Adelani's full model card

Hugging Face's logo

language: - ar - de - en - es - fr - it - lv - nl - pt - zh - multilingual


bert-base-multilingual-cased-ner-hrl

Model description

bert-base-multilingual-cased-ner-hrl is a Named Entity Recognition model for 10 high resourced languages (Arabic, German, English, Spanish, French, Italian, Latvian, Dutch, Portuguese and Chinese) based on a fine-tuned mBERT base model. It has been trained to recognize three types of entities: location (LOC), organizations (ORG), and person (PER). Specifically, this model is a bert-base-multilingual-cased model that was fine-tuned on an aggregation of 10 high-resourced languages

Intended uses & limitations

How to use

You can use this model with Transformers pipeline for NER.

from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("Davlan/bert-base-multilingual-cased-ner-hrl")
model = AutoModelForTokenClassification.from_pretrained("Davlan/bert-base-multilingual-cased-ner-hrl")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "Nader Jokhadar had given Syria the lead with a well-struck header in the seventh minute."
ner_results = nlp(example)
print(ner_results)

Limitations and bias

This model is limited by its training dataset of entity-annotated news articles from a specific span of time. This may not generalize well for all use cases in different domains.

Training data

The training data for the 10 languages are from:

Language Dataset
Arabic ANERcorp
German conll 2003
English conll 2003
Spanish conll 2002
French Europeana Newspapers
Italian Italian I-CAB
Latvian Latvian NER
Dutch conll 2002
Portuguese Paramopama + Second Harem
Chinese MSRA

The training dataset distinguishes between the beginning and continuation of an entity so that if there are back-to-back entities of the same type, the model can output where the second entity begins. As in the dataset, each token will be classified as one of the following classes: Abbreviation|Description -|- O|Outside of a named entity B-PER |Beginning of a person’s name right after another person’s name I-PER |Person’s name B-ORG |Beginning of an organisation right after another organisation I-ORG |Organisation B-LOC |Beginning of a location right after another location I-LOC |Location

Training procedure

This model was trained on NVIDIA V100 GPU with recommended hyperparameters from HuggingFace code.

Configuration

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

Identity and Version

Repository
Davlan/bert-base-multilingual-cased-ner-hrl
Publisher
David Adelani
Task
Token classification
Modality
Text
Library
transformers
Parameters
177M parameters
Languages
tf
Revision
e756de7f7b8f64fea0c3d7c3872f1322fab747b1
First published
2022-03-02
Last updated
2024-11-11

Files and Weights

17 files, 2.8 GB in total. The weights are 5 files totalling 2.8 GB in bin, h5, onnx, safetensors.

Weights5 files · 2.8 GB
Configuration5 files · 2.6 KB
Tokenizer5 files · 4.9 MB
Documentation1 file · 3.1 KB
Repository1 file · 791 B
Every file
FileTypeSizeSHA-256
model.safetensorsWeights709.1 MB 5cff81bec8c8
onnx/model.onnxWeights709.3 MB 6c018415dc81
pytorch_model.binWeights709.2 MB 8c707863b713
tf_model.h5Weights709.4 MB 67f9af701d0b
training_args.binWeights1.5 KB 22d7b45befca
config.jsonConfiguration1.1 KB
onnx/added_tokens.jsonConfiguration82 B
onnx/config.jsonConfiguration1.2 KB
onnx/special_tokens_map.jsonConfiguration125 B
special_tokens_map.jsonConfiguration112 B
README.mdDocumentation3.1 KB
.gitattributesRepository791 B
onnx/tokenizer.jsonTokenizer2.9 MB
onnx/tokenizer_config.jsonTokenizer1.3 KB
onnx/vocab.txtTokenizer995.5 KB
tokenizer_config.jsonTokenizer264 B
vocab.txtTokenizer995.5 KB

License and Download

License
afl-3.0
Access
Open weights, no gate
Download size
2.8 GB
Download from David Adelani

Released by David Adelani through its official repository on Hugging Face.

Memory Requirements

PrecisionWeights in memory
As published2.8 GB
16-bit0.4 GB
8-bit0.2 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-multilingual-cased-ner-hrl

How much GPU memory does bert-base-multilingual-cased-ner-hrl need?

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

What is the cheapest GPU to run bert-base-multilingual-cased-ner-hrl 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.

What license is bert-base-multilingual-cased-ner-hrl released under?

afl-3.0, as its publisher declares it. Read the license text before commercial use.

What is bert-base-multilingual-cased-ner-hrl's context length?

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

Similar Models

Model · Token classification

wikineural-multilingual-ner

Babelscape

This is the model card for the EMNLP 2021 paper WikiNEuRal: Combined Neural and Knowledge-based Silver Data Creation for Multilingual NER. We fine-tuned a multilingual language model (mBERT) for 3 epochs on our WikiNEuRal dataset for Named Entity Recognition (NER). The resulting multilingual NER model supports the 9 languages covered by WikiNEuRal (de, en, es, fr, it, nl, pl, pt, ru), and it was trained on all 9 languages jointly. If you use the model, please reference this work in your paper: The original repository for the paper can be found at https://github.com/Babelscape/wikineural. You can use this model with Transformers pipeline for NER. This model is trained on WikiNEuRal, a…

Open weights cc-by-nc-sa-4.0 177M parameters 512 tokens transformers

This model was introduced in the paper LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression (Pan et al, 2024). It is a BERT multilingual base model (cased) finetuned to perform token classification for task agnostic prompt compression. The probability $p{preserve}$ of each token $xi$ is used as the metric for compression. This model is trained on the extractive text compression dataset constructed with the methodology proposed in the LLMLingua-2, using training examples from MeetingBank (Hu et al, 2023) as the seed data. You can evaluate the model on downstream tasks such as question answering (QA) and summarization over compressed meeting transcripts…

Open weights apache-2.0 177M parameters 512 tokens transformers

Model · Token classification

OpenMed-NER-ChemicalDetect-ModernMed-149M

OpenMed

Specialized model for Chemical Entity Recognition - Identifies chemical compounds and substances in biomedical literature This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for chemical entity recognition - identifies chemical compounds and substances in biomedical literature. 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…

Open weights apache-2.0 150M parameters 8,192 tokens transformers

Model · Token classification

OpenMed-NER-GenomeDetect-ModernMed-149M

OpenMed

Specialized model for Gene/Protein Entity Recognition - Gene and protein mentions This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for gene/protein entity recognition - gene and protein mentions. 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…

Open weights apache-2.0 150M parameters 8,192 tokens transformers

Model · Token classification

OpenMed-NER-SpeciesDetect-ModernMed-149M

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 150M parameters 8,192 tokens transformers

Specialized model for Chemical Entity Recognition - Chemical entities from the BC5CDR dataset This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for chemical entity recognition - chemical 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…

Open weights apache-2.0 150M parameters 8,192 tokens transformers