loading-openmed-models SKILL.md skillA
loading-openmed-models from maziyarpanahi/openmed is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add maziyarpanahi/openmed/loading-openmed-models@v1.0Pins v1.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- maziyarpanahi/openmed
- Path
skills/loading-openmed-models/SKILL.md- Versions recorded
- 1
- Latest version
- v1.0, committed Jul 20, 2026
- Size
- 8,362 bytes
- Repository stars
- 5,784
- License
- Apache-2.0
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).
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Loading OpenMed Models OpenMed models download **once** from the Hugging Face Hub into a local cache, then run **fully on-device** — no network, no telemetry. This skill covers how to load a model, reuse it across many calls without reloading weights, point at a local copy, and run offline. ## When to use - You are about to run NER repeatedly and want to load the model **once**. - You need to control where weights are cached (`cache_dir`) or force CPU/GPU. - You must run **offline** in a locked-down or air-gapped environment. - You are choosing between a registry key, a full HF id, or a local directory. For *which* model to load, see `choosing-openmed-models`. To actually run it, see `extracting-clinical-entities`. ## Install ```bash pip install "openmed[hf]" # adds Hugging Face transformers + hub download ``` ## The three ways to name a model `analyze_text`, `extract_pii`, `load_model`, and `ModelLoader.load_model` all accept the same `model_name` in three forms: | Form | Example | Notes | | --- | --- | --- | | Registry key | `"disease_detection_superclinical"` | Short, resolved via the bundled registry. | …
Read the whole file at its exact version.
How to install
mdr add maziyarpanahi/openmed/loading-openmed-models@sha256:5ffe26d4c7eb7fd7The line at the top of this page pins the label v1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_mmbq65dbkiqz2dpc)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jul 20, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8362 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
maziyarpanahi/openmed · 5,784 stars · license Apache-2.0 · pushed 2026-11-07 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_mmbq65dbkiqz2dpc GET https://markdownregistry.com/api/v1/resolve?ref=maziyarpanahi/openmed/loading-openmed-models GET https://markdownregistry.com/api/v1/blob/5ffe26d4c7eb7fd7f4fe08c7993bd07a10487db834be746291a951f8173353cd
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.