Speculative Decoding Systems and Methods Having Improved Throughput
Патент · US A1
Полный текст
In some examples, a system includes at least one draft model configured to generate draft tokens for a plurality of requests received from one or more users. In some implementations, the example system includes a target model configured to verify the draft tokens to generate a plurality of responses to the plurality of requests. In some implementations, the target model is implemented as a pipeline including a plurality of pipeline stages, each pipeline stage of the plurality of pipeline stages configured to receive a plurality of batches, each batch of the plurality of batches accommodating a respective plurality of tokens. In some implementations, a first amount of the plurality of pipeline stages, a second amount of the plurality of batches, and a third amount of the plurality of tokens is selected to based on an average number of active requests associated with one or more users.