Downloads · 30 days
12
36% of all-time downloads
OpenMed/OpenMed-PII-BioClinicalBERT-Base-110M-v1-onnx-android
OpenMed-PII-BioClinicalBERT-Base-110M-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
12
36% of all-time downloads
All-time downloads
33
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.onnx824 MB · 66%
From the Hugging Face model README
OpenMed/OpenMed-PII-BioClinicalBERT-Base-110M-v1-onnx-android
A 110M BERT model for detecting personal and clinical identifiers 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 | PII token classification |
| Language | English |
| Architecture | BERT |
| Parameters | 110M (110,000,000) |
| Maximum sequence length | 512 tokens |
| Entity labels | account_number, age, api_key, bank_routing_number, biometric_identifier, blood_type, certificate_license_number, city, company_name, coordinate, country, county, credit_debit_card, customer_id, cvv, date, date_of_birth, date_time, device_identifier, education_level, email, employee_id, employment_status, fax_number, first_name, gender, health_plan_beneficiary_number, http_cookie, ipv4, ipv6, language, last_name, license_plate, mac_address, medical_record_number, occupation, password, phone_number, pin, political_view, postcode, race_ethnicity, religious_belief, sexuality, ssn, state, street_address, swift_bic, tax_id, time, unique_id, url, user_name, vehicle_identifier |
| Source model | OpenMed/OpenMed-PII-BioClinicalBERT-Base-110M-v1 |
| License | apache-2.0 |
pip install --upgrade "openmed[onnx-runtime]"
from openmed import OnnxModel
model = OnnxModel.from_pretrained("OpenMed/OpenMed-PII-BioClinicalBERT-Base-110M-v1-onnx-android")
entities = model("Patient Alice Nguyen can be reached at [email protected].")
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-PII-BioClinicalBERT-Base-110M-v1-onnx-android";
const model = await loadOnnxModel(repo);
const entities = await model("Patient Alice Nguyen can be reached at [email protected].");
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("Patient Alice Nguyen can be reached at [email protected].")
}
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 detecting personal and clinical identifiers. 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}
}