-
Notifications
You must be signed in to change notification settings - Fork 47
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
Cache directory resolution issues in Google Colab #126
Comments
@awaelchli Mind contributing a fix ? Should be easy using the env variables from colab and changing the default cache dir. |
Are there any workarounds or updates on this? I replicated this on a different cloud compute provider as well (on RunPod using their "RunPod Pytorch 2.2.0" template). |
Hey @AndisDraguns, you can set an env variable to change the cache dir folder. |
Hey @AndisDraguns @awaelchli This PR should fix it: #166. Can you both double check and come back to me ? |
Thanks @tchaton, it seems to work now! Otherwise, a different workaround that I got to work was increasing the depth of the data directory, e.g. /content/dir1/dir2/my_data/file.txt. |
Hey @AndisDraguns. Cool, let's land the PR as I validated the code snippet from @awaelchli works. BTW, we have a discord for litdata if you want to join: https://discord.gg/UshUy6VZ |
🐛 Bug
In Google Colab, the cache dir resolution leads to a directory error when using the
optimize
function.To Reproduce
Minimal repro in Colab
Code sample
raises the following error:
Expected behavior
This works locally and in Studios, so we would also expect it to work in Google Colab.
Environment
conda
,pip
, source): N/AAdditional context
The issue was raised originally in LitGPT:
Lightning-AI/litgpt#1402
The text was updated successfully, but these errors were encountered: