Expand description
HuggingFace Hub integration for automatic model downloading.
Functions§
- ensure_
model_ downloaded - Downloads all required model files from HuggingFace Hub. Returns the local directory path containing the downloaded files. Checks local cache first — returns instantly if model already downloaded.
- hf_
cache_ dir - Return the HuggingFace hub cache directory if it exists.
- looks_
like_ hf_ repo - Returns true if the string looks like a HuggingFace repo ID (e.g., “Qwen/Qwen2.5-Coder-1.5B-Instruct”).