-
Notifications
You must be signed in to change notification settings - Fork 618
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
chore(artifacts): allow setting artifact cache dir in wandb.init(...) #3644
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3644 +/- ##
===========================================
+ Coverage 62.83% 83.29% +20.46%
===========================================
Files 281 280 -1
Lines 35303 34945 -358
===========================================
+ Hits 22184 29109 +6925
+ Misses 13119 5836 -7283
Flags with carried forward coverage won't be shown. Click here to find out more.
|
hey @vwrj, mind weighing in? is this useful or should I just close this PR? |
Converting to a draft for now. |
Fixes WB-9581, WB-2620
Description
We recognize the
WANDB_CACHE_DIR
env var that can be used to change the directory where artifacts' cache lands. Here I added acache_dir
setting that if set in awandb.init(...)
call beforewandb.sdk.interface.artifacts._artifacts_cache
is initialized (with, e.g. a call towandb.Artifact
), will do the same.Not sure if this is a good idea and would be fine with closing this PR :)
Testing
Added two unit tests.
Checklist