Get old model without `dvc exp apply`

Use case:

I have an model which is tracked using -o flag of an stage. Now, I want to get the version of the model that was an output of an old experiment.

How to do this without dvc exp apply. Applying experiment will change the code and I don’t my code to change.

Note that I have not tracked the file using the syntax dvc add <filename>. Because, I observed that the command dvc exp apply also brings back the model version. But, now I only need the model without changing the code.

Hi @anupam, you can use dvc get -f --rev <expname> . <filename>. You can find the docs for this command in get.

1 Like