mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
Fix seq2seq.
This commit is contained in:
parent
0452d590d0
commit
a5600c23af
@ -641,7 +641,7 @@ class Seq2SeqLM(Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Speculation is not active for seq2seq
|
# Speculation is not active for seq2seq
|
||||||
accepted_ids = torch.ones_like(batch.input_ids)
|
accepted_ids = torch.ones_like(batch.decoder_input_ids)
|
||||||
batch_top_token_ids, batch_top_token_logprobs = batch_top_tokens(
|
batch_top_token_ids, batch_top_token_logprobs = batch_top_tokens(
|
||||||
batch.top_n_tokens,
|
batch.top_n_tokens,
|
||||||
batch.top_n_tokens_tensor,
|
batch.top_n_tokens_tensor,
|
||||||
|
Loading…
Reference in New Issue
Block a user