Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

glm serve: fix vision tower load NameError (torch not imported)

Resynthb3a45191bc31
diff --git a/tools/glm/serve.py b/tools/glm/serve.py
index 77fc997..562d5ff 100644
--- a/tools/glm/serve.py
+++ b/tools/glm/serve.py
@@ -970,7 +970,7 @@ class ResidentEngine:
self.split.load("vision", tower, progressbar=False,
callback=startup_health.load_callback())
else:
- tower.load(device=torch.device("cuda:0"), progressbar=False,
+ tower.load(device="cuda:0", progressbar=False,
callback=startup_health.load_callback())
except Exception as exc: # noqa: BLE001
print(f"serve: vision tower not loaded ({type(exc).__name__}: {exc}); image input disabled", flush=True)