Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,11 @@ from typing import Iterator
|
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
from model import get_input_token_length, run
|
| 7 |
|
| 8 |
DEFAULT_SYSTEM_PROMPT = """\
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
|
| 6 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 7 |
+
print(f"{torch.cuda.current_device()}")
|
| 8 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 9 |
+
exit()
|
| 10 |
+
|
| 11 |
from model import get_input_token_length, run
|
| 12 |
|
| 13 |
DEFAULT_SYSTEM_PROMPT = """\
|