Sweep all 296 v2 modules: simplify verbose docstrings/comments and remove 376 dangling "(design_vN §X)" citations to the now-deleted design docs (v2/README.md is the source of truth). Comment/docstring-only — AST-verified code-identical; the CPU suite holds at 237 passed / 5 pre-existing. Also applies yapf + ruff --fix auto-fixes (import ordering, forward-ref annotation de-quoting under `from __future__ import annotations`; behavior- neutral, suite-confirmed) and adds the legitimate domain terms mot/clen/te to the codespell ignore-list. Remaining ruff (24) + mypy (68 no-untyped-call) findings are pre-existing v2 debt, untouched here.
48 lines
1.0 KiB
Python
48 lines
1.0 KiB
Python
"""Model Plane — 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,
|
|
SamplingDefaults,
|
|
)
|
|
|
|
__all__ = [
|
|
"ModelCard",
|
|
"ComponentSpec",
|
|
"LoopSpec",
|
|
"RecipeSpec",
|
|
"ParitySpec",
|
|
"ParityTestSpec",
|
|
"CheckpointManifest",
|
|
"CapabilityMatrix",
|
|
"CostModel",
|
|
"CacheContract",
|
|
"SamplingDefaults",
|
|
"ParallelismContract",
|
|
"PrecisionContract",
|
|
"DataRef",
|
|
"CardValidationError",
|
|
"ModelInstance",
|
|
"load_card",
|
|
"Capability",
|
|
"ConsistencyLevel",
|
|
"ExecutionProfile",
|
|
"LoopKind",
|
|
"WorkUnitKind",
|
|
]
|