Skip to content

exp run: option to append unique id to duplicate exp names #6680

@dberenbaum

Description

@dberenbaum

For example, right now the behavior is:

$ dvc exp run -n alexnet
Reproduced experiment(s): alexnet
$ dvc exp run -n alexnet
ERROR: Reproduced experiment conflicts with existing experiment alexnet

Desired behavior would be:

$ dvc exp run -n alexnet
Reproduced experiment(s): alexnet
$ dvc exp run -n alexnet
WARNING: Reproduced experiment conflicts with existing experiment alexnet, so unique ID was appended to the experiment name.
Reproduced experiment(s): alexnet-fds23

There might need to be some option to either strictly fail or use a unique ID.

Extracted from #6071 (comment).

For anyone interested, please note the workaround mentioned by @iesahin:

dvc exp run -n myprefix-${RANDOM}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions