Faaz commited on
Commit ·
1c36b28
1
Parent(s): 2ff5c54
Fix train.py: mem -> memory on line 225
Browse files- scripts/train.py +1 -1
scripts/train.py
CHANGED
|
@@ -222,7 +222,7 @@ def main() -> None:
|
|
| 222 |
print(f" Device: {'cuda' if torch.cuda.is_available() else 'cpu'}")
|
| 223 |
if torch.cuda.is_available():
|
| 224 |
print(f" GPU: {torch.cuda.get_device_name(0)}")
|
| 225 |
-
vram_gb = torch.cuda.get_device_properties(0).
|
| 226 |
print(f" VRAM: {vram_gb:.1f} GB")
|
| 227 |
print()
|
| 228 |
|
|
|
|
| 222 |
print(f" Device: {'cuda' if torch.cuda.is_available() else 'cpu'}")
|
| 223 |
if torch.cuda.is_available():
|
| 224 |
print(f" GPU: {torch.cuda.get_device_name(0)}")
|
| 225 |
+
vram_gb = torch.cuda.get_device_properties(0).total_memory / (1024 ** 3)
|
| 226 |
print(f" VRAM: {vram_gb:.1f} GB")
|
| 227 |
print()
|
| 228 |
|