nicetoolbox.utils.hf_token¶
Resolve Hugging Face Hub token from machine-specific config.
Functions
Return a non-empty token string if |
- nicetoolbox.utils.hf_token.effective_hf_hub_token(machine: MachineSpecificConfig | None = None) str | None[source]¶
Return a non-empty token string if
hugging_face_tokenis set in machine_specific_paths.toml.Environment variables are not consulted; configure the token only in
machine_specific_paths.toml.