Views
No views yet
OpenMed/OpenMed-PII-ClinicalE5-Small-33M-v1 for Apple Silicon inference with OpenMed.OpenMed/OpenMed-PII-ClinicalE5-Small-33M-v1bert (BertForTokenClassification)en)config.json, id2label.json, MLX weight files)safetensorsopenmed[mlx] on Apple Silicon Macs| Build | Weights | Notes |
|---|---|---|
fp32 (source / -mlx) | 133 MB | full precision |
this repo (-mlx-q8) | 37.6 MB | 8-bit affine, group size 64 |
cvv: 83 → 7 F1), so 8-bit is the recommended sub-50 MB target.nvidia/Nemotron-PII (test split),
run through the identical OpenMed extract_pii pipeline — only the weight precision differs:| Build | Strict F1 | Relaxed F1 (IoU≥0.5) | Predictions identical to fp32 |
|---|---|---|---|
| fp32 | 85.89 | 87.84 | — |
| this repo (8-bit) | 85.90 | 87.87 | 99.8% |
pip install "openmed[mlx]"1from openmed import extract_pii
2
3text = "<your clinical note here>"
4result = extract_pii(
5 text,
6 model_name="OpenMed/OpenMed-PII-ClinicalE5-Small-33M-v1",
7 use_smart_merging=True,
8)
9
10for entity in result.entities:
11 print(entity.label, entity.text, round(entity.confidence, 4))openmed[mlx] is installed. On other systems, OpenMed falls back to the Hugging Face / PyTorch backend.1pip install "openmed[mlx]"
2hf download OpenMed/OpenMed-PII-ClinicalE5-Small-33M-v1-mlx-q8 --local-dir ./OpenMed-PII-ClinicalE5-Small-33M-v1-mlx-q8hf auth login or set HF_TOKEN.1from openmed import extract_pii
2from openmed.core import OpenMedConfig
3
4text = "<your clinical note here>"
5result = extract_pii(
6 text,
7 model_name="./OpenMed-PII-ClinicalE5-Small-33M-v1-mlx-q8",
8 config=OpenMedConfig(backend="mlx"),
9 use_smart_merging=True,
10)
11
12print(result.entities)bert. Python MLX supports this artifact today, and this family is in the current OpenMedKit Swift MLX support matrix.config.jsonid2label.jsonweights.safetensors and/or weights.npz)OpenMed/OpenMed-PII-ClinicalE5-Small-33M-v1