Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,9 @@ import transformers
|
|
| 2 |
import torch
|
| 3 |
import os
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
print(f"Device name: {torch.cuda.get_device_properties('cuda').name}")
|
| 7 |
print(f"FlashAttention available: {torch.backends.cuda.flash_sdp_enabled()}")
|
|
|
|
| 2 |
import torch
|
| 3 |
import os
|
| 4 |
|
| 5 |
+
os.environ["HF_TOKEN"] = token
|
| 6 |
+
os.environ["HUGGINGFACEHUB_API_TOKEN"] = token
|
| 7 |
+
# os.environ["USE_FLASH_ATTENTION"] = "1"
|
| 8 |
|
| 9 |
print(f"Device name: {torch.cuda.get_device_properties('cuda').name}")
|
| 10 |
print(f"FlashAttention available: {torch.backends.cuda.flash_sdp_enabled()}")
|