SAVRN
Search Contact SAVRN

Open-weight model · Token classification

xlm-roberta-base-ner-hrl

by David Adelani Davlan/xlm-roberta-base-ner-hrl

Hugging Face's logo - multilingual xlm-roberta-base-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 XLM-RoBERTa base…

Parameters277M
Context514
Weights2.2 GB
Licenseafl-3.0
AccessOpen weights
Monthly Downloads299.5k

Runs On

What it takes to serve xlm-roberta-base-ner-hrl (277M 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.6 GB 0.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.3 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.2 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 253f557bd824.

Hugging Face's logo - multilingual xlm-roberta-base-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 XLM-RoBERTa base model. It has been trained to recognize three types of entities: location (LOC), organizations (ORG), and person (PER). Specifically, this model is a xlm-roberta-base 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 not generalize well…

Read David Adelani's full model card

Hugging Face's logo

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


xlm-roberta-base-ner-hrl

Model description

xlm-roberta-base-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 XLM-RoBERTa base model. It has been trained to recognize three types of entities: location (LOC), organizations (ORG), and person (PER). Specifically, this model is a xlm-roberta-base 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/xlm-roberta-base-ner-hrl")
model = AutoModelForTokenClassification.from_pretrained("Davlan/xlm-roberta-base-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
XLMRobertaForTokenClassification
Context length (tokens)
514
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
Vocabulary size
250,002
Model type
xlm-roberta

Identity and Version

Repository
Davlan/xlm-roberta-base-ner-hrl
Publisher
David Adelani
Task
Token classification
Modality
Text
Library
transformers
Parameters
277M parameters
Languages
xlm-roberta
Revision
253f557bd8249b8515114cfd7f71974fe5fa4d2f
First published
2022-03-02
Last updated
2023-08-14

Files and Weights

9 files, 2.2 GB in total. The weights are 3 files totalling 2.2 GB in bin, safetensors.

Weights3 files · 2.2 GB
Configuration2 files · 1.1 KB
Tokenizer1 file · 211 B
Documentation1 file · 3.0 KB
Other1 file · 5.1 MB
Repository1 file · 1.2 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights1.1 GB 49530ba99295
pytorch_model.binWeights1.1 GB 168d05007b14
training_args.binWeights1.5 KB 51cab8181422
config.jsonConfiguration980 B
special_tokens_map.jsonConfiguration150 B
README.mdDocumentation3.0 KB
sentencepiece.bpe.modelOther5.1 MB cfc8146abe2a
.gitattributesRepository1.2 KB
tokenizer_config.jsonTokenizer211 B

License and Download

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

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

Memory Requirements

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

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

Questions About xlm-roberta-base-ner-hrl

How much GPU memory does xlm-roberta-base-ner-hrl need?

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

What is the cheapest GPU to run xlm-roberta-base-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 xlm-roberta-base-ner-hrl released under?

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

What is xlm-roberta-base-ner-hrl's context length?

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

Similar Models

Model · Token classification

OpenMed-NER-PharmaDetect-BigMed-278M

OpenMed

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 277M parameters 514 tokens transformers

Model · Token classification

OpenMed-NER-OncologyDetect-BigMed-278M

OpenMed

Specialized model for Cancer Genetics - Cancer-related genetic entities This model is a state-of-the-art fine-tuned transformer engineered to deliver enterprise-grade accuracy for cancer genetics - cancer-related genetic 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 277M parameters 514 tokens transformers

william (at) integrinet [dot] org Piiranha (cc-by-nc-nd-4.0 license) is trained to detect 17 types of Personally Identifiable Information (PII) across six languages. It successfully catches 98.27% of PII tokens, with an overall classification accuracy of 99.44%. Piiranha is especially accurate at detecting passwords, emails (100%), phone numbers, and usernames. Performance on PII vs. Non PII classification task: Piiranha was trained on H100 GPUs generously sponsored by the Akash Network Piiranha is a fine-tuned version of microsoft/mdeberta-v3-base. The context length is 256 Deberta tokens. If your text is longer than that, just split it up. Supported PII types: Account Number, Building…

Open weights cc-by-nc-nd-4.0 278M parameters 512 tokens transformers

Model · Token classification

gliner2.5-multi-v1

Fastino

GLiNER2.5 Multi is the multilingual boundary checkpoint. It is built on mDeBERTa-v3-base and is the default choice when you need entities, classification, records, and relations in one model across languages. Load it with AutoExtractor: the checkpoint's architecture field selects BoundaryExtractor automatically. Fine-tune via Fastino. Join discussions on Reddit. This card is for fastino/gliner2.5-multi-v1. All three checkpoints share the same public API. Python 3.10 or newer is required. The [local] extra pulls in PyTorch so you can load Hub checkpoints. Always use AutoExtractor for GLiNER2.5. GLiNER2.frompretrained(...) is the legacy span loader and will not dispatch this checkpoint.…

Open weights apache-2.0 287M parameters gliner2

Model · Token classification

bert-large-NER

D

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! bert-large-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-large-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 smaller BERT model fine-tuned…

Open weights mit 334M parameters 512 tokens transformers