"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "624495706c42932ca226419bfe980abdfe644e14"
Commit 5d8be090 authored by Sylvain Gugger's avatar Sylvain Gugger
Browse files

Fix quality

parent f45ac11f
...@@ -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.
......
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