This repository contains an MLX packaging of OpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1 for Apple Silicon inference with OpenMed.
OpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1deberta-v2 (DebertaV2ForTokenClassification)pt)config.json, id2label.json, MLX weight files)safetensorsopenmed[mlx] on Apple Silicon MacsOpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1config.json, id2label.json, openmed-mlx.json, MLX weights, and tokenizer assetsDownload this OpenMed MLX artifact directly from the Hub:
hf download OpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1-mlx --local-dir ./OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1-mlx
Use the downloaded directory when you want to pin this exact MLX artifact in an offline or local Apple Silicon workflow.
Use the standard OpenMed API if you want OpenMed to choose the right runtime automatically:
pip install "openmed[mlx]"
from openmed import extract_pii
text = "<your clinical note here>"
result = extract_pii(
text,
model_name="OpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1",
use_smart_merging=True,
)
for entity in result.entities:
print(entity.label, entity.text, round(entity.confidence, 4))
On Apple Silicon, OpenMed can use this preconverted MLX artifact when openmed[mlx] is installed. On other systems, OpenMed falls back to the Hugging Face / PyTorch backend.
If you want to use this MLX snapshot explicitly, download it locally and point OpenMed at the directory:
pip install "openmed[mlx]"
hf download OpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1-mlx --local-dir ./OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1-mlx
from openmed import extract_pii
from openmed.core import OpenMedConfig
text = "<your clinical note here>"
result = extract_pii(
text,
model_name="./OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1-mlx",
config=OpenMedConfig(backend="mlx"),
use_smart_merging=True,
)
print(result.entities)
This repo is based on deberta-v2. Python MLX supports this artifact today, but the current public OpenMedKit Swift MLX rollout is limited to bert, distilbert, roberta, xlm-roberta, and electra.
If you are building an Apple app today, the recommended paths for this model are:
This repo uses the current legacy-compatible MLX layout:
config.jsonid2label.jsonweights.safetensors and/or weights.npz)Tokenizer assets are bundled in this repo.
OpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo OpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1-mlx ./model-folderOpenMed/OpenMed-PII-Portuguese-SuperClinical-Small-44M-v1