All models

Literature · IIC

xlm-roberta-large-distemist

A multilingual transformer fine-tuned to extract disease and clinical entities from Spanish biomedical text.

What xlm-roberta-large-distemist is

xlm-roberta-large-distemist is a token-classification model fine-tuned to extract clinical entities from Spanish biomedical text. Developed by IIC, it adapts the multilingual xlm-roberta-large architecture to the DisTEMIST dataset, which focuses on disease name recognition and clinical entity mention identification.

The model was produced as part of a benchmark study evaluating Spanish clinical encoder-based architectures across named entity recognition and text classification tasks. Evaluated on the DisTEMIST dataset, it attains an F1 score of 0.817.

This tool is designed strictly for research use. It is not a medical device and must not be used for diagnosis, treatment planning, or any clinical decision-making.

How it works

The model builds upon the xlm-roberta-large encoder architecture and is fine-tuned for token classification on the bigbio/distemist dataset using PyTorch and the Hugging Face Transformers framework. During inference, it processes input text and predicts token-level labels accompanied by ranked confidence scores.

Fine-tuning was conducted using the AdamW optimizer with a batch size of 16, a learning rate of 4e-05, and up to 10 epochs with an early stopping patience of 3. Classifier dropout, warmup ratio, warmup steps, and weight decay were all set to 0.

Key facts

Base architecture
xlm-roberta-large
Task
Token classification (Named Entity Recognition)
Language
Spanish
Training dataset
DisTEMIST (bigbio/distemist)
Reported metric
F1 score of 0.817
Optimizer
AdamW
Learning rate
4e-05
Batch size
16
Training epochs
10 (early stopping patience of 3)
Recommended GPU memory
16 GB

What you can use it for

Clinical named entity recognition in Spanish
Detecting and labelling disease mentions and biomedical entity tokens within Spanish clinical literature and unstructured medical texts.
Clinical encoder benchmarking
Serving as a baseline model for comparative analyses of encoder-based language models on Spanish clinical natural language processing tasks.
Biomedical literature mining
Annotating Spanish research papers and reports with token-level disease mentions for downstream text analysis.

Run it here

No installation and no GPU of your own: fill in the inputs and it runs on our servers. Results stay in your browser unless you sign in.

Runs on On-demand GPU

Runs on our servers with on-demand compute. A first run needs time to load the model; active capacity can be reused and scales down when idle.

Run this model

xlm-roberta-large-distemist

Entities are labelled token by token.

Needs text

Strengths and limits

Good at

  • Demonstrates an F1 score of 0.817 on the DisTEMIST clinical entity recognition benchmark.
  • Fine-tuned specifically on Spanish biomedical and clinical data using the DisTEMIST corpus.
  • Provides token-level predictions with associated confidence scores.

Watch out for

  • For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
  • Not certified as a medical device and cannot be used for diagnostic, treatment, or clinical decision-making purposes.
  • Requires significant computational resources, including approximately 16 GB of GPU memory.
  • Performance is tailored to the domain and entity definitions of the DisTEMIST dataset.

Inputs and outputs

You provide

  • Text

    Entities are labelled token by token.

You get back

  • Labels with confidence scores, highest first.

xlm-roberta-large-distemist API

The same run, from your own code: one HTTP request with an API key, billed in the same credits as the Run button. A fast run answers with its outputs; a longer one answers with a poll_url to read.

bash
curl https://corollary-labs.com/api/v1/models/iic-xlm-roberta-large-distemist/runs \
  -H "Authorization: Bearer $COROLLARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "text": "<Text>"
  }
}'

Make an API key, then read the models reference.

Licence

Commercial use permitted · mit

mit, as the repository declares it. Read by the catalogue intake on 2026-11-28.

Questions

Can I use xlm-roberta-large-distemist commercially?

Commercial use permitted. mit, as the repository declares it. Read by the catalogue intake on 2026-11-28.

How do I run xlm-roberta-large-distemist without installing anything?

Use the form under “Run it here” on this page: fill in the inputs and press Run model. It runs on our servers on CPU only, typically in 31s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.

What task does this model perform?

It performs token classification, specifically named entity recognition to identify biomedical entities such as disease mentions in Spanish text.

What dataset was used to fine-tune the model?

It was fine-tuned on the DisTEMIST dataset (bigbio/distemist), a benchmark for disease entity mention recognition in Spanish.

Can this model be used in clinical practice or healthcare delivery?

No. The model is intended strictly for research purposes and must not be used for diagnosis, patient care, or any clinical decisions.

What level of performance does the model achieve?

The model achieves an F1 score of 0.817 on the DisTEMIST evaluation benchmark.

How to cite it

García Subies, Guillem and Barbero Jiménez, Álvaro and Martínez Fernández, Paloma. A comparative analysis of Spanish Clinical encoder-based models on NER and classification tasks. Journal of the American Medical Informatics Association, 31(9):2137-2146, 2024. doi: 10.1093/jamia/ocae054.

Written from xlm-roberta-large-distemist's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.