jzq11111 commited on
Commit
5fa2009
·
verified ·
1 Parent(s): c6eecf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -6,14 +6,11 @@ subprocess.run(
6
  env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
7
  shell=True,
8
  )
9
- # subprocess.run(
10
- # "pip uninstall torch torchvision torchaudio -y",
11
- # shell=True,
12
- # )
13
- # subprocess.run(
14
- # "pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu121 --no-cache-dir --force-reinstall",
15
- # shell=True,
16
- # )
17
  import torch
18
  print(torch.__version__)
19
  print(torch.cuda.is_available())
 
6
  env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
7
  shell=True,
8
  )
9
+ subprocess.run(
10
+ "nvidia-smi",
11
+ shell=True,
12
+ )
13
+
 
 
 
14
  import torch
15
  print(torch.__version__)
16
  print(torch.cuda.is_available())