[edge-infer] WIP snapshot: uncommitted M0/W1/W4/W5 edge work as of 2026-09-18
Verbatim copy of the edge/omni-edge working tree (tracked diffs + untracked edge/local, tests/edge/local, docs/edge, pipeline files). Taken so that vLLM-Omni v0.29.0rc1 can be merged on a branch without touching the user's working tree. logs_edge/ and benchmark .npy outputs excluded. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
3834de3105
commit
4e3e8a1ebc
62 files changed
+11043
-56
No files matched your search
@@ -1,7 +1,15 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
|
||||
import fcntl
|
||||
# [edge-infer W1] This module is in the import closure of AsyncOmni, so a
|
||||
# module-scope `import fcntl` makes the whole engine unimportable on Windows
|
||||
# -- before anyone has chosen a connector. The transport itself is genuinely
|
||||
# POSIX (it hardcodes /dev/shm lock paths), so the honest Windows behaviour
|
||||
# is to stay importable and refuse at construction, not to fake a port.
|
||||
try:
|
||||
import fcntl
|
||||
except ImportError: # Windows
|
||||
fcntl = None
|
||||
import os
|
||||
from multiprocessing import shared_memory as shm_pkg
|
||||
from typing import Any
|
||||
@@ -25,6 +33,12 @@ class SharedMemoryConnector(OmniConnectorBase):
|
||||
"""
|
||||
|
||||
def __init__(self, config: dict[str, Any]):
|
||||
if fcntl is None:
|
||||
raise RuntimeError(
|
||||
"SharedMemoryConnector requires POSIX shared memory and fcntl "
|
||||
"locking (it addresses lock files under /dev/shm); neither exists "
|
||||
"on Windows. Select a different connector for this stage."
|
||||
)
|
||||
self.config = config
|
||||
self.stage_id = config.get("stage_id", -1)
|
||||
self._pending_keys: set[str] = set()
|
||||
|
||||
Reference in new issue
Block a user