csctl command-line interface (CLI) tool allows you to manage jobs on the cluster directly from the terminal of your user node.
To learn more about the available commands, run:
csctl --help
Job IDs
Each training job submitted to the cluster launches two sequential jobs, each with their ownjobID:
- a compilation job (this runs first)
- an execution job (this runs once the compliation job is done)
csctl commands. You can view the job ID in your terminal as each job is run:
<model_dir>/cerebras_logs/run_meta.json file, which contains two sections: compile_jobs and execute_jobs.
For example, the compile job will show under compile_jobs while the training job and some additional log information will show under execute_jobs:
execute_jobs.
To correlate between compilation job and training job, you can correlate between the available time of the compilation job and the start time of the training job. For this example, you will see
jobID, query information about status of a job in the system:
| Flag | Default | Description |
|---|---|---|
| -o | table | Output Format: table, json, yaml |
| -d, -debug | 0 | Debug level. Choosing a higher level of debug prints more fields in the output objects. Only applicable to json or yaml output format. |
Compilation jobs do not require CS-X resources, but they do require resources on the server nodes. We allow only one concurrent compilation running in the cluster. Execution jobs require CS-X resources and will be queued up until those resources are available. Compilation and execution jobs have different job IDs.
Cancel Jobs
You can cancel any compilation or execution job with thejobID:
Label Jobs
Label a job with thelabel command:
Track Queue
Obtain a full list of running and queued jobs on the cluster:| Field | Description |
|---|---|
| Name | jobID identification |
| Age | Time since job submission |
| Duration | How long the job ran |
| Phase | One of QUEUED, RUNNING, SUCCEDED, FAILED, CANCELLED |
| Systems | CS-X systems used in this job |
| User | User that starts this job |
| Labels | Customized labels by user |
| Dashboard | Grafana dashboard link for this job |
-l to return jobs that match with the given set of labels:
-m:
-a:
grep to view which jobs are queued versus running and how many systems are occupied.
grep 'RUNNING' will show a list of jobs that are currently running on the cluster.
For example:
grep 'QUEUED' will show a list of jobs that are currently queued.
For example:
Get Configured Volumes
Get a list of mounted volumes on the cluster:Update Job Priority
Update the priority for a given job, wherepriority_value is p1, p2, or p3:
Redundancy Pools
If you’re running a larger job with Auto Job Restart enabled, you can create a redundacy pool to ensure job continuity and system reliability. The system will utilize the redundacy pool only when:- Local session systems or nodes become unhealthy
- Local session lacks sufficient resources to complete the job
Limitations and Compatibility Requirements
- Jobs must fit within the session’s total system capacity. For example, a session with 2 total systems cannot submit a 3-system job, even if redundancy systems are available.
- You cannot submit jobs directly to the redundant pool. If you need a redundant system for debugging purposes, system administrators can manually move redundancy systems to a debug session.
- The redundancy pool session operates in a restricted mode and is only accessible by jobs from permitted sessions.
- Systems must align with the local session’s cluster version.
- Cluster administrators must maintain version consistency across all session systems.
- If a local session contains a system with version 2.4.1, for example, the redundancy pool will select systems with the same version.
Create Redundancy Pool
To create a redundancy pool, run the following command:Export Logs
To download logs for a specific job:| Flag | Default Value | Description |
|---|---|---|
| -b, –binaries | False | Include binary debugging artifacts |
| -h, –help | Informative message for log-export |
Worker SSD Cache
To speed up the process of large amount of input data, we allow the users to stage their data in the worker nodes’ local SSD cache. This cache is shared among different users.Get Worker Cache Usage
Use this command to obtain the current worker cache usage on each worker node:Clear Worker Cache
If the cache is full, use the clear command to delete the contents of all caches on all nodes.Cluster Status
Check the status and system load of all CS-X systems and all cluster nodes:CPU and MEM columns are only relevant for nodes, and system-in-use is only relevant for CS-X systems. The CPU percentage is scaled so that 100% indicates that all CPU cores are fully utilized.
For example:
| Flag | Description |
|---|---|
| -e, -error-only | Only show nodes/systems in an error state |
| -n, -node-only | Only show nodes, omit the system list |
| -s, -system-only | Only show CS-X systems, omit the node list |