Spaces:
Paused
Paused
Update app.py
Browse files
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 |
|