Files
cs249r_book/mlsysim/core/__init__.py
Vijay Janapa Reddi c30f2a3bfd refactor: move mlsysim to repo root, extract fmt module from viz
Moves the mlsysim package from book/quarto/mlsysim/ to the repo root
so it is importable as a proper top-level package across the codebase.

Key changes:
- mlsysim/fmt.py: new top-level module for all formatting helpers (fmt,
  sci, check, md_math, fmt_full, fmt_split, etc.), moved out of viz/
- mlsysim/viz/__init__.py: now exports only plot utilities; dashboard.py
  (marimo-only) is no longer wildcard-exported and must be imported
  explicitly by marimo labs
- mlsysim/__init__.py: added `from . import fmt` and `from .core import
  constants`; removed broken `from .viz import plots as viz` alias
- execute-env.yml: fixed PYTHONPATH from "../../.." to "../.." so
  chapters resolve to repo root, not parent of repo
- 51 QMD files: updated `from mlsysim.viz import <fmt-fns>` to
  `from mlsysim.fmt import <fmt-fns>`
- book/quarto/mlsys/: legacy shadow package contents cleaned up;
  stub __init__.py remains for backward compat
- All Vol1 and Vol2 chapters verified to build with `binder build pdf`
2026-03-01 17:24:11 -05:00

13 lines
481 B
Python

# mlsysim.core — Physics, Constants, and Analytical Solver
from .constants import ureg, Q_
from .formulas import *
from .hardware import Hardware, HardwareSpec
from .models import Models, ModelSpec
from .engine import Engine
from .clusters import Clusters, Nodes, ClusterSpec, NodeSpec
from .datacenters import Datacenters, Grids, Racks
from .systems import Systems, Archetypes
from .deployment import Tiers, DeploymentTier
from .scenarios import Scenarios, Applications, Fleet