Skip to content

Commit 6e53620

Browse files
committed
Update rejection_sampler.py
Signed-off-by: Aoxuan Chen <[email protected]>
1 parent db7fbe6 commit 6e53620

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm_ascend/sample/rejection_sampler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ def rejection_sample(
147147
assert bonus_token_ids.is_contiguous()
148148
assert target_probs.shape == (num_tokens, vocab_size)
149149

150-
#Switch of Block Verify: when MTP>=2, using block verify for rejection sampler.
151-
using_block_verify = max_spec_len >= 2
150+
#Switch of Block Verify: when MTP>=3, using block verify for rejection sampler.
151+
using_block_verify = max_spec_len >= 3
152152

153153
# Create output buffer.
154154
output_token_ids = torch.empty(

0 commit comments

Comments
 (0)