Expand description
ContinuousBatcher Implementation (PMAT-015)
Implements continuous batching for LLM inference per cbtop spec §19.
§Overview
Continuous batching processes inference requests dynamically, allowing new requests to join and completed requests to leave mid-batch.
§Citations
- [Yu et al. 2022] “ORCA: Continuous Batching for LLM Inference” OSDI
- [Leviathan et al. 2023] “Fast Inference from Transformers via Speculative Decoding” ICML
- [Chen et al. 2023] “Accelerating LLM Decoding with Speculative Sampling” arXiv
Structs§
- Batch
Schedule - Batch schedule result.
- Batcher
Stats - Batcher statistics.
- Continuous
Batcher - Continuous batching scheduler for LLM inference.
- Exponential
Moving Average - Exponential moving average for tracking metrics.
- Inference
Request - Inference request.
- Priority
- Request priority level.
- Sequence
Group - Sequence group (request + generation state).
- Speculative
Decoder - Speculative decoding coordinator.
- Speculative
Output - Output from speculative decoding step.
- Token
Output - Token output from a decode step.
Enums§
- Scheduling
Policy - Scheduling policy for request prioritization.
Type Aliases§
- Token
- Token type (simplified - u32 vocabulary index).