Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed config.json download to go to user-supplied cache directory #30189

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

ulatekh
Copy link
Contributor

@ulatekh ulatekh commented Apr 11, 2024

Before, config.json would end up in the default cache directory. Now everything but version.txt is placed properly, and since it's downloaded when pipeline is imported, fixing that will be more complex.

I ran "pytest --picked"; it generated 3 warnings, none of which seemed to have anything to do with my change.

@Narsil since this is related to pipeline.

@ulatekh ulatekh force-pushed the config-json-cache-dir branch 2 times, most recently from 1ab3edb to e1b14a1 Compare April 11, 2024 16:35
Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening an PR and fixing this issue!

Just a suggestion which removes the need to add then remove values into hub_kwargs

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for iterating and adding this fix!

@amyeroberts amyeroberts merged commit b109257 into huggingface:main Apr 12, 2024
20 checks passed
@ulatekh ulatekh deleted the config-json-cache-dir branch April 12, 2024 18:16
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.

2 participants