DLite Draft Model
This repository contains the DLite draft model for speculative decoding, as described in the paper DLite: History-free Speculative Decoding for Agentic AI.
DLite is a history-free speculative decoding framework that reuses contextual hidden states from the target model to generate draft tokens without maintaining a historical draft KV cache. It is designed for agentic AI workloads with long, evolving contexts.
For usage, refer to the GitHub repository. Example:
from dlite import DLiteEngine
engine = DLiteEngine.from_pretrained(
target_model="/path/to/Qwen3-8B",
draft_model="/path/to/dlite-student",
attention_backend="auto", # auto, eager, sdpa, flash_attention_2
)
result = engine.generate("Explain speculative decoding in one paragraph.")
print(result.text)
print(result.stats)
The draft checkpoint uses DLiteDraftModel and is compatible with the Transformers library via trust_remote_code=True. Please see the GitHub repository for detailed instructions.