Files
vllm-omni/vllm_omni/host/worker_bootstrap.py
T
tzhouam 723c550209 Integrate portable edge graph backends with Omni runtime
Extract versioned stage contracts, model shared CPU/iGPU/NPU memory constraints, and add explicit graph routes, reservations, output acknowledgements, and worker retirement. Fix native Windows shared-buffer lifetime and host paths. Document qualified hardware paths and remaining rollout gates.
2026-09-22 13:12:33 +08:00

21 lines
526 B
Python

# SPDX-License-Identifier: Apache-2.0
"""Standalone worker bootstrap: record OS identity without importing Omni."""
import json
import os
import runpy
import sys
from pathlib import Path
if os.name == "nt":
from windows_process import identity
os.environ["VLLM_OMNI_WORKER_IDENTITY"] = json.dumps(identity())
else:
os.environ.pop("VLLM_OMNI_WORKER_IDENTITY", None)
worker = sys.argv.pop(1)
sys.argv[0] = worker
sys.path.insert(0, str(Path(worker).resolve().parent))
runpy.run_path(worker, run_name="__main__")