Skip to content

Initialize benchmarks with device type.#7321

Merged
ysiraichi merged 1 commit intomasterfrom
ysiraichi/initialize-model-with-device-type
Jun 21, 2024
Merged

Initialize benchmarks with device type.#7321
ysiraichi merged 1 commit intomasterfrom
ysiraichi/initialize-model-with-device-type

Conversation

@ysiraichi
Copy link
Copy Markdown
Collaborator

This PR makes benchmark initialization more consistent. This is in line with pytorch/benchmark#2292, which makes moco check for xla device for initializing its process group.

cc @miladm @vanbasten23 @zpcore

@ysiraichi
Copy link
Copy Markdown
Collaborator Author

I haven't tested this PR on a TPU machine (I don't have access to one). @zpcore Could you test if it works on TPU benchmark runs?

Copy link
Copy Markdown
Member

@zpcore zpcore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine for TPU, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants