spoorthibhat commited on
Commit
75bde38
·
verified ·
1 Parent(s): f8ba981

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,6 +4,8 @@ os.system('pip install -q -e .')
4
  os.system('pip uninstall bitsandbytes')
5
  os.system('pip install bitsandbytes-0.45.0-py3-none-manylinux_2_24_x86_64.whl')
6
 
 
 
7
  import torch
8
  print(torch.cuda.is_available())
9
 
 
4
  os.system('pip uninstall bitsandbytes')
5
  os.system('pip install bitsandbytes-0.45.0-py3-none-manylinux_2_24_x86_64.whl')
6
 
7
+ os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
8
+
9
  import torch
10
  print(torch.cuda.is_available())
11