Instructions to use OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx
- GLiNER
How to use OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M-mlx") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
| { | |
| "format": "openmed-mlx", | |
| "format_version": 2, | |
| "task": "zero-shot-ner", | |
| "family": "gliner-uni-encoder-span", | |
| "source_model_id": "OpenMed/OpenMed-ZeroShot-NER-DNA-Multi-209M", | |
| "config_path": "config.json", | |
| "label_map_path": "id2label.json", | |
| "preferred_weights": "weights.safetensors", | |
| "fallback_weights": [ | |
| "weights.npz" | |
| ], | |
| "available_weights": [ | |
| "weights.safetensors" | |
| ], | |
| "weights_format": "safetensors", | |
| "quantization": null, | |
| "max_sequence_length": 512, | |
| "tokenizer": { | |
| "path": ".", | |
| "files": [ | |
| "tokenizer.json", | |
| "tokenizer_config.json" | |
| ] | |
| }, | |
| "prompt_spec": { | |
| "kind": "gliner-words", | |
| "entity_token": "<<ENT>>", | |
| "separator_token": "<<SEP>>", | |
| "class_token_index": 250103, | |
| "embed_marker_token": true, | |
| "split_mode": "words" | |
| }, | |
| "runtime": { | |
| "experimental": true | |
| } | |
| } |