Skip to main content

Module hub

Module hub 

Source
Expand description

Publishing to the Hugging Face Hub.

Modules§

card
The model card (README.md) of a pushed run.
files
Choosing which files of a run’s output/ go to the Hub.
record
runs/<id>/hub/push.json: what the last push of a run sent where.

Structs§

Commit
A commit the Hub made.
CommitRequest
What one commit writes: the files, the card and the commit message.
HfHub
The Hugging Face Hub, reached through hf-hub.
Progress
Upload progress, bytes over the files that go through Xet/LFS.
RepoId
NAMESPACE/NAME.
UploadFile
One file to upload.

Enums§

HubError
Errors of a Hub. No message ever holds the token.
RepoState
What ensure_repo found or made.

Traits§

Hub
A Hugging Face Hub the pipeline can push a run to.

Type Aliases§

ProgressSink
Where Hub::upload sends its Progress.