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

Fixing Multi-GPU Unit Test Issue #2302

Merged
merged 3 commits into from
May 28, 2024
Merged

Fixing Multi-GPU Unit Test Issue #2302

merged 3 commits into from
May 28, 2024

Conversation

Satrat
Copy link

@Satrat Satrat commented May 23, 2024

A sequential distillation test was failing with a device mismatch error when running on multiple GPUs. This was caused by the student model being forced to "cuda:0" while the teacher model was defaulting to "auto" device mapping. The fix is to initialize both models with device_map="auto", then transformers handles the multi-gpu case automatically

@Satrat Satrat merged commit 53e98b6 into main May 28, 2024
17 checks passed
@Satrat Satrat deleted the fix_sequential_test_multi_gpu branch May 28, 2024 15:37
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.

3 participants