Make model daemons Python processes (#34880)

This commit is contained in:
Adeeb Shihadeh
2025-03-15 15:55:29 -07:00
committed by GitHub
parent fb7b9c0f94
commit 519ea9dcab
2 changed files with 7 additions and 5 deletions

View File

@@ -221,8 +221,12 @@ class PythonProcess(ManagerProcess):
if self.proc is not None:
return
# TODO: this is just a workaround for this tinygrad check:
# https://github.com/tinygrad/tinygrad/blob/ac9c96dae1656dc220ee4acc39cef4dd449aa850/tinygrad/device.py#L26
name = self.name if "modeld" not in self.name else "MainProcess"
cloudlog.info(f"starting python {self.module}")
self.proc = Process(name=self.name, target=self.launcher, args=(self.module, self.name))
self.proc = Process(name=name, target=self.launcher, args=(self.module, self.name))
self.proc.start()
self.watchdog_seen = False
self.shutting_down = False