Files
cs249r_book/mlsysim/docs/api/core.solver.SingleNodeModel.qmd
Vijay Janapa Reddi 611de228d9 fix(mlsysim): align docs with *Model naming convention
The solver.py refactoring renamed most solver classes from *Solver to
*Model (e.g. DistributedSolver → DistributedModel). The docs still
referenced the old names, causing the Quarto site build to fail with:
  ImportError: cannot import name 'DistributedSolver' from 'mlsysim'

- Fix executable code cells in tutorials/distributed.qmd
- Update non-executable code examples across 10 doc files
- Rename 19 API reference files from *Solver.qmd to *Model.qmd
- SensitivitySolver and SynthesisSolver retain their names (correct)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 08:39:11 -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.