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.
13 lines
476 B
Python
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"
|