Files
cs249r_book/mlsysim/docs/api/engine.solver.SingleNodeModel.qmd
T
Vijay Janapa Reddi cb0ae4082f docs(mlsysim): regenerate quartodoc API stubs for the new module layout
Run quartodoc build against the refactored package (engine/ extracted from core/,
infra->infrastructure): regenerate the API reference so every stub points at the new
paths. Adds engine.*/infrastructure.* stubs, removes the 41 stale core.solver.* /
core.engine.* / core.scenarios.* / core.config.* / core.evaluation.* / infra*.qmd
orphans, and refreshes the package pages (core now primitives-only) + index.

Verified: all 47 documented symbols resolve in the new package; every index link
resolves; zero stale mlsysim.core.<engine-mod> / mlsysim.infra references anywhere in
docs/. (objects.json inventory is gitignored -- regenerated at build.)
2026-05-29 21:35:39 -04:00

37 lines
980 B
Plaintext

# engine.solver.SingleNodeModel { #mlsysim.engine.solver.SingleNodeModel }
```python
engine.solver.SingleNodeModel()
```
Resolves single-node hardware Roofline bounds and feasibility.
This model handles the 'Iron Law' of machine learning systems,
calculating whether a model fits in memory and predicting its
throughput based on arithmetic intensity.
Literature Source: Williams et al. (2009), "Roofline: An Insightful Visual
Performance Model for Floating-Point Programs and Multicore Architectures."
## Methods
| Name | Description |
| --- | --- |
| [solve](#mlsysim.engine.solver.SingleNodeModel.solve) | Calculates the performance profile for a single hardware node. |
### solve { #mlsysim.engine.solver.SingleNodeModel.solve }
```python
engine.solver.SingleNodeModel.solve(
model,
hardware,
batch_size=1,
precision='fp16',
efficiency=0.5,
raise_errors=False,
**kwargs,
)
```
Calculates the performance profile for a single hardware node.