Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support torchrun for emu2&emu2_chat and fix bug #52

Merged
merged 18 commits into from
Jan 17, 2024

Conversation

llllIlllll
Copy link
Contributor

No description provided.

device_1 = local_rank
device_2 = local_rank+world_size
torch.cuda.set_device(device_1)
torch.cuda.set_device(device_2)
Copy link
Member

Choose a reason for hiding this comment

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

Add some check / assertion to make sure such arrangement is viable.
For example, check if you have 2 * world_size GPUs

@kennymckormick kennymckormick merged commit 7d3ea7e into open-compass:main Jan 17, 2024
@llllIlllll llllIlllll deleted the dev branch January 25, 2024 07:05
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.

None yet

2 participants