felix

Push Training Job To Huggingface

Push a completed training job's model to HuggingFace Hub.

Args: job_id: Training job UUID. request: Target repo, token, and commit metadata. auth: Authenticated staff caller.

Returns: The hub push outcome.

Raises: HTTPException: 400/403/404/409/500 for validation, permission, lookup, conflict, and upload failures.

post/felix/training-jobs/{job_id}/push-to-hub

Path parameters

job_idstring required

Request body

repo_idstring required

HuggingFace repo ID (e.g., 'username/model-name')

hf_tokenstring required

HuggingFace API token with write permissions

privateboolean

Whether repo should be private

commit_messagestring nullable

Optional commit message for the push

Response

Successful Response

successboolean required
urlstring required
repo_idstring required
job_idstring required
messagestring required

Changes