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).
30 lines
958 B
Python
30 lines
958 B
Python
"""Model Plane — the center (design_v3 §4). The (recipe, runtime) pair as a typed card."""
|
|
from __future__ import annotations
|
|
|
|
from v2._enums import Capability, ConsistencyLevel, ExecutionProfile, LoopKind, WorkUnitKind
|
|
from v2.card.instance import ModelInstance, load_card
|
|
from v2.card.specs import (
|
|
CacheContract,
|
|
CapabilityMatrix,
|
|
CardValidationError,
|
|
CheckpointManifest,
|
|
ComponentSpec,
|
|
CostModel,
|
|
DataRef,
|
|
LoopSpec,
|
|
ModelCard,
|
|
ParallelismContract,
|
|
ParitySpec,
|
|
ParityTestSpec,
|
|
PrecisionContract,
|
|
RecipeSpec,
|
|
)
|
|
|
|
__all__ = [
|
|
"ModelCard", "ComponentSpec", "LoopSpec", "RecipeSpec", "ParitySpec", "ParityTestSpec",
|
|
"CheckpointManifest", "CapabilityMatrix", "CostModel", "CacheContract",
|
|
"ParallelismContract", "PrecisionContract", "DataRef", "CardValidationError",
|
|
"ModelInstance", "load_card",
|
|
"Capability", "ConsistencyLevel", "ExecutionProfile", "LoopKind", "WorkUnitKind",
|
|
]
|