Skip to content

Debug a trial

Start with one failed trial, rather than relaunching the whole search. Open its details and logs from the experiment’s trials view. Record its parameter values, image reference, runtime, and error message.

What happened? Check next
No container logs Image availability, registry readiness, and scheduling status.
Container starts but the command fails Entrypoint, executable path, and argument names.
Workload fails during evaluation Dependencies, data access, memory, and the selected parameter values.
Process exits but an objective is missing Exact stdout prefix, metric name, numeric type, and output buffering.
Trial times out Measured runtime, machine size, and timeout.

Use the same image and parameter values as the failed trial. For an image whose entrypoint already runs your program:

Terminal window
docker run --rm --platform linux/amd64 your-image:v1 --hpo-learning-rate=0.01

For a CMD-only image, include the executable and script after the image name:

Terminal window
docker run --rm --platform linux/amd64 your-image:v1 python main.py --hpo-learning-rate=0.01

Adapt the flags to the trial you are reproducing. Supply the same required environment variables and data access, without putting secrets into command arguments or logs. See image command behavior.

A successful run must print every configured objective as a finite number:

hpo.metrics.loss=0.182

Check stdout, not just an output file. Use flush=True or unbuffered Python output. A numeric-looking string, NaN, a mismatched name, or a missing metric will not provide a usable objective. See metric format.

  1. Correct the workload or configuration and run the local reproduction again.
  2. Publish a new image tag if the code or dependencies changed.
  3. Create a small experiment using the corrected image and settings.
  4. Verify a successful trial’s parameters, metrics, and logs before increasing the budget.

Repeated failures can exhaust the experiment’s failure budget. Raising that budget without fixing the cause spends compute on more failed evaluations.

For scheduling, authentication, and billing problems, use the troubleshooting reference.