manager: remove obsolete tinygrad MainProcess workaround (#38104)

tinygrad doesn't need to run in 'MainProcess'?
This commit is contained in:
Armand du Parc Locmaria
2026-05-29 16:35:08 -07:00
committed by GitHub
parent 417efb3c05
commit 9f59a4a5ca
+1 -5
View File
@@ -190,12 +190,8 @@ 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=name, target=self.launcher, args=(self.module, self.name))
self.proc = Process(name=self.name, target=self.launcher, args=(self.module, self.name))
self.proc.start()
self.shutting_down = False