Upload app.py
Browse files
app.py
CHANGED
|
@@ -638,7 +638,7 @@ class EmptyInitWrapper(torch.overrides.TorchFunctionMode):
|
|
| 638 |
return func(*args, **kwargs)
|
| 639 |
|
| 640 |
with EmptyInitWrapper():
|
| 641 |
-
model = Flux().to(dtype=torch.bfloat16, device=
|
| 642 |
|
| 643 |
sd = load_file(f"{model_path}/consolidated_s6700.safetensors")
|
| 644 |
sd = {k.replace("model.", ""): v for k, v in sd.items()}
|
|
|
|
| 638 |
return func(*args, **kwargs)
|
| 639 |
|
| 640 |
with EmptyInitWrapper():
|
| 641 |
+
model = Flux().to(dtype=torch.bfloat16, device=device)
|
| 642 |
|
| 643 |
sd = load_file(f"{model_path}/consolidated_s6700.safetensors")
|
| 644 |
sd = {k.replace("model.", ""): v for k, v in sd.items()}
|