John6666 commited on
Commit
f9c4591
1 Parent(s): 3e4cc33

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="cuda")
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()}