Loading Openmed Models

Load OpenMed clinical/biomedical NER models from the Hugging Face Hub or a local path and reuse them efficiently across calls. Use when the user wants to load an OpenMed model, control the model cache, run fully offline after a one-time download, reuse a ModelLoader to avoid reloading, set a cache_dir or device, or pick between a registry key, a full Hugging Face id, and a local directory. Pairs with choosing-openmed-models (pick the model) and extracting-clinical-entities (run it).

maziyarpanahi 4ea4cc4 8.1 KB Updated

File contents

maziyarpanahi/openmed/tree/main/skills/loading-openmed-models commit 4ea4cc4fb3

Frequently asked questions

npx skillmds@latest add maziyarpanahi/loading-openmed-models