asigalov61 commited on
Commit
8643c09
·
verified ·
1 Parent(s): 6839e1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -10,6 +10,16 @@ from pytz import timezone
10
 
11
  import torch
12
 
 
 
 
 
 
 
 
 
 
 
13
  import spaces
14
  import gradio as gr
15
 
 
10
 
11
  import torch
12
 
13
+ torch.set_float32_matmul_precision('medium')
14
+ torch.backends.cuda.matmul.allow_tf32 = True # allow tf32 on matmul
15
+ torch.backends.cudnn.allow_tf32 = True # allow tf32 on cudnn
16
+ torch.backends.cuda.enable_mem_efficient_sdp(True)
17
+ torch.backends.cuda.enable_math_sdp(True)
18
+ torch.backends.cuda.enable_flash_sdp(True)
19
+ torch.backends.cuda.enable_cudnn_sdp(True)
20
+
21
+ from huggingface_hub import hf_hub_download
22
+
23
  import spaces
24
  import gradio as gr
25