Skip to main content

Module token

Module token 

Source
Expand description

A Hugging Face access token, for gated and private repos.

The token is read on the node that downloads, from its own environment or token file, and only goes into Authorization headers to the Hub. It has no serde support, so it can’t end up in a message to another node, and its Debug output is redacted.

Structs§

HfToken
A Hugging Face access token. Debug prints HfToken(<redacted>).