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

Have get look in local cache like import does #4720

Closed
davesteps opened this issue Oct 14, 2020 · 1 comment
Closed

Have get look in local cache like import does #4720

davesteps opened this issue Oct 14, 2020 · 1 comment
Labels
A: data-sync Related to dvc get/fetch/import/pull/push enhancement Enhances DVC feature request Requesting a new feature

Comments

@davesteps
Copy link

If I run dvc import . --rev v0.1.0 model.h5 dvc knows to look for the file in the local cache. If I run the same using get it does not look for the file in the local cache but downloads from the remote every time. I don't know if there is a particular reason get couldn't use the local cache?

The reason for wanting to do this relates to using a previous version of a model as initial weights. Please see this question for more context:
https://discuss.dvc.org/t/use-previous-version-of-model-as-initial-weights/525/9

@skshetry
Copy link
Member

skshetry commented Oct 19, 2020

Sorry for responding late, @davesteps.

dvc import/get are mainly used for getting artifacts from remote. import only deals with the DVC repo, whereas get is more general, on that it supports downloading files from git repos too, and can be used without being inside a DVC repo. So, due to this, get has to work without any cache.

But, we are working on this, and this issue is similar to dvc list not working for local repo (in that it clones), see: #4604. /cc @efiop

@skshetry skshetry added enhancement Enhances DVC feature request Requesting a new feature labels Oct 19, 2020
@daavoo daavoo added the A: data-sync Related to dvc get/fetch/import/pull/push label Mar 1, 2022
@mattseddon mattseddon closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: data-sync Related to dvc get/fetch/import/pull/push enhancement Enhances DVC feature request Requesting a new feature
Projects
None yet
Development

No branches or pull requests

4 participants