Validate native LTX deployment and persist worker caches and helper socket directory
This commit is contained in:
+2
-1
@@ -61,7 +61,8 @@ class VideoRuntimes(VideoComfy):
|
||||
settings_path.write_text(json.dumps(settings))
|
||||
for name in ('outputs','remote-inputs/deskweb'):(work/name).mkdir(parents=True,exist_ok=True)
|
||||
with socket.socket() as sock:sock.bind(('127.0.0.1',0));self.port=sock.getsockname()[1]
|
||||
python,backend=self.original_runtime.paths();env=dict(os.environ,CUDA_VISIBLE_DEVICES=','.join(g[0].strip() for g in ordered),OMP_NUM_THREADS='2',HF_HUB_DISABLE_TELEMETRY='1')
|
||||
for name in ('temp','cuda-cache','triton-cache','torch-cache'):(work/name).mkdir(exist_ok=True)
|
||||
python,backend=self.original_runtime.paths();env=dict(os.environ,CUDA_VISIBLE_DEVICES=','.join(g[0].strip() for g in ordered),OMP_NUM_THREADS='2',HF_HUB_DISABLE_TELEMETRY='1',TMPDIR=str(work/'temp'),CUDA_CACHE_PATH=str(work/'cuda-cache'),TRITON_CACHE_DIR=str(work/'triton-cache'),TORCHINDUCTOR_CACHE_DIR=str(work/'torch-cache'))
|
||||
self.switch_phase='Originale LTX-API starten · Gewichte laden erst bei Anfrage'
|
||||
self.process=subprocess.Popen([str(python),str(Path(__file__).with_name('ltx_original_entry.py')),'--backend',str(backend),'--data',str(work),'--port',str(self.port)],env=env,cwd=backend,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,start_new_session=True)
|
||||
deadline=time.monotonic()+180
|
||||
|
||||
Reference in New Issue
Block a user