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

SparksJoe
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
@SparksJoe SparksJoe deleted the dev branch January 25, 2024 07:05
shan23chen pushed a commit to shan23chen/VLMEvalKit that referenced this pull request Oct 3, 2024
…ompass#52)

* Add Emu2

* update

* update

* -update

* update

* update

* update

* update

* update

* Support torchrun for emu2&emu2_chat and fix bug

* update

* update

* Update emu.py

---------

Co-authored-by: llllIlllll <“1246234750@qq.com”>
Co-authored-by: Haodong Duan <dhd.efz@gmail.com>
Co-authored-by: Haodong Duan <dhd@pku.edu.cn>
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.

2 participants