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

Feature Request: Add Support for Custom Path in kagglehub.model_download #175

Open
andre996 opened this issue Oct 18, 2024 · 2 comments
Open

Comments

@andre996
Copy link

andre996 commented Oct 18, 2024

Description:

When using kagglehub.model_download, the model is stored in a system-generated path that is not always intuitive or easy to manage. It would be highly beneficial to add functionality that allows users to specify a custom storage path during the model download process.

Example:

kagglehub.model_download('model_name', download_path='/desired/destination/folder/')

If no path is provided, the function can default to the current behavior or use the current path, storing it in the system-generated location.

@FelixLiu-SF
Copy link

FelixLiu-SF commented Dec 4, 2024

For anyone that needs a solution right now, you can set the environment variable KAGGLEHUB_CACHE to your download location outside of the python or from within with:

    import os
    os.environ['KAGGLEHUB_CACHE'] = '/desired/destination/folder'

@toiletbowlkuku
Copy link

For anyone that needs a solution right now, you can set the environment variable KAGGLEHUB_CACHE to your download location outside of the python or from within with:

    import os
    os.environ['KAGGLEHUB_CACHE'] = '/desired/destination/folder'

I can't give you enough thumbs for this solution. It's ridiculous that we have to jump through hoops to get this basic functionality.

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

No branches or pull requests

3 participants