-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[core] support device type device_maps to work with offloading. #12811
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
83ec2fb
support device type device_maps to work with offloading.
sayakpaul 6f5eb0a
Merge branch 'main' into device-map-direct
sayakpaul c61e455
Merge branch 'main' into device-map-direct
sayakpaul 3b334de
Merge branch 'main' into device-map-direct
sayakpaul b28d6d4
Merge branch 'main' into device-map-direct
sayakpaul fe4c0be
Merge branch 'main' into device-map-direct
sayakpaul 0a58f56
Merge branch 'main' into device-map-direct
sayakpaul 59ac2f3
Merge branch 'main' into device-map-direct
sayakpaul 661d2b1
Merge branch 'main' into device-map-direct
sayakpaul 2baa95d
add tests.
sayakpaul 2605129
fix tests
sayakpaul 1987022
skip tests where it's not supported.
sayakpaul ba272ed
empty
sayakpaul 3fb47a4
up
sayakpaul abb68a5
Merge branch 'main' into device-map-direct
sayakpaul 7049808
up
sayakpaul 9f78817
Merge branch 'main' into device-map-direct
sayakpaul 052b70e
fix allegro.
sayakpaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2355,7 +2355,6 @@ def test_torch_dtype_dict(self): | |
| f"Component '{name}' has dtype {component.dtype} but expected {expected_dtype}", | ||
| ) | ||
|
|
||
| @require_torch_accelerator | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So that this runs on the CPUs too as it's supported. |
||
| def test_pipeline_with_accelerator_device_map(self, expected_max_difference=1e-4): | ||
| components = self.get_dummy_components() | ||
| pipe = self.pipeline_class(**components) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This test is specified to
bitsandbytesfor now.