worker diagnostics: print interpreter + torch state at import
This commit is contained in:
1 parent
7f80523739
commit
c6296c9c10
2 files changed
+8
No files matched your search
@@ -22,6 +22,14 @@ from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parent))
|
||||
|
||||
print("WORKER-ENV", sys.executable, sys.version.split()[0], flush=True)
|
||||
try:
|
||||
import torch
|
||||
print("WORKER-TORCH", torch.__version__, flush=True)
|
||||
except Exception as e:
|
||||
print("WORKER-TORCH-FAIL", repr(e), flush=True)
|
||||
print("WORKER-PATH", *sys.path, flush=True)
|
||||
|
||||
import runpod
|
||||
import server # the chamber's model machinery: _state, set_vec, streams
|
||||
|
||||
|
||||
Reference in new issue
Block a user