Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/models/spec_decode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Speculating with a draft model
The following code configures vLLM to use speculative decoding with a draft model, speculating 5 tokens at a time.

.. code-block:: python

from vllm import LLM, SamplingParams

prompts = [
Expand Down Expand Up @@ -45,6 +46,7 @@ The following code configures vLLM to use speculative decoding where proposals a
matching n-grams in the prompt. For more information read `this thread. <https://x.com/joao_gante/status/1747322413006643259>`_

.. code-block:: python

from vllm import LLM, SamplingParams

prompts = [
Expand Down