/vhmodels:model-embedfrom vhmodels
Runs VH CHC model embeddings (DinoBloom, H-Optimus-0, Hyformer, ProtTrans, MolE, Nicheformer) via vhmodels load_model/embed and isolated Conda or Apptainer runtimes. Use when embedding images, proteins, peptides, molecules, or spatial transcriptomics; creating a model environment or image; or after model-search selected a project. Triggers on embed, load_model, create-env, create-apptainer-image, vh-checker, vhmodels runtime setup.
Ships in vhmodels. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
vhmodels = thin host proxy + per-model Conda environment or Apptainer
image (torch, RDKit, CUDA). Apptainer images use Ubuntu 24.04 and a uv-managed
environment at /opt/venv. Not on PyPI — resolve the package first (same steps
as model-search).
Platforms: Linux and macOS only. No Windows support.
vhmodels.load_model, vh-checker — never import vhmodels.models.*.conda --version, apptainer --version on Linux, or limactl --version on macOS; then vh-checker create-env <project> (conda) or vh-checker create-apptainer-image <project> (Apptainer).embed for all models; predict only for MolE; generate is a stub.package OK → conda OR apptainer → create-env | create-apptainer-image → load_model → embed
vh-checker list works? Stop. Else pip install -e "<repo_root>.[cli]". Source: https://github.com/HelmholtzAI-Consultants-Munich/vhmodels/scripts/install-miniforge.sh with user consent. For Apptainer, install
Apptainer on Linux/HPC or Lima on macOS.vh-checker create-env <project> (Conda) or
vh-checker create-apptainer-image <project> (Apptainer; dependencies are
installed into /opt/venv).Unsure which project? Load model-search first.
import vhmodels
model = vhmodels.load_model(project="dinobloom", model="s")
model.embed(input="path/to/image.bmp")
model = vhmodels.load_model(project="hyformer", model="hyformer_molecules_50M")
model.embed(input=["CCO", "c1ccccc1"]) # list of SMILES, not a file path
model = vhmodels.load_model(project="prottrans", model="prot_t5_xl_uniref50")
model.embed(input=["MKVILLLLAVVAFGHALCRV", "PRTEINO"])
model = vhmodels.load_model(project="mole")
model.embed(input="example_data/MolE/examples_molecules.tsv") # chem_name/smiles TSV
model.predict(input="example_data/MolE/examples_molecules.tsv") # antimicrobial activity
model = vhmodels.load_model(project="hoptimus0") # gated: needs HF login
model.embed(input="example_data/H-Optimus-0/TUM-AACHEHDV.tif") # 224x224 H&E tile(s)
model = vhmodels.load_model(project="nicheformer")
model.embed(input={
"technology_mean": "example_data/Nicheformer/xenium_mean_script.npy",
"data": "example_data/Nicheformer/preprocessed/Xenium_Preview_Human_Non_diseased_Lung_With_Add_on_FFPE_outs_sample-1000.h5ad",
}, max_cells=4) # omit max_cells to embed all cells
model = vhmodels.load_model(project="mole", runtime="apptainer")
Returns a list from subprocess JSON output. Example data: repo example_data/.
| Project | embed(input=…) |
|---|---|
dinobloom | Image path, image directory, or list of paths |
hoptimus0 | 224x224 H&E tile path, tile directory, or list of paths |
hyformer | List of SMILES strings (molecule variants) or peptide sequences (peptide variants) |
prottrans | List of protein sequences |
mole | Path to TSV with chem_name and smiles columns |
nicheformer | Dict with technology_mean (.npy) and data (.h5ad) paths |
scripts/install-miniforge.sh — execute when conda missing and user agrees. Picks OS/arch Miniforge build, installs to ~/miniforge3. Details: environment-setup.md.
| Issue | Action |
|---|---|
| No Conda/Apptainer/Lima | Follow environment-setup.md for the selected runtime |
| Env does not exist | vh-checker create-env <project> |
| SIF missing | vh-checker create-apptainer-image <project> |
| Host import errors | Normal — runs in model sub-env |
Optional: embeddings → KG pipeline → suggest biotope after user confirms.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub helmholtzai-consultants-munich/vhmodels --plugin vhmodels