-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Hydra composition and use of variables from composed params.yaml in stage breaks commands #8486
Comments
Note that when I remove the
|
After a successful
|
Apart from that
PS: I am just starting to use |
Hi @aschuh-hf! The
|
Ok. I think the issue seems more that I tried to move the Also, even after the Using DVC VS Code Extension v0.5.8 and DVC version 2.30. |
These are previous commits, and there is no way to delete commits from your history, so you can't remove them like you can with experiments. They are shown because users often find it helpful to compare experiments to historical results. I don't think VS Code has anyway to hide them for now, but please feel free to open a feature request in https://github.com/iterative/vscode-dvc/issues (or I can transfer the existing issue over there if you prefer). Are they causing a particular problem, or you would simply prefer to avoid the noise generated by them?
The VS Code extension needs to compare the current state to the last commit to determine DVC-tracked changes. Since the last commit does not have Edit: cc @shcheklein |
@aschuh-hf yes, please create an issue in VS Code extension repo to make it more flexible (adjust which commits to show/analyze). Should we also improve the message - explain that it's in the HEAD commit, not in the workspace? On a side note- we should also do something with |
Thanks for clarifications. I'll open a separate issue for the VS Code extension.
These are not causing an issue, but having them shown red and with exclamation marks just gave the impression something ain't right which made me question either my use of
Ok, I'll do that. I actually had removed the |
It's not coming from |
Yup, makes sense to be able to hide them. Thanks for the feedback!
|
Thanks, that's good to know there is ongoing discussion on this. Feel free to close this issue. |
After adding the In summary, the issue was caused by me removing the |
@skshetry Should we keep the issue open to look into this, or do you want to track it somewhere else? |
Bug Report
Description
I am using Hydra composition to allow me to split up a configuration into separate files, and compose them together as needed for a given experiment. Thanks for adding this feature!
However, I encountered problems with my experiment setup because I am using variables from the composed configuration in the
deps
andouts
keys of stages. The variables of the composedparams.yaml
file define directory paths of different intermediate pipeline artifacts (i.e. prepared training input data). The reason these are variables is two-fold:dataset
name variable to make it easy to switch between datasets.data.store
prefix which may either be a relative local path (e.g.,data
) or a S3 URI prefix (e.g.,s3://bucket/key/prefix/
). For the latter case, when a S3 URI is used, I have setupcache.s3
in.dvc/config
to store prepared training data as external output / dependency of the maintrain
stage. The idea being that I want to be able to run initial experiments on a local GPU server, and at a later stage experiments in AWS EC2 (Ray Cluster).Reproduce
dvc config hydra.enabled True
conf/config.yaml
with keypath: input.txt
dvc.yaml
with stagesdvc status dvc.yaml
which displays errordvc exp run stage_2
, which also shows the error:CORRECTION:
dvc exp run
does work, I had failed to enable hydra in the DVC config when running this test. The issue withdvc status
whenparams.yaml
does not exist remains, though.Expected
dvc status
anddvc exp show
produce expected output rather than a failure to parse thedvc.yaml
stages.Environment information
Output of
dvc doctor
:Additional Information (if any):
I've installed DVC in a Docker image directly from YUM repository.
(The mismatch in DVC version is because the above I used when building the Docker image, but later in the container upgraded DVC with
yum
to a more recent version)In my actual project, I had produced the
params.yaml
with a first stage that I had used to just test the Hydra composition:After this, the
params.yaml
existed already and I had it added to git withgit add params.yaml
+git commit
because the file was not automatically added bydvc exp run
to.gitignore
.With the
params.yaml
file existing, thedvc status
anddvc exp run
commands worked in my actual project. I only encountered the issue withdvc exp show
and also when trying to display the experiments in VS Code using the DVC extension. Only when putting the example above together I noticed that even the initialdvc exp run
would not work with thisdvc.yaml
.The text was updated successfully, but these errors were encountered: