-
Notifications
You must be signed in to change notification settings - Fork 6.6k
adding back test_conversion_when_using_device_map #7704
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
Conversation
|
cc @sayakpaul can you look into this why the tests still fail? it should work now with |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
| if class_name.startswith("Flax"): | ||
| raise ValueError("Flax pipelines are not supported with `device_map`.") | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why delete it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just so that we can run the fast test with the tiny checkpoints
why wouldn't it work with flax pipelines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accalerate is a Pytorch only library and we rely on accelerate for device map.
3b24568 to
d4be522
Compare
|
@sayakpaul |
|
Do you want me to review the PR? The tests are passing. |
| _deps = [ | ||
| "Pillow", # keep the PIL.Image.Resampling deprecation away | ||
| "accelerate>=0.11.0", | ||
| "accelerate>=0.29.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me!
sayakpaul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go
* style * Fix device map nits (#7705) --------- Co-authored-by: Sayak Paul <[email protected]>
enable the
DeprecatedAttentionBlockTestsagainfollow up on #7620
we disabled the test because of this issue, which is now fixed by this PR and that's already in the latest release