Tonic commited on
Commit
e26c82c
·
verified ·
1 Parent(s): a2e7b70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -61,6 +61,8 @@ tasks = {
61
  }
62
 
63
  os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'max_split_size_mb:30'
 
 
64
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
65
 
66
  # Define the model and tokenizer globally
 
61
  }
62
 
63
  os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'max_split_size_mb:30'
64
+ os.environ['CUDA_LAUNCH_BLOCKING'] = 1
65
+ os.environ['CUDA_CACHE_DISABLE'] = 1
66
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
67
 
68
  # Define the model and tokenizer globally