nvalchemi-model-wrapping

nvalchemi-model-wrapping is a skill for Claude Code from NVIDIA/nvalchemi-toolkit. It costs 94 tokens per session (3,346 once invoked), scanned A, original, Apache-2.0.

A guide to connecting an arbitrary machine-learning model for atomic systems to nvalchemi. A machine-learning interatomic potential predicts properties such as energies or forces from the atoms in a material.

In plain words
What is it for?
Use it to wrap models such as MACE or AIMNet2, load pretrained checkpoints, and make custom models usable for nvalchemi training, fine-tuning, or molecular dynamics.
Why use it?
Different models may expect different input and output formats. The BaseModelMixin wrapper gives nvalchemi a standard way to send data to the model and read its results.

Skill for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/.

Good fit Use it to wrap models such as MACE or AIMNet2, load pretrained checkpoints, and make custom models usable for nvalchemi training, fine-tuning, or molecular dynamics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia/nvalchemi-toolkit/nvalchemi-model-wrapping
About the project

ALCHEMI Toolkit is a Python framework that uses GPUs to run atomic simulations and train machine-learned models for chemistry and materials science. Researchers and developers use it for molecular dynamics, geometry relaxation, and model training across one or multiple GPUs. Its catalogue add-ons guide coding agents in using the toolkit’s APIs and repository conventions.

NVIDIA/nvalchemi-toolkit · 204 stars · on GitHub · nvidia.github.io

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.

Any agent
npx skills add NVIDIA/nvalchemi-toolkit --skill nvalchemi-model-wrapping
Clone the repo
git clone --depth 1 https://github.com/NVIDIA/nvalchemi-toolkit

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 nvalchemi-model-wrapping

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia/nvalchemi-toolkit/nvalchemi-model-wrapping/github.svg)](https://agentmods.dev/skills/nvidia/nvalchemi-toolkit/nvalchemi-model-wrapping)
Your own site
<a href="https://agentmods.dev/skills/nvidia/nvalchemi-toolkit/nvalchemi-model-wrapping"><img src="https://agentmods.dev/badge/skills/nvidia/nvalchemi-toolkit/nvalchemi-model-wrapping/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nvalchemi-model-wrapping

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia/nvalchemi-toolkit/nvalchemi-model-wrapping"><img src="https://agentmods.dev/badge/skills/nvidia/nvalchemi-toolkit/nvalchemi-model-wrapping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00094 $0.03346
Opus 5.5 $0.00038 $0.01338
Sonnet 5.5 $0.00019 $0.00669
Haiku 4.5 $0.00009 $0.00335

Measured 1mo ago against content hash e295f9ff8abb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nvalchemi-model-wrapping 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 1mo 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/skills/nvalchemi-model-wrapping/SKILL.md · 373 lines

How it starts

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

nvalchemi Model Wrapping

Overview

To use an arbitrary MLIP (Machine Learning Interatomic Potential) within nvalchemi, pair it with the BaseModelMixin interface. This standardizes how models receive AtomicData/Batch inputs and produce ModelOutputs.

from nvalchemi.models.base import BaseModelMixin, ModelConfig, NeighborConfig
from nvalchemi.data import AtomicData, Batch
from nvalchemi._typing import ModelOutputs

Architecture

A wrapper subclasses nn.Module and BaseModelMixin, and holds the underlying model by composition (self.model = ...). This is the pattern used by every built-in wrapper (DemoModelWrapper, MACEWrapper, AIMNet2Wrapper, LennardJonesModelWrapper).

┌──────────────────────┐    ┌──────────────────┐
│  YourModel(nn.Module)│    │  BaseModelMixin   │
│  - forward()         │    │  - model_config   │
│  - your layers       │    │  - adapt_input()  │
└──────────────────────┘    │  - adapt_output() │
        held via            └────────┬─────────┘
      composition                    │
             ┌──────────▼───────────────────────┐
             │  YourModelWrapper                 │
             │  (nn.Module, BaseModelMixin)      │
             │  self.model = YourModel(...)      │
             │  self.model_config = ModelConfig(…)│
             └───────────────────────────────────┘

nn.Module must come first in the bases so PyTorch initializes correctly.


Step-by-step guide

1. Set model_config in __init__ (capabilities & runtime control)

ModelConfig unifies two kinds of fields:

  • Capability fields (frozen frozenset/bool at construction) describe what the checkpoint can do: outputs, autograd_outputs, autograd_inputs, required_inputs, optional_inputs, supports_pbc, needs_pbc, neighbor_config.
  • Runtime fields (mutable) control what to compute each pass: active_outputs (defaults to outputs) and gradient_keys.

BaseModelMixin enforces that every wrapper sets self.model_config in __init__ (a missing one raises TypeError at construction).

Read the full file on GitHub · 373 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. 1mo ago Changed · +12 lines e295f9ff8abb
  2. 2mo ago First seen · 361 lines · 94 tokens per session scan A 5c8e5a25dffb

Subscribe to this mod's changes

nvalchemi-model-wrapping is a skill published in the GitHub repository NVIDIA/nvalchemi-toolkit (204 stars, last pushed yesterday), licensed Apache-2.0. It adds 94 tokens to every session and 3,346 once invoked, about $0.0004 per session on Opus 5.5. 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-30.

Related

nvalchemi-model-wrapping compared with skills from other repositories

nvalchemi-model-wrapping next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nvalchemi-model-wrappingNVIDIA/nvalchemi-toolkitSkill204yesterdayApache-2.0A94Claude Code
arboretoK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA70Claude Code
torchdrugK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA64Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA84Claude Code, Codex
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill3.9kyesterdayApache-2.0A56Claude Code
ml-training-recipesOrchestra-Research/AI-Research-SKILLsSkill14k26d agoMITA88Claude Code