Hub
Download files from the Hugging Face Hub.
| Function | Description |
|---|---|
download repoId filename | Download a single file from Hugging Face Hub. |
| Return the local cache path. | |
loadSafeTensors repoId filename | Download a .safetensors file from Hugging Face Hub and load it as a tensor dictionary. |
download
download repoId filename
Download a single file from Hugging Face Hub. Return the local cache path.
Parameters
repoId:stringfilename:string
Returns Async<string>
loadSafeTensors
loadSafeTensors repoId filename
Download a .safetensors file from Hugging Face Hub and load it as a tensor dictionary.
Parameters
repoId:stringfilename:string
Returns Async<Map<string, Tensor>>