add-model

add-model is a command for Claude Code from AMDResearch/ai4science-studio. It costs 0 tokens per session (1,205 once invoked), scanned A, original, MIT.

A repository command for adding a machine-learning model to AI4Science Studio. It places the model in the appropriate scientific area and records its source, task, license, documentation, and citation details.

In plain words
What is it for?
Use it when adding models for earth science, materials science, protein folding, healthcare, or physics simulation, including models whose weights come from sources other than Hugging Face.
Why use it?
It avoids inconsistent model folders and missing information about where a model came from or how it may be used.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/amdresearch/ai4science-studio/add-model
Clone the repo
git clone --depth 1 https://github.com/AMDResearch/ai4science-studio

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-model

README.md
[![agentmods](https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/add-model.svg)](https://agentmods.dev/commands/amdresearch/ai4science-studio/add-model)
Your own site
<a href="https://agentmods.dev/commands/amdresearch/ai4science-studio/add-model"><img src="https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/add-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,205 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01205
Opus 5 $0.00000 $0.00602
Sonnet 5 $0.00000 $0.00241
Haiku 4.5 $0.00000 $0.00120

Measured 3d ago against content hash 1f38cb1d77be, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/add-model.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add a new model to AI4Science Studio

Add a new model to this repository following all repo conventions.

Steps

  1. Identify domain — pick from earth_science/, material_science/, protein_folding/, healthcare/, or physics_simulation/. If the model clearly belongs to a new domain, create the domain folder with a README.md first.

  2. Derive the slug:

    • HF id org/model → directory name org__model (replace / with __).
    • If a well-known public name is used instead (e.g. StormCast, NeuralGCM), use that name and document the canonical HF id inside the model's README.md.
    • If weights are not on Hugging Face (e.g. GCS bucket, GitHub release, Google Drive), set the HF id field to N/A and add an "Obtaining model weights" section with a fetch snippet.
  3. Create the model folder by copying _template/ to <domain>/models/<slug>/.

  4. Fill in README.md with:

    • Hugging Face model id (or N/A with alternate source documented)
    • Task description
    • License (SPDX id or direct link)
    • Upstream code repo and paper links
    • Acknowledgements and citation section (required — see template):
      • Upstream repo URL
      • Paper citation (author, title, venue, DOI or arXiv id)
      • BibTeX or DOI-based "cite as" block copied from the upstream repo or model card
      • ROCm blog URL and author names (AMD Silo AI) if a blog post exists
      • Any named collaboration (e.g. AstraZeneca × AMD, ORNL × AMD)
  5. Add recipes under <slug>/recipes/. Use one subfolder per task (recipes/inference/, recipes/finetune/, etc.). Each recipe subfolder needs a README.md.

  6. Add an examples/ directory with ready-to-run scripts:

    • docker_run.sh — launches the container; auto-detects AMD Container Toolkit vs device passthrough; checks for existing container before launching; auto-clones the upstream repo if absent.
    • run_inference.sh / run_inference.py — runs the model; all key params overridable via env vars with sensible defaults; prints a config summary before running.
    • preflight_<slug>.py — smoke-test that verifies GPU access and imports before a full run.
    • sbatch_inference_amd.sh — SLURM batch script (use --rocm for AMD/Apptainer GPU passthrough, not --nv). Named _amd.sh (not _mi300x.sh) — the same script covers MI250X, MI300X, and MI350X with a rocm7.2.x image.
    • build_overlay_amd.sh — (for HPC models with heavy pip deps, e.g. >1 GB of packages) builds a persistent Apptainer ext3 overlay pre-loaded with pip deps; mount :ro in inference jobs to skip the install phase.
    • Add run_ensemble.py, run_finetune.sh, etc. as applicable.
    • All scripts must be chmod +x.

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 66 lines · 0 tokens per session scan A 1f38cb1d77be

Subscribe to this mod's changes

add-model is a command published in the GitHub repository AMDResearch/ai4science-studio (4 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,205 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.