Upload server.py with huggingface_hub
Browse files
server.py
CHANGED
|
@@ -16,7 +16,7 @@ print(f"[video] torch version: {torch.__version__}", flush=True)
|
|
| 16 |
print(f"[video] CUDA available: {torch.cuda.is_available()}", flush=True)
|
| 17 |
if torch.cuda.is_available():
|
| 18 |
print(f"[video] GPU: {torch.cuda.get_device_name(0)}", flush=True)
|
| 19 |
-
print(f"[video] VRAM: {torch.cuda.get_device_properties(0).
|
| 20 |
|
| 21 |
app = Flask(__name__)
|
| 22 |
pipe = None
|
|
|
|
| 16 |
print(f"[video] CUDA available: {torch.cuda.is_available()}", flush=True)
|
| 17 |
if torch.cuda.is_available():
|
| 18 |
print(f"[video] GPU: {torch.cuda.get_device_name(0)}", flush=True)
|
| 19 |
+
print(f"[video] VRAM: {torch.cuda.get_device_properties(0).total_memory / 1e9:.1f} GB", flush=True)
|
| 20 |
|
| 21 |
app = Flask(__name__)
|
| 22 |
pipe = None
|