Spaces:
Running
Running
Download lpu/accelerator/__init__.py from iparaco/Virtual-LPU: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/iparaco/Virtual-LPU/resolve/main/lpu/accelerator/__init__.py
- Command line
-
hf download hf://spaces/iparaco/Virtual-LPU/lpu/accelerator/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/iparaco/Virtual-LPU/resolve/main/lpu/accelerator/__init__.py
1.36 kB
| """LPU V7 Accelerator Controller — the standing decision brain. | |
| This subpackage is NEW in V7 (mission §2.B/§2.E). It runs torch-free inside | |
| the accelerator server process, continuously reads runtime facts (process | |
| discovery, GPU samples, session telemetry) and: | |
| * classifies bottlenecks with measured evidence (bottleneck.py) | |
| * governs parameter changes across the 3 safety levels and the | |
| hot-reload / safe-boundary / restart-required classes (parameters.py) | |
| * runs the propose -> validate -> apply -> ack -> rollback lifecycle | |
| (optimizer.py) | |
| * orchestrates everything in a background service loop (service.py) | |
| Design rules inherited from the V6 core: | |
| * no fabricated metrics - anything unmeasured is labeled an estimate | |
| * read-only towards foreign processes; control ONLY via the session | |
| command channel (allowlisted, envelope-versioned, acked) | |
| * stopping the accelerator NEVER stops training | |
| """ | |
| from .parameters import PARAM_SPECS, ParamLevel, ChangeClass, ParamSpec | |
| from .bottleneck import BottleneckEngine, BottleneckReport | |
| from .optimizer import OptimizerEngine, Proposal, ChangeRecord | |
| from .service import AcceleratorService | |
| __all__ = [ | |
| "PARAM_SPECS", "ParamLevel", "ChangeClass", "ParamSpec", | |
| "BottleneckEngine", "BottleneckReport", | |
| "OptimizerEngine", "Proposal", "ChangeRecord", | |
| "AcceleratorService", | |
| ] | |