Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscilloscope98 committed Nov 14, 2024
1 parent a75dfb2 commit 7d9fecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/llm/src/ipex_llm/transformers/speculative.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,12 @@ def _prepare_generate_args_4_45(self, inputs, generation_config, streamer=None,
)

# 9. prepare logits processors and stopping criteria
prefix_allowed_tokens_fn = kwargs.pop("prefix_allowed_tokens_fn", None)
prepared_logits_processor = self._get_logits_processor(
generation_config=generation_config,
input_ids_seq_length=input_ids_length,
encoder_input_ids=inputs_tensor,
prefix_allowed_tokens_fn=None,
prefix_allowed_tokens_fn=prefix_allowed_tokens_fn,
logits_processor=logits_processor,
device=inputs_tensor.device,
model_kwargs=model_kwargs,
Expand Down

0 comments on commit 7d9fecb

Please sign in to comment.