Torch logs added
Browse files
app.py
CHANGED
|
@@ -11,6 +11,9 @@ def _init():
|
|
| 11 |
if _model:
|
| 12 |
return
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
_bnb_config = BitsAndBytesConfig(
|
| 15 |
load_in_4bit=True,
|
| 16 |
bnb_4bit_use_double_quant=False,
|
|
|
|
| 11 |
if _model:
|
| 12 |
return
|
| 13 |
|
| 14 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
| 15 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
| 16 |
+
|
| 17 |
_bnb_config = BitsAndBytesConfig(
|
| 18 |
load_in_4bit=True,
|
| 19 |
bnb_4bit_use_double_quant=False,
|