Skip to content

Commit

Permalink
mypy yapf
Browse files Browse the repository at this point in the history
  • Loading branch information
wooyeonlee0 committed Jul 19, 2024
1 parent fa1f463 commit 2861e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vllm/spec_decode/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SpeculativeProposals:
proposal_lens: torch.Tensor

# A flag to mark that there's no available proposals
no_proposals: bool
no_proposals: bool = False

def __repr__(self):
return (f"SpeculativeProposals("
Expand Down
3 changes: 1 addition & 2 deletions vllm/spec_decode/top1_proposer.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ def get_spec_proposals(
proposal_token_ids=proposal_tokens,
proposal_probs=proposal_probs,
proposal_lens=proposal_lens,
no_proposals=maybe_sampler_output is None
)
no_proposals=maybe_sampler_output is None)

return proposals

Expand Down

0 comments on commit 2861e99

Please sign in to comment.