mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-27 02:28:12 -05:00
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.
36 lines
947 B
Plaintext
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.
|