Skip to content

[benchmarks] Fix moco initialization device.#7598

Merged
ysiraichi merged 1 commit intomasterfrom
ysiraichi/fix-model-init-device
Jul 2, 2024
Merged

[benchmarks] Fix moco initialization device.#7598
ysiraichi merged 1 commit intomasterfrom
ysiraichi/fix-model-init-device

Conversation

@ysiraichi
Copy link
Copy Markdown
Collaborator

This PR fixes the problem introduced in #7321, where we would initialize moco with "xla" device type, instead of the used accelerator.

Problem: this broke non-XLA benchmark runs

  • Since we weren't checking for that, inductor started failing

Solution: check whether we are supposed to run on XLA

cc @miladm @JackCaoG @zpcore @qihqi

@ysiraichi ysiraichi merged commit 86169d2 into master Jul 2, 2024
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.

2 participants