Bugfix device map detr model#26849
Conversation
bb926e0 to
f8f70c7
Compare
SunMarc
left a comment
There was a problem hiding this comment.
Hi @pedrogengo thanks for making detr model compatible with device_map ! The PR looks good overall. I don't think that we need to add tests for device_map because we already have them. You just need to make sure that you can pass the accelerate tests for all models. This will trigger the following tests: test_disk_offload, test_cpu_offload and test_model_parallelism. Please use 2 GPUs to tests them. If you don't have them, i can run the tests for you!
|
Hi @SunMarc :) I don't have 2 GPUs unfortunately. Can you run on your side? In the meantime I can remove the tests I added + fix the style issue |
Co-authored-by: Pi Esposito <piero.skywalker@gmail.com>
f8f70c7 to
43a5770
Compare
|
@SunMarc addressed your comment on my side. Could you test?
And it was breaking the CI, because it first replace |
amyeroberts
left a comment
There was a problem hiding this comment.
Thanks for fixing @pedrogengo, and thanks @SunMarc for running the accelerate tests!
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. |
* Fixed replace_batch_norm when on meta device * lint fix * Adding coauthor Co-authored-by: Pi Esposito <piero.skywalker@gmail.com> * Removed tests * Remove unused deps * Try to fix copy issue * try fix copy one more time * Reverted import changes --------- Co-authored-by: Pi Esposito <piero.skywalker@gmail.com>
What does this PR do?
Fixes #26700 #23145
Who can review?
@LysandreJik @SunMarc