"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "2803e78bd0ad3c321bb7c044694d6d27b19ed713"
Commit 2d8ec5a6 authored by LysandreJik's avatar LysandreJik
Browse files

Changed warning to be more explicit

Co-authored by: julien_c <chaumond@gmail.com>
parent 75635072
......@@ -691,7 +691,7 @@ class PreTrainedTokenizer(object):
return self.add_special_tokens_sentences_pair(first_sentence_tokens, second_sentence_tokens, output_mask)
else:
if output_mask:
logger.warning("Can't output mask if no special tokens are involved. Please call the method with add_special_tokens set to True.")
logger.warning("Can't output mask if you're not joining two sequences.")
return first_sentence_tokens, second_sentence_tokens
def add_special_tokens_single_sentence(self, token_ids):
......
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