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
5 changes: 5 additions & 0 deletions tensorrt_llm/_torch/auto_deploy/shim/ad_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ def __init__(
else:
self.max_total_draft_tokens = 0

# ADEngine skips PyTorchModelEngine.__init__, so set the spec-decode
# flags that shared PyExecutor code expects on a ModelEngine.
self.is_spec_decode = self.spec_config is not None
self.enable_spec_decode = self.is_spec_decode

# For compatibility with PyTorchModelEngine utilities
self.batch_size = cache_seq_interface.info.max_batch_size

Expand Down
Loading