Unverified Commit 377e9039 authored by Joao Gante's avatar Joao Gante Committed by GitHub
Browse files

Generate: fix `tokenizer` being popped twice (#31427)

parent 02c525d2
......@@ -1640,8 +1640,6 @@ class GenerationMixin:
else:
synced_gpus = False
tokenizer = kwargs.pop("tokenizer", None)
logits_processor = logits_processor if logits_processor is not None else LogitsProcessorList()
stopping_criteria = stopping_criteria if stopping_criteria is not None else StoppingCriteriaList()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment