run_padis_machine_preflight.py π§ΒΆ
Source: scripts/dev/run_padis_machine_preflight.py
Warning
This file has not yet received a complete narrative and docstring audit. Its public source-level API is listed automatically below.
Run target-machine preflight checks for PaDIS CT training.
The goal is to catch expensive-run failures before launching long jobs. The suite checks hardware visibility, LIDC loading, model construction, training throughput, validation overhead, checkpoint resume mechanics, experiment preset dry-runs, optional golden equivalence, and optional CLI training smoke runs.
- LION_ROOT
- DEV_ROOT
- PADIS_SCRIPT_ROOT
- CORE_MODE_CHECKS
- ABLATION_MODE_CHECKS
- class ModeCheck
Named preflight mode and its pass/fail diagnostic payload.
- class LimitedLoader(loader, max_batches: int | None)
Bounded iterable view over an existing data loader.
- check_environment(args: argparse.Namespace) dict[str, object]
Check Python, CUDA, paths, imports, and required external assets.
- check_experiment_presets(args: argparse.Namespace) dict[str, object]
No docstring is available.
- check_golden(args: argparse.Namespace) dict[str, object]
No docstring is available.
- check_short_run_reproduction(args: argparse.Namespace) dict[str, object]
No docstring is available.
- check_dataset(args: argparse.Namespace) dict[str, object]
No docstring is available.
- check_training_mode(mode: ModeCheck, args: argparse.Namespace, device: torch.device) dict[str, object]
No docstring is available.
- check_validation_benchmark(mode: ModeCheck, args: argparse.Namespace, device: torch.device) dict[str, object]
No docstring is available.
- check_checkpoint_resume(args: argparse.Namespace, device: torch.device) dict[str, object]
No docstring is available.
- check_cli_smoke(args: argparse.Namespace) dict[str, object]
No docstring is available.
- run_suite(args: argparse.Namespace) dict[str, object]
Run selected preflight modes and aggregate their reports.
- build_parser() argparse.ArgumentParser
Construct the machine-preflight command-line parser.
- main() None
Execute PaDIS machine readiness checks.