Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
377e9039
Unverified
Commit
377e9039
authored
Jun 17, 2024
by
Joao Gante
Committed by
GitHub
Jun 17, 2024
Browse files
Generate: fix `tokenizer` being popped twice (#31427)
parent
02c525d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/transformers/generation/utils.py
src/transformers/generation/utils.py
+0
-2
No files found.
src/transformers/generation/utils.py
View file @
377e9039
...
@@ -1640,8 +1640,6 @@ class GenerationMixin:
...
@@ -1640,8 +1640,6 @@ class GenerationMixin:
else
:
else
:
synced_gpus
=
False
synced_gpus
=
False
tokenizer
=
kwargs
.
pop
(
"tokenizer"
,
None
)
logits_processor
=
logits_processor
if
logits_processor
is
not
None
else
LogitsProcessorList
()
logits_processor
=
logits_processor
if
logits_processor
is
not
None
else
LogitsProcessorList
()
stopping_criteria
=
stopping_criteria
if
stopping_criteria
is
not
None
else
StoppingCriteriaList
()
stopping_criteria
=
stopping_criteria
if
stopping_criteria
is
not
None
else
StoppingCriteriaList
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment