Check the HfApi documentation page for the reference of methods to manage your Jobs on the Hub.
Jobs
Check the HfApi documentation page for the reference of methods to manage your Jobs on the Hub.
- Run a Job:
run_job - Fetch logs:
fetch_job_logs - Fetch metrics:
fetch_job_metrics - Inspect Job:
inspect_job - Wait until Job(s) finish:
wait_for_job - List Jobs:
list_jobs - Cancel Job:
cancel_job - Run a UV Job:
run_uv_job - Sync a local directory to mount it in a Job:
sync_job_volume
Data structures
JobInfo
[[autodoc]] JobInfo
JobOwner
[[autodoc]] JobOwner
JobNetwork
[[autodoc]] JobNetwork
JobStage
[[autodoc]] JobStage
JobStatus
[[autodoc]] JobStatus
Volume
[[autodoc]] Volume
Source and license
Source: Hub Python Library documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.