Spaces:
Running
on
Zero
Running
on
Zero
Update model/flux.py
Browse files- model/flux.py +1 -1
model/flux.py
CHANGED
@@ -652,7 +652,7 @@ class Flux(BaseModel):
|
|
652 |
|
653 |
def load_pretrained_model(self, pretrained_model):
|
654 |
if next(self.parameters()).device.type == 'meta':
|
655 |
-
map_location = we.device_id
|
656 |
else:
|
657 |
map_location = "cpu"
|
658 |
if self.lora_model is not None:
|
|
|
652 |
|
653 |
def load_pretrained_model(self, pretrained_model):
|
654 |
if next(self.parameters()).device.type == 'meta':
|
655 |
+
map_location = torch.device(we.device_id)
|
656 |
else:
|
657 |
map_location = "cpu"
|
658 |
if self.lora_model is not None:
|