Skip to content

Fix save_to_hub for last huggingface_hub version#1743

Merged
nreimers merged 1 commit intohuggingface:masterfrom
osanseviero:patch-1
Nov 14, 2022
Merged

Fix save_to_hub for last huggingface_hub version#1743
nreimers merged 1 commit intohuggingface:masterfrom
osanseviero:patch-1

Conversation

@osanseviero
Copy link
Copy Markdown
Contributor

Fixes #1742

This should work both with old and new huggingface_hub versions

organization and name parameters have been deprecated since some releases ago, and it was announced they were going to be deprecated in favour of repo_id. At the same time, positional parameters are no longer supported, which led to users not being able to push with the latest version of huggingface_hub

@osanseviero
Copy link
Copy Markdown
Contributor Author

cc @nreimers

@nreimers
Copy link
Copy Markdown
Collaborator

Thanks :)

@nreimers nreimers merged commit 7a41e4d into huggingface:master Nov 14, 2022
@osanseviero osanseviero deleted the patch-1 branch November 14, 2022 15:15
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.

RepositoryNotFoundError when saving to Huggingface

2 participants