Agent skill · AI & Agents

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).

maziyarpanahigithub.com/maziyarpanahiGitHub ↗
claude-codeApache-2.0
Install
npx skills add maziyarpanahi/openmed --skill loading-openmed-models --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.0
Path: skills/loading-openmed-models/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 4,851
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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. | | Full HF id | `"OpenMed/OpenMed-NER-DiseaseDetect-BigMed-278M"` | Anythi

What's inside
Steps it walks through
  1. When to use
  2. Install
  3. The three ways to name a model
  4. Quick start: load and reuse a loader
  5. Load weights directly
  6. Configure the cache, device, and org
  7. First-run download, then fully offline
  8. Check a model's maximum sequence length
  9. Free memory when done
  10. Hand-off to / from OpenMed
  11. Edge cases & gotchas
  12. Standards & references
Commands it runs
pip install "openmed[hf]"   # adds Hugging Face transformers + hub download
export HF_HUB_OFFLINE=1
export TRANSFORMERS_OFFLINE=1
More from openmed
All skills →
About this skill
What does the loading-openmed-models skill do?

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).

How do I install it?

Run `npx skills add maziyarpanahi/openmed --skill loading-openmed-models --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From maziyarpanahi/openmed, a repository with 4,851 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going