Downloads · 30 days
11
25% of all-time downloads
OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx
OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx 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.
This repository contains an OpenMed MLX conversion of OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M for Apple Silicon inference with OpenMed.
Downloads · 30 days
11
25% of all-time downloads
All-time downloads
44
Public
Repo size
1.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
From the Hugging Face model README
This repository contains an OpenMed MLX conversion of OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M for Apple Silicon inference with OpenMed.
Artifact metadata:
zero-shot-nergliner-uni-encoder-spansafetensorsGLiNERMLXPipelineOpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209Mconfig.json, id2label.json, openmed-mlx.json, MLX weights, and tokenizer assetsDownload this OpenMed MLX artifact directly from the Hub:
hf download OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx --local-dir ./OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx
Use the downloaded directory when you want to pin this exact MLX artifact in an offline or local Apple Silicon workflow.
pip install openmed
pip install "openmed[mlx]"
from huggingface_hub import snapshot_download
from openmed.mlx.inference import GLiNERMLXPipeline
model_path = snapshot_download("OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx")
pipe = GLiNERMLXPipeline(model_path)
entities = pipe.predict_entities(
"Patient John Doe was seen at Stanford Hospital.",
labels=["person", "organization", "location"],
threshold=0.5,
)
for entity in entities:
print(entity)
Prompt packing metadata included with the model:
{
"kind": "gliner-words",
"entity_token": "<<ENT>>",
"separator_token": "<<SEP>>",
"class_token_index": 250103,
"embed_marker_token": true,
"split_mode": "words"
}
Use Swift with OpenMedKit, not with MLX weight files directly.
https://github.com/maziyarpanahi/openmedid2label.json to your app target.This MLX model is for Python services on Apple Silicon, local MLX inference on macOS, and Hub-hosted model distribution. If a given environment cannot write weights.safetensors, OpenMed falls back to weights.npz so the model remains usable.
OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M