Skip to content

Conversation

@timholds
Copy link

In case it helps anyone else, I fixed an error downloading the model from Hugginface! In your example.ipynb there is a warning about the same.

/home/user/conda/lib/python3.7/site-packages/huggingface_hub/file_download.py:654: FutureWarning: 'cached_download' is the legacy way to download files from the HF hub, please consider upgrading to 'hf_hub_download'
  FutureWarning,

The change replaces the two-step process (generate URL, then download) with the direct hf_hub_download function which takes the repo_id and filename parameters. It also updates the paths[model_name] value to use the actual path returned by hf_hub_download, which I suspect will be more robust if the HF cache structure changes.

By the way, cool repo and thank you for sharing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant