MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / __init__

Method __init__

server/scripts/phase_split_dual_gpu.py:115–126  ·  view source on GitHub ↗
(self, *, binary: Path, drafter: Path, gpu: int, backend: str,
                 visible_devices: str | None, log_path: Path,
                 env: dict[str, str])

Source from the content-addressed store, hash-verified

113
114class PFlashDaemon:
115 def __init__(self, *, binary: Path, drafter: Path, gpu: int, backend: str,
116 visible_devices: str | None, log_path: Path,
117 env: dict[str, str]) -> None:
118 self.binary = binary
119 self.drafter = drafter
120 self.gpu = gpu
121 self.backend = backend
122 self.visible_devices = visible_devices
123 self.log = ProcessLog(log_path)
124 self.env = env
125 self.proc: subprocess.Popen[bytes] | None = None
126 self.r_fd: int | None = None
127
128 def start(self) -> float:
129 r_fd, w_fd = os.pipe()

Callers

nothing calls this directly

Calls 1

ProcessLogClass · 0.85

Tested by

no test coverage detected