Test

Write and run multi-rank pytest parity tests that prove a CP implementation is numerically equivalent to its serial reference, using mp.spawn / spawn_multiprocessing as in the Boltz-CP test framework. Covers unit, layer-integration, module-integration, and workflow-integration levels; handles missing test data by asking the user or synthesizing random features in the correct format; and enforces the anti-vacuous rules (serial ground truth, explicit random grad_output, fp64 default tolerances, sharding-active and replicated-identical assertions). Also covers a second, non-parity class — property / invariant tests (e.g. test_rng_entropy) that assert a structural invariant such as RNG entropy when there is no serial value oracle. Use to verify any output of shard_data_feats or dtensor_modules.

nvidia-bionemo 49e02ba 2 files · 28.6 KB Updated

File contents

nvidia-bionemo/boltz-cp/tree/main/plugins/fold-cp/skills/test commit 49e02ba9d9

Frequently asked questions

npx skillmds@latest add nvidia-bionemo/test