All models

Multi-Modal Foundation · PlanTL-GOB-ES

roberta-base-biomedical-es

A Spanish RoBERTa language model pretrained on biomedical text for masked language modelling and fine-tuning.

What roberta-base-biomedical-es is

roberta-base-biomedical-es is a biomedical language model for Spanish developed by the Text Mining Unit (TeMU) at the Barcelona Supercomputing Center. Pretrained using the RoBERTa-base architecture, it addresses the scarcity of dedicated language representations for Spanish biomedical and life-sciences literature.

The model is trained on a curated Spanish biomedical corpus comprising approximately 963 million tokens gathered from medical web crawls, clinical case reports, SciELO publications, patents, Wikipedia life sciences articles, and PubMed open-access documents. Out of the box, it performs masked language modelling (fill-mask) and is designed to be adapted via fine-tuning for downstream natural language processing tasks such as text classification and named entity recognition.

How it works

The model implements the RoBERTa base architecture and subword-level masked language modelling. Text is tokenised using a byte version of Byte-Pair Encoding (BPE) with a vocabulary size of 52,000 tokens. The pretraining process followed the hyperparameters of the original RoBERTa base model, training for 48 hours across 16 NVIDIA V100 GPUs (16 GB DDRAM each) using the Adam optimiser, a peak learning rate of 0.0005, and an effective batch size of 2,048 sentences.

The training dataset was assembled through a cleaning pipeline involving format parsing, sentence splitting, language detection, sentence quality filtering, deduplication of repetitive content, preservation of document boundaries, and final global deduplication across concatenated datasets. Its primary component is a dedicated medical web crawler covering over 3,000 Spanish biomedical and health domains, complemented by clinical case descriptions, SciELO, EMEA drug documents, MedlinePlus extracts, and patent registries.

Key facts

Architecture
RoBERTa-base
Vocabulary size
52,000 tokens
Training data volume
Approximately 963 million tokens
Primary task
Masked language modelling (fill-mask)
Input format
Text sequences with masked tokens
Output format
Predicted tokens with confidence scores
Language
Spanish

What you can use it for

Masked token prediction
Predicting missing biomedical terms or phrases directly within Spanish sentences using the base fill-mask pipeline.
Chemical and drug entity recognition
Fine-tuning on datasets such as PharmaCoNER to extract pharmaceutical compounds and chemical mentions from Spanish clinical text.
Oncology morphology identification
Adapting the model for named entity recognition of tumour morphology terms, evaluated using benchmarks such as CANTEMIST.
Clinical information extraction
Fine-tuning to detect and categorise clinical variables in hospital discharge summaries, as evaluated on the ICTUSnet stroke dataset.

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

roberta-base-biomedical-es

Use the model's mask token, commonly [MASK] or <mask>.

Needs sequence with a mask

Strengths and limits

Good at

  • Outperformed multilingual BERT (mBERT) and BETO across Spanish biomedical named entity recognition benchmarks including PharmaCoNER (89.48 F1), CANTEMIST (83.87 F1), and ICTUSnet (88.12 F1).
  • Pretrained on a domain-specific corpus of 963 million tokens representing diverse biomedical sources from Spain and Latin America, including literature, patents, and web texts.
  • Utilises a domain-tailored byte-level BPE tokeniser with a vocabulary of 52,000 tokens.

Watch out for

  • Ready-to-use solely for masked language modelling, requiring additional supervised fine-tuning for tasks like text classification or named entity recognition.
  • Pretrained exclusively on Spanish biomedical corpora, restricting its direct utility in other languages or general non-scientific text.
  • May reflect biases and undesirable distortions present in the underlying web-crawled and clinical source text.

Inputs and outputs

You provide

  • Sequence with a mask

    Use the model's mask token, commonly [MASK] or <mask>.

You get back

  • Labels with confidence scores, highest first.

roberta-base-biomedical-es 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/plantl-gob-es-roberta-base-biomedical-es/runs \
  -H "Authorization: Bearer $COROLLARY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "sequence": "<Sequence with a mask>"
  }
}'

Make an API key, then read the models reference.

Licence

Commercial use permitted · apache-2.0

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

Questions

Can I use roberta-base-biomedical-es commercially?

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

How do I run roberta-base-biomedical-es 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 10s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.

Can this model be used directly for classification or named entity recognition without training?

No. The model is released as a pretrained masked language model and requires fine-tuning on labelled task-specific data for named entity recognition or sequence classification.

What corpora were used to pretrain the model?

The model was trained on roughly 963 million tokens of Spanish text drawn from a 3,000-URL biomedical web crawler, clinical case miscellanies, SciELO Spain, the BARR2 abbreviation dataset, Wikipedia life sciences articles, medical patent texts, EMEA pharmaceutical documents, MedlinePlus parallel data, and PubMed.

How does it compare to general Spanish and multilingual models?

When fine-tuned for biomedical named entity recognition, it achieved higher F1 scores than both mBERT and BETO on PharmaCoNER, CANTEMIST, and ICTUSnet.

How to cite it

Casimiro Pio Carrino, Jordi Armengol-Estapé, Asier Gutiérrez-Fandiño, Joan Llop-Palao, Marc Pàmies, Aitor Gonzalez-Agirre, and Marta Villegas. Biomedical and Clinical Language Models for Spanish: On the Benefits of Domain-Specific Pretraining in a Mid-Resource Scenario. arXiv:2109.03570, 2021.

Written from roberta-base-biomedical-es'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.