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
8 changes: 3 additions & 5 deletions vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2360,12 +2360,10 @@ def num_lookahead_slots(self) -> int:
return self.num_speculative_tokens

def __repr__(self) -> str:
if self.prompt_lookup_max is not None and self.prompt_lookup_max > 0:
draft_model = "ngram"
else:
draft_model = self.draft_model_config.model
method = self.method
model = None if method == "ngram" else self.draft_model_config.model
num_spec_tokens = self.num_speculative_tokens
return f"SpeculativeConfig({draft_model=}, {num_spec_tokens=})"
return f"SpeculativeConfig({method=}, {model=}, {num_spec_tokens=})"


@dataclass
Expand Down