Literature · IIC
mdeberta-v3-base-pharmaconer
A Spanish clinical language model fine-tuned for pharmaceutical and biomedical named entity recognition.
What mdeberta-v3-base-pharmaconer is
mdeberta-v3-base-pharmaconer is an encoder-based natural language processing model developed by IIC. It is a specialised adaptation of mdeberta-v3-base designed to carry out token classification on Spanish clinical and biomedical text.
The model was developed as part of a comparative benchmark analysing Spanish clinical encoder models across named entity recognition and document classification tasks. Fine-tuned on the PharmaCoNER dataset, it achieves an F1 score of 0.922 when identifying domain-specific entities within medical literature.
How it works
The model relies on the mdeberta-v3-base architecture, operating as a DeBERTa-v2 token classification pipeline. Fine-tuning on the PharmaCoNER dataset was executed using the AdamW optimiser with a batch size of 32, a learning rate of 1e-05, and early stopping patience set to 3 across up to 10 epochs. The classifier dropout, weight decay, warmup ratio, and warmup steps were all set to zero.
When provided with raw text input, the network processes the sequence through its transformer layers to classify individual tokens, returning labelled entities accompanied by confidence scores sorted in descending order.
Key facts
- Base architecture
- mdeberta-v3-base (DeBERTa-v2)
- Primary task
- Token classification (named entity recognition)
- Fine-tuning dataset
- PlanTL-GOB-ES/pharmaconer
- Language
- Spanish
- Performance metric
- 0.922 F1 score
- Input modality
- Text
- Output format
- Token labels with confidence scores
- GPU memory requirement
- 16 GB
What you can use it for
- Clinical Named Entity Recognition
- Extracting pharmaceutical mentions and clinical concepts from unstructured Spanish biomedical literature.
- Encoder Benchmark Evaluation
- Serving as an evaluation baseline for comparative studies examining encoder architectures on Spanish medical language tasks.
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
mdeberta-v3-base-pharmaconer
Strengths and limits
Good at
- Demonstrates an F1 score of 0.922 on the PharmaCoNER benchmark task.
- Specifically adapted for entity identification in Spanish biomedical and clinical texts.
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.
- Intended solely for research purposes and must not be used as a medical device for treatment, diagnosis, or clinical decisions.
- Operates exclusively on text inputs and requires up to 16 GB of GPU memory for execution.
Inputs and outputs
You provide
Text
Entities are labelled token by token.
You get back
Labels with confidence scores, highest first.
mdeberta-v3-base-pharmaconer 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.
curl https://corollary-labs.com/api/v1/models/iic-mdeberta-v3-base-pharmaconer/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 mdeberta-v3-base-pharmaconer commercially?
Commercial use permitted. mit, as the repository declares it. Read by the catalogue intake on 2026-11-28.
How do I run mdeberta-v3-base-pharmaconer 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 18s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.
What is the primary function of this model?
It detects and classifies tokens into clinical entity labels from Spanish biomedical and clinical text.
Which dataset was used to fine-tune the model?
It was fine-tuned on the PlanTL-GOB-ES/pharmaconer dataset.
Can this model be used directly for patient diagnosis?
No. The model is for research use only and must not be used for diagnosis, clinical decision-making, or patient care.
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 mdeberta-v3-base-pharmaconer'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.
