[Misc] set single whitespace between log sentences (#13771)

Signed-off-by: cjackal <44624812+cjackal@users.noreply.github.com>
This commit is contained in:
cjackal
2025-02-25 10:26:12 +08:00
committed by GitHub
parent 7196a3b1db
commit 51010a1807
36 changed files with 54 additions and 54 deletions
+4 -4
View File
@@ -90,8 +90,8 @@ class GritLMPooler(nn.Module):
# Return no instruction in case of missing BOS token.
if prompt_token_ids[0] != self.token_ids["<s>"]:
logger.warning("BOS token not found in prompt,"
"thus using empty string for instruction."
logger.warning("BOS token not found in prompt, "
"thus using empty string for instruction. "
"GritLM requires BOS token in prompt.")
return instruction_len
@@ -111,8 +111,8 @@ class GritLMPooler(nn.Module):
if found_embed_pattern_idx != -1:
instruction_len = found_embed_pattern_idx + len(embed_pattern_ids)
else:
logger.warning("Query instruction not found in prompt,"
"thus using BOS token as instruction instead."
logger.warning("Query instruction not found in prompt, "
"thus using BOS token as instruction instead. "
"GritLM requires query instruction in prompt.")
instruction_len = 1