Spaces:
Running
on
Zero
Running
on
Zero
Move weights to CUDA
Browse files
app.py
CHANGED
@@ -53,6 +53,8 @@ def compile_model():
|
|
53 |
return weights_
|
54 |
|
55 |
weights = compile_model()
|
|
|
|
|
56 |
del model
|
57 |
|
58 |
@spaces.GPU
|
|
|
53 |
return weights_
|
54 |
|
55 |
weights = compile_model()
|
56 |
+
weights = {name: tensor.to('cuda') for name, tensor in weights.items()}
|
57 |
+
|
58 |
del model
|
59 |
|
60 |
@spaces.GPU
|