Commit e2deb82
Fix compatibility with pipeline when loading model with device_map on single gpu (huggingface#10390)
* fix device issue in single gpu case
* Update src/diffusers/pipelines/pipeline_utils.py
Co-authored-by: Sayak Paul <[email protected]>
---------
Co-authored-by: Sayak Paul <[email protected]>1 parent 1288c85 commit e2deb82
File tree
2 files changed
+7
-10
lines changed- src/diffusers
- models
- pipelines
2 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
924 | 923 | | |
925 | 924 | | |
926 | 925 | | |
927 | 926 | | |
928 | 927 | | |
929 | 928 | | |
930 | | - | |
931 | 929 | | |
932 | 930 | | |
933 | 931 | | |
| |||
937 | 935 | | |
938 | 936 | | |
939 | 937 | | |
940 | | - | |
941 | 938 | | |
942 | 939 | | |
943 | 940 | | |
| |||
967 | 964 | | |
968 | 965 | | |
969 | 966 | | |
970 | | - | |
971 | 967 | | |
972 | 968 | | |
973 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
414 | 421 | | |
415 | 422 | | |
416 | 423 | | |
| |||
422 | 429 | | |
423 | 430 | | |
424 | 431 | | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
0 commit comments