Skip to main content
In this example, we will use the summarization speculation preset to generate a summary of the input text.
1

Create a new project

2

Install dependencies

3

Paste into main.py

4

Run the snippet

You will notice that the model’s run count is lower than the actual number of generated tokens due to speculative decoding, which significantly improves generation speed.