exp branch vs exp apply for persisting experiments #5892
Replies: 4 comments 17 replies
-
One more thought: There are some
|
Beta Was this translation helpful? Give feedback.
-
Just a note that those docs don't state that That said I do expect users to continue bumping into the limitation that Would this basically mean updating the docs? Or is there some CLI messaging to update too (@pmrowla?) |
Beta Was this translation helpful? Give feedback.
-
The workspace and the experiment commits can become disconnected, and this can be confusing and problematic. This seems at least partially related to the use of
|
Beta Was this translation helpful? Give feedback.
-
I believe, in general, we need to split experiments from Git. They shouldn't require a Git repository in the first place, and from the latest experience, I think "experiments are like git branches/stashes/commits" model brings unnecessary complexity. We used Git to solve some problems easily but now we are on a bus that takes us to where Git goes. We'll have to deal with these issues and more as Git itself is not a simple solution either. |
Beta Was this translation helpful? Give feedback.
-
There have been a few discussions around when to use
exp branch
vs.exp apply
:exp run/apply/branch
+ dvc.org#2417 (comment)The default workflow we have promoted uses
apply
as the default for persisting experiments:Since
apply
doesn't actually make anything persistent on its own, this might be adding to confusion between the commands.It might make more sense to promote
branch
as the default for persisting experiment (+git merge
if people want the experiment in their current branch).apply
could be seen as a special case when needing to debug or to apply changes on top of a particular past checkpoint.The
branch
workflow for persisting experiments is no more complex thanapply
, and it has advantages:exp show
(and otherexp
commands) will match the shas in the persistent Git branch.@pmrowla @jorgeorpinel
Beta Was this translation helpful? Give feedback.
All reactions