Downloads · 30 days
33
53% of all-time downloads
OpenMed/OpenMed-NER-ProteinDetect-BioPatient-108M-v1-onnx-android
OpenMed-NER-ProteinDetect-BioPatient-108M-v1-onnx-android is a token classification model from OpenMed. Use it when you need labels on individual words, such as names. It is set up for openmed. The card lists the license as apache-2.0.
<div align="center" <img src="https://raw.githubusercontent.com/maziyarpanahi/openmed/master/docs/brand/openmed-mascot-lockup.png" alt="OpenMed: on-device clinical AI" width="360"
Downloads · 30 days
33
53% of all-time downloads
All-time downloads
62
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx823 MB · 66%
From the Hugging Face model README
OpenMed/OpenMed-NER-ProteinDetect-BioPatient-108M-v1-onnx-android
A 108M BERT model for extracting protein mentions in English clinical and biomedical text.
Runs locally after download on Python CPU, in the browser, and on Android.
OpenMed | Documentation | Model collection | Paper
</div>| Field | Value |
|---|---|
| Task | Protein named-entity recognition |
| Language | English |
| Architecture | BERT |
| Parameters | 108M (108,000,000) |
| Maximum sequence length | 512 tokens |
| Entity labels | protein, protein_complex, protein_enum, protein_familiy_or_group, protein_variant |
| Source model | OpenMed/OpenMed-NER-ProteinDetect-BioPatient-108M |
| License | apache-2.0 |
pip install --upgrade "openmed[onnx-runtime]"
from openmed import OnnxModel
model = OnnxModel.from_pretrained("OpenMed/OpenMed-NER-ProteinDetect-BioPatient-108M-v1-onnx-android")
entities = model("HER2 expression was elevated in the tumor.")
for entity in entities:
print(entity.to_dict())
OpenMed selects the CPU-oriented INT8 graph by default and returns labels, confidence scores, exact character offsets, and source text.
npm install openmed @huggingface/transformers onnxruntime-web
import { loadOnnxModel } from "openmed";
const repo = "OpenMed/OpenMed-NER-ProteinDetect-BioPatient-108M-v1-onnx-android";
const model = await loadOnnxModel(repo);
const entities = await model("HER2 expression was elevated in the tumor.");
The default INT8 path runs with WebAssembly. For WebGPU, select the FP16 graph:
const model = await loadOnnxModel(repo, {
variant: "fp16",
device: "webgpu",
});
Add JitPack to the consumer application's settings.gradle.kts:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("https://jitpack.io")
content { includeGroup("com.github.maziyarpanahi") }
}
}
}
Use the latest OpenMed build from the master branch:
dependencies {
implementation("com.github.maziyarpanahi:openmed:master-SNAPSHOT")
}
After downloading this model repository into an app-controlled directory:
import com.openmed.openmedkit.OpenMedKit
OpenMedKit.fromDirectory(modelDirectory).use { model ->
val entities = model.analyzeText("HER2 expression was elevated in the tumor.")
}
Inference and tokenization remain on-device.
| Artifact | Recommended use |
|---|---|
model_int8.onnx | CPU, WebAssembly, and Android default |
model_fp16.onnx | WebGPU and compatible accelerated runtimes |
model.onnx | Full-precision reference |
model.ort | Custom ONNX Runtime Mobile integration |
tokenizer.json | Cross-platform tokenizer |
openmed-onnx.json | Runtime contract and operator metadata |
All graphs use opset 18, dynamic batch and sequence axes, stable tensor names, and source-text offset metadata.
This model is part of OpenMed, an Apache-2.0, local-first clinical AI stack:
This model is intended for extracting protein mentions. It does not diagnose conditions or make clinical decisions. Evaluate recall, thresholds, and span behavior on appropriately governed data before deployment. Local execution supports privacy-preserving workflows but does not by itself guarantee regulatory compliance.
All examples in this card are synthetic.
@misc{panahi2025openmedneropensourcedomainadapted,
title={OpenMed NER: Open-Source, Domain-Adapted State-of-the-Art
Transformers for Biomedical NER Across 12 Public Datasets},
author={Maziyar Panahi},
year={2025},
eprint={2508.01630},
archivePrefix={arXiv},
primaryClass={cs.CL}
}