Python MLX: supported through openmed[mlx] on Apple Silicon Macs
Swift MLX: supported today in OpenMedKit on Apple Silicon macOS and real iPhone/iPad hardware
Python Quick Start
Use the standard OpenMed API if you want OpenMed to choose the right runtime automatically:
bash
pip install "openmed[mlx]"
python
from openmed import extract_pii
text = ""
result = extract_pii(
text,
model_name="OpenMed/OpenMed-PII-Telugu-ClinicalE5-Small-33M-v1",
lang="te",
use_smart_merging=True,
)
for entity in result.entities:
print(entity.label, entity.text, round(entity.confidence, 4))
On Apple Silicon, OpenMed auto-selects MLX when openmed[mlx] is installed. On other systems it falls back to the Hugging Face / PyTorch backend.
Use This Preconverted MLX Repo Directly
If you want to use this MLX snapshot explicitly, download it locally and point OpenMed at the directory:
Tokenizer assets are not bundled in this repo layout. OpenMed and OpenMedKit keep backward compatibility by falling back to the source tokenizer reference in config.json when needed.