A seguirPróximo guia
Continuous Training and Automated Retraining
Técnico
GUIA Técnico
Continuous batching updates the active request set between generation iterations instead of holding one fixed batch until every request finishes.
Ouça este guiaNarrado por IA · ~2 min
It can improve serving utilization, while capacity limits and scheduling policy still govern latency.
GPUs are fastest when they process many requests together in a batch. The naive approach, static batching, groups a fixed set of requests, runs them all to completion, then starts the next batch. The problem: language model outputs vary wildly in length, so short requests finish early and their slots sit idle while the batch waits for the longest one, wasting GPU cycles and delaying new arrivals. Continuous batching (also called in-flight or iteration-level batching, popularized by the Orca paper and used in vLLM, TensorRT-LLM, and TGI) operates at the granularity of a single decoding step. After each token is generated, finished sequences exit the batch and queued requests can be admitted when the scheduler has capacity. Iteration-level admission can improve utilization and reduce avoidable waiting compared with fixed batches; the measured effect depends on request lengths, capacity, and scheduling.
Uma API de bate-papo que admite mensagens de usuários recém-chegadas no lote em execução imediatamente, em vez de colocá-las na fila para o próximo lote
Retirar uma resposta curta concluída no meio do lote e preencher seu slot para que a GPU nunca fique ociosa esperando por uma geração longa
Combinando lote contínuo com PagedAttention do vLLM para inserir e remover sequências de maneira barata em cada etapa de decodificação
Um serviço de conclusão de código que sustenta altos tokens por segundo em tráfego intermitente e de comprimento variável, mantendo o lote cheio
Serving teams balance throughput with time to first token and time between generated tokens. Long prefill work can delay decoding unless the scheduler splits or otherwise manages it. Capacity budgets, request priorities, and fairness policies determine which work is admitted. Continuous batching can be combined with paged caches, chunked prefill, and speculative decoding, but each combination should be measured on the actual traffic and hardware.
Boletim informativo gratuito
Três histórias verificadas de IA a cada manhã de dia útil, escritas em linguagem simples. Gratuito para sempre, sem anúncios.
Um e-mail a cada dia útil. Cancele a inscrição com um clique. Nunca vendemos ou compartilhamos seu endereço.
Teste você mesmo
Feedback instantâneo sobre cada resposta e um certificado compartilhável com um ID verificável assim que você concluir um curso.
Apoie a educação gratuita em IA. O AI Understanding é uma organização sem fins lucrativos 501(c)(3) — sem anúncios, sem paywall, nunca. Faça uma doação
Continuous batching updates the active request set between generation iterations instead of holding one fixed batch until every request finishes. It can improve serving utilization, while capacity limits and scheduling policy still govern latency.
Como os comprimentos de saída variam, as sequências finalizadas ficam ociosas até que a mais lenta seja concluída, desperdiçando ciclos de GPU e atrasando novas solicitações.
O lote contínuo (nível de iteração) atualiza o conjunto ativo após cada etapa de decodificação, de modo que ele opera token por token, em vez de por solicitação inteira.
Iteration-level scheduling can refill available capacity subject to memory, token, and other limits.
PagedAttention armazena o cache KV de cada sequência em blocos independentes, portanto, adicionar ou remover uma sequência no meio do voo não perturba a memória de outras pessoas.
O artigo da Orca introduziu o agendamento em nível de iteração, e a ideia foi adotada por sistemas de atendimento como vLLM, TGI e TensorRT-LLM.
Continue aprendendo
Mais guias escolhidos para este tópico
A seguirPróximo guia
Continuous Training and Automated Retraining
Técnico