A continuaciónSiguiente guía
Decodificación especulativa con EAGLE
Técnico
GUÍA Técnica
Speculative decoding can speed up large-model generation by letting a faster drafter propose tokens for a target model to verify in batches.
Escuche esta guíaNarrado por IA · ~2 min
Exact speculative sampling can preserve the target distribution, but speedup depends on draft cost, acceptance rate, batching and hardware.
Normally an LLM generates text one token at a time: each token requires a full forward pass through the giant model, and you can't start the next until the current one finishes. For large models at low batch sizes, decoding can be memory-bandwidth bound: each token step reads many weights, so moving data may dominate arithmetic. Other batch sizes and workloads can have different bottlenecks. Speculative decoding breaks the bottleneck. A small, cheap draft model proposes a chunk of, say, five candidate tokens. The large 'target' model then processes all five in a single parallel forward pass and checks them. In greedy decoding, the target accepts the matching prefix and uses its own token at the first mismatch, discarding the remaining draft. Exact sampling uses a rejection-sampling correction to preserve the target distribution; acceptance is not always simple token equality. The target can verify a drafted block in a parallel pass, but verification still costs computation. Net speedup depends on draft-model cost, how many tokens are accepted, and the hardware and workload.
Un borrador de modelo 7B que propone tokens para un modelo de chat 70B para reducir la latencia de respuesta en un asistente de producción.
Cabezas de Medusa atornilladas a un LLM para que prediga varios tokens futuros a la vez sin un modelo preliminar separado
vLLM permite la decodificación especulativa para aumentar el rendimiento de tokens por segundo en un clúster de servicio
Dibujo de EAGLE en el espacio de funciones ocultas del modelo para aumentar la tasa de aceptación y la velocidad general.
Serving frameworks offer speculative decoding and self-drafting variants, but the best method depends on the target model, workload and hardware. Systems should measure latency, throughput, acceptance rate, memory use and output-distribution requirements rather than assume a fixed speedup. Some methods use a separate drafter; others add heads or use feature-space proposals. Continued research is likely to improve these tradeoffs, but deployment gains must be measured on the actual service.
Boletín gratuito
Tres noticias verificadas sobre IA cada mañana de lunes a viernes, explicadas con claridad. Gratis para siempre y sin anuncios.
Un correo cada día laborable. Date de baja con un clic. Nunca vendemos ni compartimos tu dirección.
Ponte a prueba
Corrección inmediata en cada respuesta y un certificado para compartir, con un ID verificable, cuando apruebas un curso.
Apoya la educación gratuita sobre IA. AI Understanding es una organización sin fines de lucro 501(c)(3): sin anuncios ni muros de pago, nunca. Hacer una donación
Speculative decoding can speed up large-model generation by letting a faster drafter propose tokens for a target model to verify in batches. Exact speculative sampling can preserve the target distribution, but speedup depends on draft cost, acceptance rate, batching and hardware.
Un modelo de borrador rápido propone múltiples tokens y el modelo de destino grande los verifica todos en una sola pasada paralela.
For large models at low batch sizes, repeatedly reading weights can dominate arithmetic, though the bottleneck depends on workload.
In greedy verification, the target corrects the first mismatch and the remaining drafted suffix is discarded; exact sampling uses a rejection-sampling correction instead.
The exact rejection-sampling correction preserves the target model’s distribution; this is distinct from relaxed variants.
Cuantos más tokens redactados acepte el modelo objetivo por paso de verificación, mayor será la aceleración.
sigue aprendiendo
Más guías seleccionadas para este tema.
A continuaciónSiguiente guía
Decodificación especulativa con EAGLE
Técnico