States
queued (waiting for GPUs, or for a large file’s samples to be measured: Data) → submitting → pending (the
cluster is starting it) → running → succeeded | failed | cancelled. job.done is true for the last three:
training is over. A succeeded job’s checkpoint then uploads (checkpoint.status uploading → ready,
job.checkpoint_ready); that is a separate wait (jobs.wait_checkpoint), needed only to download the weights.
jobs.get(id) (not list) also has:
timeline: unix times ofqueued,starting(the cluster started it),training(step 1 began),trained(last step ended),saved(checkpoint written),done(checkpoint uploaded, or the job ended). A missing value has not happened yet.notices: sentences worth reading, each with aleveland acode(SAMPLES_TRUNCATED,SAMPLES_SKIPPED,BATCH,BATCH_LARGER_THAN_ASKED,FEW_TOKENS_PER_GPU,GPU_OUT_OF_MEMORY): samples truncated or skipped, the batch actually used, too few tokens per GPU, a GPU out of memory.tokens_trained: what the job is charged for.metrics: the latest step (step,total_steps,loss,tokens_per_s_per_gpu, …).checkpoint:{"status": "uploading" | "ready", "step", "files", "bytes"}once it is being saved.config: the training config the engine ran (paths masked).
Watching
progress (CLI jobs progress ID):
phase:queued→starting→loading(model load and kernel compile) →training→saving→checkpoint_queued(other jobs’ uploads first) →checkpoint_preparing→checkpoint_uploading→done; orfailed/cancelled.jobs_ahead: queued jobs that start before this one.training:step,total_steps,fraction,seconds_per_step(median, step 1 excluded),eta_seconds,loss.checkpoint:stage,bytes_total,bytes_done,fraction,bytes_per_s,eta_seconds,uploads_ahead.last_activity/idle_seconds: when anything last happened. Minutes of silence intrainingorcheckpoint_uploadingmean something is stuck: report the job id; a longqueuedorcheckpoint_queuedis waiting, not stuck.
events (CLI jobs events ID [--after SEQ] [--follow] [--until checkpoint], JSON lines): job.state (data.state,
and error on failure), job.cancel_requested, training.step (step, total_steps, loss, step_time_s),
training.validation (step, val_loss), checkpoint.stage (queued, converting, hashing, transferring,
ready). Each has a seq: pass the last one as after to read on after a restart. follow stops when training is
over; until="checkpoint" also waits for the upload.
A metric point: step, total_steps, loss (training loss of that step), lr, step_time_s,
tokens_per_s_per_gpu, tokens_per_s_total (real tokens, all GPUs), ts, val_loss on steps where the validation
set was run, and the step’s samples, real_tokens (every token of its samples; what is billed), trained_tokens
(the assistant tokens the loss is computed on) and padding_tokens.
job.metrics holds the latest step only (same throughput as jobs.metrics()). Metrics, progress and events follow the
log by up to a minute.
Notices: “Batch: about N samples per step (8 GPUs, each packing 64K tokens)” gives the samples a step takes and each
GPU’s row capacity, not the tokens actually in it. Log lines about the validation set’s own batch refer to the
validation pass, not to training.
What to check:
- Step 1 takes much longer than the rest (start-up compilation); judge speed from step 2 on.
- Step 1 loss finite and not 0. Its size depends on the data: near 0 for answers the base model already gives (short, formulaic), around 1-3 for new content. NaN means a data or settings problem.
- Loss going down over the first tens of steps. A flat or rising loss: learning rate too high (rising, spiky) or too low (flat).
val_lossturning up whilelosskeeps falling: overfitting; fewer epochs or a lower learning rate.- Throughput near the model’s
tokens_per_s_per_gpufrommodels(); much lower with a smallbatch_sizeor a dataset smaller than a step is expected. Read throughput fromjobs.metrics(), which counts every GPU exactly;job.metrics(the job’s latest step) is a quicker, rougher figure.
jobs.export(job_id, "job.zip") saves the whole record (job, config, logs, metrics, GPU telemetry, manifest). The
manifest exists only once the checkpoint is uploaded (jobs.manifest answers 409 before that), so export after
wait_checkpoint for the complete record.
jobs.telemetry(job_id) returns GPU and host utilisation while it trained.
Cancelling
nextron-cloud report JOB_ID ... (or --tag) puts several jobs side by side.
jobs.cancel(job_id): a queued job is cancelled at once; a running one stops soon after. A cancelled job
leaves no checkpoint and pays for the tokens trained before it stopped. There are no intermediate checkpoints:
only a job that finishes all its steps has one.
When a job fails
job.error is short (“training job failed; see the logs”). Then:
job.notices: anerrornotice names the cause when it is known (GPU_OUT_OF_MEMORY, with the fix).- The last 50 log lines:
list(client.jobs.logs(job_id))[-50:]. Look forError,Traceback,out of memory. - Out of memory: a smaller
batch_sizeormax_seq_len(or the model’s long-context version for long samples). - Anything else, or a failure that repeats with the same settings: report it to Physion Labs with the job id. A failed job is not charged; retrying it is the owner’s call.
Errors from the API
APIError (CLI: {"error", "status", "message"} and exit code 1):