mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-17 08:28:07 -05:00
37 lines
944 B
Plaintext
37 lines
944 B
Plaintext
# solvers.SingleNodeModel { #mlsysim.solvers.SingleNodeModel }
|
|
|
|
```python
|
|
solvers.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.solvers.SingleNodeModel.solve) | Calculates the performance profile for a single hardware node. |
|
|
|
|
### solve { #mlsysim.solvers.SingleNodeModel.solve }
|
|
|
|
```python
|
|
solvers.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.
|