Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.83 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.83 KB

🧪 Preflight Overview

Preflight is a diagnostic tool designed for large-scale cluster environments. Before starting distributed training, it benchmarks the compute performance of all GPUs, as well as intra-node and inter-node communication bandwidth and latency. Its primary goal is to help users identify underperforming nodes or network bottlenecks in the cluster, ensuring reliable and efficient training runs.

Run preflight

Torch / single node:

primus-cli preflight \
  --dump-path output/preflight

Slurm (multi-node example):

NUM_NODES=8 srun -N ${NUM_NODES} --ntasks-per-node=1 --cpus-per-task=256 \
  primus-cli preflight --dump-path output/preflight

If you omit --report-file-name, preflight auto-generates a unique timestamped basename of the form preflight-${NNODES}N-YYYYMMDD-HHMMSS so each run writes to a fresh path and never overwrites prior output. Pass --report-file-name NAME only when you want a stable, well-known filename.

📂 Output Directory

After running Preflight, all test results and reports are generated under the output/preflight directory.

The final reports (basename shown here is the auto-generated default; it reflects whatever --report-file-name resolves to) are:

  • <report-name>.md – a Markdown version of the test report
  • <report-name>.pdf – a PDF version of the same report

These reports summarize GPU performance, intra-node and inter-node communication results, and help identify potential issues within the cluster.


📁 Directory Structure

output/preflight
├── inter_node_comm
├── intra_node_comm
├── preflight-8N-20260715-142530.md
├── preflight-8N-20260715-142530.pdf
├── square_gemm_tflops
└── ...

Note: The exact contents may vary depending on the tests enabled during runtime.