Files
vllm-omni/vllm_omni/host/paths.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

13 lines
476 B
Python

# SPDX-License-Identifier: Apache-2.0
"""Host-local paths, independent of the checkout and model location."""
import os
import tempfile
def device_lock_directory() -> str:
# A rooted POSIX path resolves against the current UNC share on Windows.
# Opening /tmp from a WSL checkout can block inside the filesystem driver.
# All same-user controllers/workers use the same native temporary directory.
return tempfile.gettempdir() if os.name == "nt" else "/tmp"