Skip to content

fix: use nanosecond experiment timestamps#563

Open
sudostock wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
sudostock:afilby/ns-timestamp
Open

fix: use nanosecond experiment timestamps#563
sudostock wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
sudostock:afilby/ns-timestamp

Conversation

@sudostock

Copy link
Copy Markdown
Contributor

Reduce experiment directory collisions by using time_ns for generated experiment IDs.

We've run into a race condition a few times with DGXC benchmarks where users will try and launch multiple instance of the same experiment in parallel to overcome the slow nemo-run submit times. As the current timestamp is second based, and the folder is not created right after it's checked it's possible for:

  1. Two experiments to share the exact same folder
  2. The first experiment to launch and the second to get a folder exist error.

This fix doesn't address the underlaying race condition, but should reduce the frequency and is also a necessary step if we can get nemo-run submissions to be sub-second.

Reduce experiment directory collisions by using time_ns for generated and reset experiment IDs. Add focused coverage for both paths.

Signed-off-by: Alex Filby <afilby@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant