Mechanical conversion of every relative import under v2/ to an absolute v2.* path (from .x / ..x / ...x -> from v2.<pkg>.x) so imports are unambiguous, grep-able, and stable when code is copied/moved between entrypoints (VideoGenerator, CLI, server). Surgical prefix-only rewrite: only the 'from <dots><module>' prefix changed — import names, parentheses, multi-line formatting, comments, and ordering are byte-for-byte preserved (no collapsing, no reorder, no unrelated reformatting). - 471 imports across 125 files; v2/tests/ was already absolute (untouched). - Validated: all 125 files compile, every 'from v2.* import' target resolves to a real module/package, zero relative imports remain (full sweep), CPU mini suite green (202 passed, 2 skipped).
23 lines
984 B
Python
23 lines
984 B
Python
"""Execution plane — engine + scheduler (design_v3 §6)."""
|
|
from __future__ import annotations
|
|
|
|
from v2.runtime.async_engine import AsyncEngine, RequestState
|
|
from v2.runtime.context import RuntimeLoopContext
|
|
from v2.runtime.disaggregated import DisaggregatedRunner
|
|
from v2.runtime.engine import Engine, ProgramRunner
|
|
from v2.runtime.pools import DeployConfig, PoolSet, RolePool, RolePoolSpec, wan_t2v_disaggregated
|
|
from v2.runtime.session import WorldModelSession
|
|
from v2.runtime.scheduler import (
|
|
AdmissionController,
|
|
AdmissionInfeasible,
|
|
BatchScheduler,
|
|
SchedulerMetrics,
|
|
StepTicket,
|
|
WorkUnit,
|
|
)
|
|
|
|
__all__ = ["Engine", "ProgramRunner", "RuntimeLoopContext", "AdmissionController",
|
|
"AdmissionInfeasible", "BatchScheduler", "SchedulerMetrics", "StepTicket", "WorkUnit",
|
|
"AsyncEngine", "RequestState", "DisaggregatedRunner", "WorldModelSession",
|
|
"DeployConfig", "PoolSet", "RolePool", "RolePoolSpec", "wan_t2v_disaggregated"]
|