Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
c231665
1
Parent(s):
2242fb6
remove device map
Browse files
app.py
CHANGED
|
@@ -23,7 +23,6 @@ def load_model():
|
|
| 23 |
subfolder="text_encoder",
|
| 24 |
load_in_8bit=True,
|
| 25 |
variant="8bit",
|
| 26 |
-
device_map="auto",
|
| 27 |
token=token
|
| 28 |
)
|
| 29 |
text_pipe = DiffusionPipeline.from_pretrained(
|
|
@@ -31,7 +30,6 @@ def load_model():
|
|
| 31 |
text_encoder=text_encoder,
|
| 32 |
unet=None,
|
| 33 |
token=token,
|
| 34 |
-
device_map="auto" # Add this
|
| 35 |
)
|
| 36 |
print("Model loaded successfully!")
|
| 37 |
return text_pipe
|
|
|
|
| 23 |
subfolder="text_encoder",
|
| 24 |
load_in_8bit=True,
|
| 25 |
variant="8bit",
|
|
|
|
| 26 |
token=token
|
| 27 |
)
|
| 28 |
text_pipe = DiffusionPipeline.from_pretrained(
|
|
|
|
| 30 |
text_encoder=text_encoder,
|
| 31 |
unet=None,
|
| 32 |
token=token,
|
|
|
|
| 33 |
)
|
| 34 |
print("Model loaded successfully!")
|
| 35 |
return text_pipe
|