biomedical-ner-gene-chemical-disease-species-small
fast biomedical NER for CPUs and browsers
2 min read
This model extracts six entity types from English biomedical texts: genes, chemicals, diseases, species, variants, and cell lines. It is a lightweight 66.4M-parameter version of the quorumbio model with six transformer layers instead of twelve, created via distillation (training a smaller student model using signals from a larger teacher model) from the base release while keeping every second layer. It fits bioinformatics pipelines that need fast CPU inference, a tiny footprint, and ready-to-use ONNX weights.
Key features
- 6 layers instead of 12 (66.4M parameters), clocking 8.61 ms per sentence on CPU with the int8 ONNX build.
- Tags 6 entity classes—Gene, Chemical, Disease, Species, Variant, and CellLine—via token classification.
- Validation mean F1 drops by just 0.013 compared to the full model (0.881 vs. 0.894).
- Released under the Apache-2.0 license, with both FP32 and dynamic int8 ONNX files included in the repo.
What you can do
- Annotate biomedical abstracts in batch scripts or literature search services without paying for a GPU.
- Run entity recognition directly on a CPU or inside client-side apps using ONNX (66.8 MB in int8).
- Benchmark its speed and accuracy against the full quorumbio/biomedical-ner-gene-chemical-disease-species model on your own workload.
Example
from transformers import pipeline
ner = pipeline(
"token-classification",
model="quorumbio/biomedical-ner-gene-chemical-disease-species-small",
aggregation_strategy="simple",
)
ner("The BRCA1 c.68_69delAG mutation was found in HeLa cells and in mice with breast cancer that were treated with tamoxifen.")Read more
DetailsTest F1 (pipeline): BC5CDR — 0.877, NCBI-disease — 0.869, NLM-Gene — 0.915, BioRED — 0.882.
CPU ONNX: 8.61 ms/sentence for int8 (66.8 MB) and 15.44 ms for fp32 (265.6 MB).
Training: 5 epochs on 1x RTX 3060 (~9 minutes) on BC5CDR, NCBI-disease, NLM-Gene, and BioRED with no test abstract leakage.
Limitations: English only, no database ID normalization, weaker on rare entities, full-text articles, and clinical notes; not for clinical diagnosis.










Comments