Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,12 @@
|
|
| 6 |
# copies of the Software, and to permit persons to whom the Software is
|
| 7 |
import spaces
|
| 8 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
import random
|
| 10 |
import uuid
|
| 11 |
import gradio as gr
|
|
@@ -30,10 +36,7 @@ torch.backends.cudnn.deterministic = False
|
|
| 30 |
torch.backends.cudnn.benchmark = False
|
| 31 |
#torch.backends.cuda.preferred_blas_library="cublas"
|
| 32 |
# torch.backends.cuda.preferred_linalg_library="cusolver"
|
| 33 |
-
|
| 34 |
torch.set_float32_matmul_precision("highest")
|
| 35 |
-
os.putenv("HF_HUB_ENABLE_HF_TRANSFER","1")
|
| 36 |
-
os.environ["SAFETENSORS_FAST_GPU"] = "1"
|
| 37 |
|
| 38 |
FTP_HOST = "1ink.us"
|
| 39 |
FTP_USER = "ford442"
|
|
|
|
| 6 |
# copies of the Software, and to permit persons to whom the Software is
|
| 7 |
import spaces
|
| 8 |
import os
|
| 9 |
+
|
| 10 |
+
os.putenv('TORCH_LINALG_PREFER_CUSOLVER','1')
|
| 11 |
+
os.putenv('PYTORCH_CUDA_ALLOC_CONF','max_split_size_mb:128')
|
| 12 |
+
os.environ["SAFETENSORS_FAST_GPU"] = "1"
|
| 13 |
+
os.putenv('HF_HUB_ENABLE_HF_TRANSFER','1')
|
| 14 |
+
|
| 15 |
import random
|
| 16 |
import uuid
|
| 17 |
import gradio as gr
|
|
|
|
| 36 |
torch.backends.cudnn.benchmark = False
|
| 37 |
#torch.backends.cuda.preferred_blas_library="cublas"
|
| 38 |
# torch.backends.cuda.preferred_linalg_library="cusolver"
|
|
|
|
| 39 |
torch.set_float32_matmul_precision("highest")
|
|
|
|
|
|
|
| 40 |
|
| 41 |
FTP_HOST = "1ink.us"
|
| 42 |
FTP_USER = "ford442"
|