utils
¶
Modules¶
fastvideo.tests.train.utils.test_checkpoint
¶
CPU-only unit tests for :mod:fastvideo.train.utils.checkpoint.
Covers the pure-Python portions of the checkpoint manager: name
parsing, resume-path resolution, metadata round-trip, rolling-delete
cleanup, the _is_stateful predicate, and the maybe_save gating
logic. Code paths that touch DCP (dcp.save / dcp.load) and
CUDA RNG snapshots are intentionally not covered here — those need a
GPU runner and will be tested in later phases.
Classes¶
Functions¶
fastvideo.tests.train.utils.test_checkpoint.test_resolve_unknown_dir_raises
¶
test_resolve_unknown_dir_raises(tmp_path: Path) -> None
A dir that is neither a checkpoint nor an output_dir-with-checkpoints.
Source code in fastvideo/tests/train/utils/test_checkpoint.py
fastvideo.tests.train.utils.test_config
¶
CPU-only unit tests for :func:load_run_config.
Classes¶
Functions¶
fastvideo.tests.train.utils.test_config.test_hsdp_shard_dim_defaults_to_num_gpus
¶
test_hsdp_shard_dim_defaults_to_num_gpus(tmp_path: Path) -> None
When unset, hsdp_shard_dim and sp_size fall back to num_gpus.
Source code in fastvideo/tests/train/utils/test_config.py
fastvideo.tests.train.utils.test_config.test_overrides_create_intermediate_keys
¶
test_overrides_create_intermediate_keys(tmp_path: Path) -> None
Overrides into a nested key absent from YAML should still apply.