Skip to main content

Prerequisites

Before launching a job:

CLI Arguments and Flags

Use the Model Zoo CLI to launch a training, validation, or upstream and downstream validation job:

Required Arguments

Optional Arguments

--validate_only performs a lightweight compilation to check model compatibility with Cerebras kernels, while cszoo validate verifies that a model’s configuration meets expected requirements.
For a more comprehensive list, use the help command:

Launch a Job

1

Validate the Job (optional)

To verify your model’s compatibility, use the --validate_only flag. This performs a quick compatibility check without executing a full run:
2

Compile the Model

Generate executable files for your model using the --compile_only flag. This step typically takes 15-60 minutes:
Speed up subsequent runs by reusing compiled artifacts. Just use the same —compile_dir path for both compilation and execution.
3

Execute the Job

To run the job:
Here is an example of a typical output log for a training job:
  • Validation jobs are run on a single CS-X system. For multi-CS-X training, use the --num_csx flag.
  • Monitor jobs using the csctl tool or the Grafana dashboard.

Time Estimation Metrics

There are two time estimation metrics to help you track training and eval progress:
  1. LoopTimeRemaining displays the estimated time remaining in your current operation loop, where a loop is a single training iteration, a single validation dataloader execution, or an eval harness run.
  2. TimeRemaining shows the estimated total time remaining for your entire run, whether it’s a complete training session (fit) or a validation run (validate or validate_all).

Understanding Time Estimates

When your run begins, the system needs to observe all different stages (training, checkpointing, validation, etc.) before it can provide a complete time estimate. During this initial period, you’ll see + ?? appended to the TimeRemaining metric. The initial estimate is optimistic since it doesn’t account for stages that haven’t been measured yet. Once all stages have been observed at least once, the + ?? indicator will disappear, and you’ll receive more accurate time estimates. These metrics are displayed consistently across CSX, CPU, and GPU hardware.

Output Files and Artifacts

The <model_dir> directory contains all run results and artifacts, including:
  • Checkpoints for model training progress.
  • TensorBoard events, which can be viewed using:
  • Configuration files in <model_dir>/train or <model_dir>/eval.
  • Run logs in <model_dir>/cerebras_logs/latest/run.log or <model_dir>/cerebras_logs/<train|eval>/<timestamp>/run.log.

Cancel a Job

To cancel a job: