Files
cs249r_book/mlsysim/docs/api/engine.solver.BatchingOptimizer.qmd
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

35 lines
879 B
Plaintext

# engine.solver.BatchingOptimizer { #mlsysim.engine.solver.BatchingOptimizer }
```python
engine.solver.BatchingOptimizer()
```
Finds the maximum batch size that satisfies a P99 latency SLA.
Searches the continuous batching design space using an M/M/c queueing
model to find the optimal balance between throughput and tail latency.
## Methods
| Name | Description |
| --- | --- |
| [solve](#mlsysim.engine.solver.BatchingOptimizer.solve) | Determines the maximum batch size that satisfies a P99 tail latency SLA. |
### solve { #mlsysim.engine.solver.BatchingOptimizer.solve }
```python
engine.solver.BatchingOptimizer.solve(
model,
hardware,
seq_len,
sla_latency_ms,
arrival_rate_qps,
num_replicas=1,
precision='fp16',
efficiency=0.5,
max_search_batch=256,
)
```
Determines the maximum batch size that satisfies a P99 tail latency SLA.