Files
cs249r_book/mlsysim/docs/api/core.solver.SingleNodeSolver.qmd
Vijay Janapa Reddi 2bbe3e1a69 docs(mlsysim): redesign website, add 12 tutorials, and CLI entry points
Replace 9 old tutorials with 12 new numbered tutorials (00-11) covering
roofline through full-stack audit. Redesign landing page, add
models-and-solvers and extending-the-engine guides. Add __main__.py,
cli.py, and cli/ package for command-line interface.
2026-03-12 16:04:51 -04:00

36 lines
947 B
Plaintext

# core.solver.SingleNodeModel { #mlsysim.core.solver.SingleNodeModel }
```python
core.solver.SingleNodeModel()
```
Resolves single-node hardware Roofline bounds and feasibility.
This solver 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.core.solver.SingleNodeModel.solve) | Solves the performance profile for a single hardware node. |
### solve { #mlsysim.core.solver.SingleNodeModel.solve }
```python
core.solver.SingleNodeModel.solve(
model,
hardware,
batch_size=1,
precision='fp16',
efficiency=0.5,
raise_errors=False,
)
```
Solves the performance profile for a single hardware node.