In short.
NVIDIA's kermt-pretrain-scratch is an assistant skill for chemistry teams training a new molecular model from their own data, but it requires substantial GPU resources and careful setup. Its scripts prepare data, build vocabularies and configure single-GPU or distributed training without a supplied starting checkpoint. The source also exposes practical limits around cached outputs, reused checkpoint directories and container GPU selection. NVIDIA's published benchmark measures assistant behavior, not molecular model quality. Nothing was executed for this report; training success, hardware compatibility, runtime and monetary cost remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes all twelve files in skills/bionemo-kermt-pretrain-scratch at revision 894f2d7dfee49085e84e21c1aad2513bc44a5b6d and the supplied repository-level Apache-2.0 and CC-BY-4.0 notices. The separate KERMT checkout, Dockerfile, underlying training and preparation implementations, sibling skills, referenced papers and full benchmark artifacts are outside the supplied evidence. Source-based observations are distinguished from publisher-reported evaluations. Installation, commands, training, GPU behavior, generated outputs and signature verification were not performed; end-to-end reliability, model quality, runtime and total cost remain unverified.
The overview
Identity
The resource is NVIDIA's skills/bionemo-kermt-pretrain-scratch folder, whose internal skill name is kermt-pretrain-scratch. It contains assistant instructions, training defaults, Python and Bash helpers, evaluation cases, a benchmark, a skill card and a signature bundle. It is designed for Claude Code, Codex and Nemotron.
The original source is [https://github.com/NVIDIA/skills/tree/main/skills/bionemo-kermt-pretrain-scratch]. The supplied snapshot is revision 894f2d7dfee49085e84e21c1aad2513bc44a5b6d. This folder provides orchestration; the KERMT model implementation, training entry point and Dockerfile come from a separate checkout.
Assessment
This is a plausible fit when a chemistry team deliberately wants random initialization and a vocabulary derived from its own corpus. It packages several otherwise separate preparation and launch steps and records useful configuration details. It is less compelling when an existing checkpoint already covers the intended chemistry, because starting over discards its learned representations.
The instructions are more protective than the runner alone: runtime estimation and confirmation before a costly launch are assigned to the assistant, rather than implemented as mandatory runner checks. The published agent benchmark offers limited supporting evidence, but does not establish successful full-scale pretraining or useful downstream predictions.
Users
The intended users are computational chemistry researchers, molecular machine learning engineers and developers with a custom chemistry corpus. The input is a CSV containing a smiles column. SMILES is a text notation for molecular structures; labeled property targets are not required for this pretraining workflow.
Beginners receive an ordered workflow, hardware guidance and explanations of the training objectives. Operating it still requires understanding Docker, GPU memory, validation data and long-running jobs. The supplied material does not document a general language-model training workflow or a CPU-only route.
Capabilities
Users must explicitly choose an objective. vocab predicts atom and bond vocabulary categories; cmim combines contrastive learning with SMILES reconstruction; hybrid combines vocabulary and contrastive objectives. The scratch runner rejects an input checkpoint and rejects combining from-scratch mode with resume mode.
Preparation invokes cleaning, molecular feature generation, vocabulary construction and training/validation sharding. A separate validation CSV is supported; otherwise preparation defaults to a seeded random 90/10 split. Training supports visible single or multiple GPUs, hyperparameter overrides, TensorBoard and optional Weights & Biases logging.
The captured defaults specify 30 epochs, encoder hidden size 800, depth 6 and four attention heads. For cmim and hybrid, decoder defaults include latent dimension 512, three decoder layers and eight attention heads. These are supplied configuration values, not evidence of optimal settings for a particular corpus.
Using it
Requirements
The documented environment requires Docker, NVIDIA Container Toolkit and at least one CUDA-capable NVIDIA GPU. The host helper also uses Bash and Python 3. KERMT_REPO must identify a checkout containing main.py and kermt/, with the Dockerfile, pretrain_ddp.py and preparation scripts needed by this workflow. Compatible dependency versions are not established by the supplied folder.
The guide sizes batch 256 for A100-class 80 GB hardware and suggests smaller batches for lower-memory GPUs. The runner automatically changes an unspecified batch size to 32 and save interval to 500 on one GPU; multiple GPUs retain batch 256 regardless of their memory. These defaults do not establish that a configuration will fit.
Storage needs include the image, prepared data, vocabularies and checkpoints. The system probe checks for 20 GB free space, while the guide describes training storage as tens of gigabytes or more. No mandatory external credential is identified for scratch training. Optional logging may require additional container configuration.
Mechanism
The container helper builds the configured image from the KERMT checkout if necessary. It mounts the checkout read-write at /workspace, the skill read-only at /skill and the run directory read-write at /runs. Supplying a data file mounts its entire parent directory read-only at /data, exposing sibling files to the container as well.
prepare_data.py composes scripts from the separate checkout and writes prepare_data.json. The runner checks that this manifest reports successful pretraining preparation and includes required output paths, combines defaults with user overrides, and constructs a pretrain_ddp.py command. Scratch architecture comes from the bundled configuration; no starting checkpoint is staged.
run.json records arguments, architecture, GPU selection, repository identity and a replay command. Shared helpers restrict checkpoint and vocabulary deserialization and limit the environment forwarded to the training subprocess. The bundled checkpoint validator primarily supports checkpoint-based branches; it is not called to validate a starting checkpoint during scratch training.
Setup
Use the complete skill folder, set SKILL_DIR to its installed location and set KERMT_REPO to the separate runtime checkout. The supplied material does not give an assistant-specific installation command or an acquisition URL for that checkout. The documented sequence is to ensure the image exists, inspect the system probe, validate the CSV, prepare data in a fresh run directory and then launch the runner detached.
Keep training and validation files accessible through the container mounts. The illustrated preparation command mounts the training file's parent directory; a validation file elsewhere requires an adjusted mount arrangement. Choose the objective and review the compute commitment before launching.
Verify GPU visibility inside the container. The supplied wrapper does not forward a host CUDA_VISIBLE_DEVICES setting, despite the guide suggesting that approach. Explicit runner --gpus selection or the helper's KERMT_GPUS setting offers direct control. Host Weights & Biases credentials are also not automatically forwarded by this wrapper.
Example
An illustrative case is a team with polymers.csv and two A100 80 GB GPUs that wants both vocabulary and contrastive objectives. It would choose hybrid, validate and prepare the corpus without supplying existing vocabularies, and use a new output directory. A similar scenario appears in the supplied evaluation definitions; those definitions describe expected behavior, not a completed training result.
Once preparation has produced /runs/data/prepare_data.json, an illustrative container-side command is python /skill/scripts/run_pretrain_local.py --from-scratch --pretrain-target-mode hybrid --prepare-manifest /runs/data/prepare_data.json --out /runs --gpus 0,1 --batch-size 256. This assumes the required mounts and two visible GPUs. It was not executed.
The documented outputs include run.json, logs/pretrain_ddp.log, a checkpoint directory and a reported TensorBoard location at logs/tb. Their actual creation and contents depend on the external runtime and remain unverified.
Assessment & evidence
Limitations
Default CSV validation parses only the first and last ten nonblank SMILES for larger files; --strict-rdkit checks every entry. Blank rows and duplicate strings are counted without necessarily causing rejection. The pretraining path does not demonstrate structure-aware validation splitting or a train/validation overlap check.
Preparation can reuse existing outputs based on their presence rather than input or configuration fingerprints. The runner also accepts a successful preparation manifest without requiring vocab_source to equal built_fresh. Fresh run directories help avoid stale preparation artifacts or accidentally supplied vocabularies.
The scratch branch leaves an existing ckpt/last_checkpoint.pt untouched. The runner's documentation says the underlying trainer automatically resumes from that filename, so reusing an output directory could defeat the intention to start fresh. This is a source-based concern; the external trainer was not supplied or executed.
A detached container ID establishes launch, not completion. The runner's final JSON can contain ok: true alongside a failed status in its manifest, while returning a nonzero process exit code. Consumers need to inspect status and exit_code rather than relying on the top-level boolean.
Reasoning
The central tradeoff is control over initialization and vocabulary versus the expense of relearning molecular representations. A custom domain can justify investigating scratch training, but the supplied evidence does not establish when it will outperform continued pretraining.
Objective choice changes what the model learns and which components are constructed. Vocabulary prediction avoids the SMILES reconstruction decoder; cmim and hybrid introduce decoder and latent-distribution configuration. The guide calls hybrid state of the art, but no captured molecular benchmark substantiates that comparison. Configuration defaults and assistant task scores cannot establish downstream chemical usefulness.
Alternatives
The guide directs users with an existing pretrained checkpoint to kermt-continue-pretrain. That approach retains learned weights rather than randomly initializing the model. The supplied negative evaluation case specifically checks that an assistant makes this distinction.
For adding a cMIM decoder to an encoder-only GROVER-base checkpoint, the guide points to kermt-add-cmim-pretrain. These sibling skills address different starting conditions; their complete implementations and comparative training performance are not included here.
Evidence
NVIDIA's benchmark dated 2026-09-15 reports four assistant tasks, comprising three positive cases and one checkpoint-routing negative case, evaluated with Claude Code and Codex. It reports 90% correctness for both skill-assisted agents, effectiveness of 55% for Claude Code and 48.1% for Codex, and security scores of 75% and 100%, respectively. Claude Code's security score is lower than its reported 100% baseline.
The publisher's overall PASS rule requires each configured dimension to pass for at least one supported agent, rather than every dimension passing for both. The report lists 63 static findings but shows only five, and full execution trajectories are not supplied. These results do not measure molecular prediction accuracy, convergence, GPU throughput or completed multi-day training.
The evaluation definitions describe expected outputs and assertions; they are not execution receipts. A Sigstore-format signature bundle is supplied, but its cryptographic validity was not verified. The skill card's readiness statement is a publisher claim, not an independently demonstrated runtime result.
Access & freshness
Costs
Actual monetary cost is unknown. Relevant expenses can include GPU rental or ownership, electricity, storage, assistant usage and optional logging services. No provider rates, measured training throughput or complete job costs are supplied.
The guide describes an 11-million-molecule, 100-epoch scratch run as taking days even with multiple GPUs. This is publisher guidance, not an independently established timing result, and it does not determine the duration of the bundled 30-epoch configuration. Runtime estimation and spending approval are instructions for the assistant; the runner contains no demonstrated cost estimator or spending cap.
The benchmark reports assistant token usage, but skill and baseline totals have different observed attempt coverage. Those aggregate totals do not establish like-for-like token savings or monetary savings.
Rights
SKILL.md declares Apache-2.0, the skill card identifies Apache 2.0, and the Python and Bash helpers carry Apache-2.0 identifiers. The supplied Apache license permits use, modification and redistribution, including commercial use, subject to its conditions. Redistribution requires the license, relevant notices, change notices for modified files and applicable NOTICE attribution.
A repository-level Creative Commons Attribution 4.0 notice is also supplied, but the captured material does not establish which selected files it governs. Its presence alone does not establish dual licensing of the skill. Where applicable, that license requires attribution, license information and disclosure of modifications.
These notices do not establish rights to a user's molecular corpus, external runtime dependencies or any later training artifacts. Those rights must be determined from the relevant materials. The downloadable instruction file also requires the companion scripts and runtime to perform training.
Freshness
The supplied snapshot was captured on 2026-11-16 at revision 894f2d7dfee49085e84e21c1aad2513bc44a5b6d. The skill card separately identifies source revision 77111e0, committed 2026-09-09, and the benchmark is dated 2026-09-15. The evidence does not establish that this benchmark evaluated the exact captured revision or a currently installed KERMT runtime.
Runtime reproducibility is also conditional. The default image tag is kermt:latest, the image digest can be unavailable, and the container helper excludes untracked files from its dirty-tree check. A manifest marked ok_to_replay therefore does not establish complete environment identity. Later source changes and present dependency compatibility are unknown.
Actions
First determine whether random initialization is necessary or whether a suitable checkpoint can be continued. Choose the objective explicitly, establish corpus rights, validate the full dataset and plan a meaningful validation split. Obtain a hardware-specific runtime estimate and budget before committing to a long run.
Use a new run directory, retain the complete skill folder and pin the KERMT checkout and container image. Verify prepared vocabulary provenance, actual container GPU visibility and batch-size suitability. Preserve preparation and run manifests together with logs and configuration.
After launch, inspect container termination, process exit code, run.json status and training logs. Establish downstream performance on appropriate held-out tasks before relying on the resulting model. Neither successful orchestration nor the published assistant benchmark establishes molecular model quality.
