Skip to content

Submit and get results

Before you submit

  • Your code, pyproject.toml and uv.lock are committed (pushing is optional).
  • There are no uncommitted tracked changes. Untracked files are left out of the submission, and the CLI warns you about them.
  • Your model weights are in models/ and not committed.
  • uv run --locked python <your-script>.py works locally.

The CLI submits exactly what is in your last commit, from whatever branch you are on. Your working copy and branches are left untouched.

Submit

uvx greenaihack@latest submit --script my_eval.py --model models/distilbert --name distilbert-v1
Option Meaning
--script PATH Script to run. Uses defaults.script in greenaihack.json when omitted (my_eval.py in a new project).
--model PATH A model file or folder to upload. Repeat it for several. When omitted, uses defaults.models (empty in a new project).
--no-model Submit without any model, overriding defaults.
--name NAME A label to help you recognise this run. Generated automatically when omitted.
--resume ID Retry a saved submission on this machine. Use without script, model or name options.
--json Print the raw API response as JSON, with progress on standard error.

Paths are relative to the repository root and use forward slashes (/), even on Windows.

The CLI uses these paths or your configured defaults without prompting you to choose files. --model and --no-model cannot be combined.

The command shows a summary with the submission ID, experiment name, source commit, script and models. Progress messages show the upload and evaluation startup, followed by suggested next commands. The commands below use your latest submission from this machine when you leave the ID out; pass it to follow an older submission, or one made from another machine.

Interrupted?

If an upload fails or you press Ctrl+C, resume the same submission instead of starting over:

uvx greenaihack@latest submit --resume <submission-id>

Run this on the same machine. It reuses the saved source and model copies, even if you have edited your working copy since then.

Follow your submission

uvx greenaihack@latest status <submission-id> --wait   # wait until it finishes
uvx greenaihack@latest logs <submission-id>            # completed job logs
uvx greenaihack@latest results <submission-id>         # your predictions.json

status --wait polls every five seconds and shows elapsed time. It exits with code 1 unless the evaluation succeeds. Press Ctrl+C to stop waiting without canceling the evaluation.

Logs are grouped by job name and state. Use logs <submission-id> --job evaluate to read just the inference job. Logs are available after the evaluation finishes; they do not stream while it runs.

results prints unscored predictions JSON after a successful evaluation. Its predictions field contains your script's predictions.json. To save the response, run uvx greenaihack@latest results <submission-id> > results.json. For JSON status output and exit codes, see the CLI cheat sheet.

A submission finishes in one of these states:

State What to do
success Read the predictions with results. These are unscored for now.
failed Read the logs, fix the problem, commit and submit again.
canceled / skipped Submit again, or ask the organizers.
trigger_uncertain Don't resubmit yet. Ask the organizers to check it.

Prediction artifacts are retained for 7 days. Save them before they expire.