Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
5d8be090
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "624495706c42932ca226419bfe980abdfe644e14"
Commit
5d8be090
authored
Feb 15, 2022
by
Sylvain Gugger
Browse files
Fix quality
parent
f45ac11f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/generation_logits_process.py
src/transformers/generation_logits_process.py
+1
-1
No files found.
src/transformers/generation_logits_process.py
View file @
5d8be090
...
@@ -381,7 +381,7 @@ class NoBadWordsLogitsProcessor(LogitsProcessor):
...
@@ -381,7 +381,7 @@ class NoBadWordsLogitsProcessor(LogitsProcessor):
Args:
Args:
bad_words_ids (`List[List[int]]`):
bad_words_ids (`List[List[int]]`):
List of list of token ids that are not allowed to be generated. In order to get the token ids of the words
List of list of token ids that are not allowed to be generated. In order to get the token ids of the words
that should not appear in the generated text, use `tokenizer(bad_words, add_prefix_space=True,
that should not appear in the generated text, use `tokenizer(bad_words, add_prefix_space=True,
add_special_tokens=False).input_ids`.
add_special_tokens=False).input_ids`.
eos_token_id (`int`):
eos_token_id (`int`):
The id of the *end-of-sequence* token.
The id of the *end-of-sequence* token.
...
...
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