ensure_huggingface_login#
- rapidtools.auth.ensure_huggingface_login() bool[source]#
Log in only when no Hugging Face token is cached yet.
Local model wrappers call this before loading weights so that gated repositories (Gemma, Llama, …) download without manual setup.
- Returns:
bool –
Truewhen a token is available.
Example
>>> from rapidtools.auth import ensure_huggingface_login >>> ensure_huggingface_login() True