nvidia-skill-finder
Use for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill. Trigger on NVIDIA products, hardware, software,…
Pretrain a fresh KERMT model from scratch on a user-provided corpus. Builds a new vocabulary from the corpus, instantiates the model architecture from defaults, and launches pretrain_ddp.py inside the kermt container (detached for long runs). Unlike kermt-continue-pretrain, no
$ npx -y skills add NVIDIA/skills --skill bionemo-kermt-pretrain-scratch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/bionemo-kermt-pretrain-scratchContext preview
The summary Claude sees to decide when to auto-load this skill.
Pretrain a fresh KERMT model from scratch on a user-provided corpus. Builds a new vocabulary from the corpus, instantiates the model architecture from defaults, and launches pretrain_ddp.py inside the kermt container (detached for long runs). Unlike kermt-continue-pretrain, no
name: kermt-pretrain-scratch description: Pretrain a fresh KERMT model from scratch on a user-provided corpus. Builds a new vocabulary from the corpus, instantiates the model architecture from defaults, and launches pretrain_ddp.py inside the kermt container (detached for long runs). Unlike kermt-continue-pretrain, no starting checkpoint is loaded — the model is randomly initialized. license: Apache-2.0 compatibility: Requires docker, nvidia-container-toolkit, and a CUDA-capable NVIDIA GPU. Designed for Claude Code, Codex, and Nemotron. metadata: owner: evax@nvidia.com classification: workflow-skill risk_tier: skill # Line/token budget: ~210 lines, ~2400 tokens — well within the # 500-line / 5000-token cap for skill files. Most of the orchestration is # shared with kermt-continue-pretrain; the differences are documented below.
Pretrain a brand-new KERMT model from scratch on a user-provided corpus. Useful when you want to retrain a model on a custom chemistry domain rather than extending one of the released checkpoints. **Significantly more expensive than `kermt-continue-pretrain`** — no warm start, so the loss curves need to descend from scratch over many epochs.
Set `SKILL_DIR` to the absolute path of this installed skill directory. Export `KERMT_REPO` as the absolute path to the KERMT checkout used for model execution. The bundled container helper mounts that checkout at `/workspace` and this skill at `/skill` (read-only). Commands inside the container use `/skill/scripts/`; defaults are bundled in `config/`.
Same as `kermt-continue-pretrain`:
`torch.cuda.device_count()`; `--gpus 0,2` overrides. Single-GPU fallback: `--batch_size 32 --save_interval 500`. Multi-GPU keeps defaults (`--batch_size 256` etc.). Note: `--gpus N` uses **torch.cuda** indexing, which can differ from `nvidia-smi`'s display order on multi-GPU hosts (PCI bus vs. CUDA enumeration). To target a specific physical GPU, set `CUDA_VISIBLE_DEVICES` before invoking, or run `python -c "import torch; print([torch.cuda.get_device_name(i) for i in range(torch.cuda.device_count())])"` to confirm which device you're picking.
(80 GB VRAM). On smaller GPUs, downscale to avoid OOM:
| GPU class | VRAM | Suggested `--batch-size` | |--------------------------|------------|--------------------------| | L4, T4, V100 16 GB | 16–24 GB | 32–64 | | A100 40 GB, L40, A40 | 40–48 GB | 128 | | A100 80 GB, H100, H200 | 80 GB | 256 (default) |
These are rough starting points — pass `--batch-size N` to override.
11M-mol corpus at 100 epochs typically takes **days even on a multi-GPU box**. The skill prints an estimate before launching; confirm with the user.
chemistry that the released ckpts don't cover).
released ckpt.
For continuing an existing released ckpt, use `kermt-continue-pretrain`. For adding a cMIM decoder to an encoder-only grover_base ckpt, use `kermt-add-cmim-pretrain`.
Required:
by convention; multi-file corpora deferred. Use `--val-csv` for a separate validation set.
use. **No default** — must be set explicitly so the user makes an informed choice:
output, lightweight).
a SMILES vocab from the corpus.
state-of-the-art config from the KERMT manuscript).
Optional:
auto-splits the input by `--val-frac 0.1` (random shuffle with `--seed`).
`--init-lr F` / `--max-lr F` / `--final-lr F` / `--warmup-epochs F` / `--weight-decay F` / `--dropout F` / `--save-interval N` / `--seed N`. Anything not given is filled from `config/defaults_pretrain.json`.
`--contrastive-temperature F` (cmim and hybrid only).
logging. When `--wandb-project` is set, rank 0 logs train/val losses; the run name is honored only alongside a project. Off by default.
Let `$KERMT_REPO` be the path to your kermt repo checkout.
1. **Pre-flight: ensure container + system probe** (same as `kermt-continue-pretrain` step 1). Refuse to proceed if `check_system` reports gaps.
2. **Compute run directory.**
RUN_DIR=$KERMT_REPO/runs/pretrain-scratch_$(date -u +%Y-%m-%dT%H-%M-%SZ)
3. **Validate the corpus** (no ckpt to validate, so this is the only input check):
"$SKILL_DIR/scripts/kermt_container.sh" run --data <user-csv> -- \
"python /skill/scripts/check_data.py --mode pretrain --csv /data/<basename>"Abort on `ok: false`.
4. **Prepare the data** — no vocab pass-through (we want fresh vocab from corpus):
"$SKILL_DIR/scripts/kermt_container.sh" run --data <user-csv> --run-dir $RUN_DIR -- \
"python /skill/scripts/prepare_data.py --mode pretrain \\
--csv /data/<basenamOfficial, NVIDIA-verified Agent Skills for Claude Code, Codex, and other coding agents.
Use for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill. Trigger on NVIDIA products, hardware, software,…
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and…
Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.
Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.
Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras;…
Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample…