Cohere has developed and contributed Dynamic Speculative Decoding (DSD) to the vLLM inference framework. DSD adaptively controls the number of draft tokens based on hardware constraints (compute vs. memory bandwidth) and model architecture (dense vs. MoE), improving LLM inference speed and efficiency across various batch sizes and workloads, including large-scale RL rollouts. This optimization is compatible with vLLM's asynchronous scheduling and full CUDA Graph features. This post further analyzes the performance gains and compatibility challenges of DSD within vLLM, demonstrating its effectiveness in production systems and RL rollouts.
All Cohere trails