diffusers
[Core] add "balanced" `device_map` support to pipelines
#6857
Merged

[Core] add "balanced" `device_map` support to pipelines #6857

sayakpaul merged 92 commits into main from pipeline-device-map-auto
sayakpaul
sayakpaul get device <-> component mapping when using multiple gpus.
6e9aba17
sayakpaul sayakpaul requested a review from SunMarc SunMarc 2 years ago
HuggingFaceDocBuilderDev
sayakpaul condition the device_map bits.
c7c6f06f
sayakpaul relax condition
f2d795bc
sayakpaul Merge branch 'main' into pipeline-device-map-auto
351fa63b
sayakpaul device_map progress.
6d8e5d48
sayakpaul device_map enhancement
7e72a596
sayakpaul
sayakpaul some cleaning up and debugging
3e9e3baf
sayakpaul
SunMarc
SunMarc dismissed these changes on 2024-02-13
SunMarc SunMarc requested a review from SunMarc SunMarc 2 years ago
SunMarc SunMarc dismissed their stale review 2 years ago
typo
SunMarc
sayakpaul Merge branch 'main' into pipeline-device-map-auto
c30b1651
sayakpaul Apply suggestions from code review
b78e940a
sayakpaul incorporate suggestions from PR.
06d3bae1
sayakpaul remove multi-gpu condition for now.
b00b71d1
sayakpaul
sayakpaul
SunMarc
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
8177b437
sayakpaul guard check the component -> device mapping
1cd6271b
sayakpaul Merge branch 'main' into pipeline-device-map-auto
5f4a2d44
sayakpaul fix: device_memory variable
bc60b0ee
sayakpaul
sayakpaul
ArthurZucker
sayakpaul
ArthurZucker
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
68893d7b
SunMarc
sayakpaul Merge branch 'main' into pipeline-device-map-auto
3e22470e
sayakpaul
SunMarc
SunMarc
muellerzr
ArthurZucker
sayakpaul
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
b8576619
ArthurZucker
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
76aa9477
SunMarc
lllllinux
sayakpaul
lllllinux
sayakpaul Merge branch 'main' into pipeline-device-map-auto
5a747bcb
sayakpaul dispatching transformers model to have force_hooks=True
b79662ae
sayakpaul
sayakpaul better guarding for transformers device_map
a072083a
SunMarc
sayakpaul Merge branch 'main' into pipeline-device-map-auto
dbde760d
sayakpaul introduce support balanced_low_memory and balanced_ultra_low_memory.
d36af6ce
sayakpaul
sayakpaul remove device_map patch.
48853d01
sayakpaul
sayakpaul commented on 2024-03-04
sayakpaul fix: intermediate variable scoping.
c8c4020b
SunMarc
SunMarc commented on 2024-03-05
SunMarc
sayakpaul resolve conflicts.
9f82b5b6
sayakpaul
sayakpaul fix: condition in cpu offload.
951af8d2
sayakpaul fix: flax class restrictions.
45f9d1d1
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
588df06d
sayakpaul resolve conflicts.
79386be2
sayakpaul remove modifications from cpu_offload and model_offload
2df95030
sayakpaul
SunMarc
SunMarc dismissed these changes on 2024-03-11
SunMarc SunMarc dismissed their stale review 2 years ago
Typo
sayakpaul Merge branch 'main' into pipeline-device-map-auto
ab5c612b
sayakpaul incorporate changes.
055c0573
sayakpaul add a simple forward pass test
87803801
sayakpaul add: torch_device in get_inputs()
be90a71d
sayakpaul add: tests
bcca61d7
sayakpaul remove print
01a77b6a
sayakpaul
sayakpaul sayakpaul marked this pull request as ready for review 2 years ago
sayakpaul sayakpaul requested a review from yiyixuxu yiyixuxu 2 years ago
sayakpaul
sayakpaul safe-guard to(), model offloading and cpu offloading when balanced is…
c39d91f2
sayakpaul Merge branch 'main' into pipeline-device-map-auto
7ddb6e8a
sayakpaul Merge branch 'main' into pipeline-device-map-auto
52d8d89f
sayakpaul style
120709c4
sayakpaul sayakpaul requested a review from SunMarc SunMarc 2 years ago
SunMarc
SunMarc approved these changes on 2024-03-14
SunMarc
sayakpaul remove .
fc9b2209
sayakpaul safeguard device_map with more checks and remove invalid device_mappi…
25d04b82
sayakpaul make a class attribute and adjust tests accordingly.
9ba3773b
sayakpaul fix device_map check
a216b542
sayakpaul fix test
2ea57ddd
sayakpaul adjust comment
2bd55cd1
sayakpaul sayakpaul changed the title [Core] add auto `device_map` support to pipelines [Core] add "balanced" `device_map` support to pipelines 2 years ago
sayakpaul
sayakpaul commented on 2024-03-15
sayakpaul fix: device_map attribute
7e38e692
sayakpaul Merge branch 'main' into pipeline-device-map-auto
d6b7caa3
sayakpaul
sayakpaul commented on 2024-03-15
sayakpaul
sayakpaul commented on 2024-03-15
sayakpaul
sayakpaul commented on 2024-03-15
sayakpaul Merge branch 'main' into pipeline-device-map-auto
87b020df
sayakpaul
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
8d559078
sayakpaul
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
2e25f46c
SunMarc
sayakpaul Merge branch 'main' into pipeline-device-map-auto
8f47a69a
sayakpaul fix: dispatching.
cdf5e9b5
sayakpaul max_memory test for pipeline
5f1dbc35
sayakpaul version guard the tests
b27b84a9
sayakpaul fix guard.
d2504514
sayakpaul sayakpaul requested a review from SunMarc SunMarc 2 years ago
sayakpaul
sayakpaul
sayakpaul commented on 2024-03-28
yiyixuxu
yiyixuxu commented on 2024-03-29
yiyixuxu
yiyixuxu commented on 2024-03-29
yiyixuxu
yiyixuxu commented on 2024-03-29
yiyixuxu
yiyixuxu commented on 2024-03-29
sayakpaul address review feedback.
606753e3
sayakpaul reset_device_map method.
7571ceac
sayakpaul Merge branch 'main' into pipeline-device-map-auto
f5d8a8f8
sayakpaul add: test for reset_hf_device_map
9e628cf1
sayakpaul fix a couple things.
8a828a8e
sayakpaul
yiyixuxu yiyixuxu added Good Example PR
yiyixuxu
yiyixuxu commented on 2024-03-31
sayakpaul Merge branch 'main' into pipeline-device-map-auto
3cb65801
sayakpaul add reset_device_map() in the error message.
0f92bc7b
sayakpaul add tests for checking reset_device_map doesn't have unintended conse…
3bccdd05
sayakpaul fix reset_device_map and offloading tests.
4ef5f1f4
sayakpaul create _get_final_device_map utility.
883b6cad
sayakpaul hf_device_map -> _hf_device_map
fee86e96
sayakpaul add documentation
97dc870b
sayakpaul
sayakpaul sayakpaul requested a review from pcuenca pcuenca 2 years ago
yiyixuxu
yiyixuxu approved these changes on 2024-04-01
sayakpaul merge main and resolve conflicts.
eebc06da
SunMarc
SunMarc approved these changes on 2024-04-02
sayakpaul Merge branch 'main' into pipeline-device-map-auto
e5c85fca
sayakpaul add notes suggested by Marc.
5547608f
stevhliu
stevhliu approved these changes on 2024-04-02
pcuenca
pcuenca commented on 2024-04-02
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
28d1c058
sayakpaul styling.
9390e24d
sayakpaul Apply suggestions from code review
15bfbfc9
sayakpaul move updates within gpu condition.
fe050ef1
sayakpaul other docs related things
1d16c2c3
sayakpaul note on ignore a device not specified in .
2ad133df
sayakpaul provide a suggestion if device mapping errors out.
723bc131
sayakpaul fix: typo.
9dcdf0bf
sayakpaul _hf_device_map -> hf_device_map
86e6b59e
sayakpaul Empty-Commit
e0638119
sayakpaul add: example hf_device_map.
fec5ff9a
pcuenca
pcuenca commented on 2024-04-03
sayakpaul Merge branch 'main' into pipeline-device-map-auto
e6a8769b
sayakpaul Merge branch 'main' into pipeline-device-map-auto
ad1a412e
sayakpaul Merge branch 'main' into pipeline-device-map-auto
c6c32999
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
f8b76a27
sayakpaul Merge branch 'main' into pipeline-device-map-auto
dde27479
sayakpaul resolve conflicts and merged main
8931d0da
sayakpaul
sayakpaul Merge branch 'main' into pipeline-device-map-auto
4279015d
sayakpaul Merge branch 'main' into pipeline-device-map-auto
849d396b
sayakpaul sayakpaul merged 3e4a6bd2 into main 2 years ago
sayakpaul sayakpaul deleted the pipeline-device-map-auto branch 2 years ago
MikeHanKK
sayakpaul
MikeHanKK
sayakpaul
MikeHanKK
sayakpaul

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone