[Model] rename use_pad_token to use_sep_token (#31784)

Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io>
This commit is contained in:
wang.yuqi
2026-01-06 14:16:04 +00:00
committed by GitHub
parent 0202971a48
commit 96860af655
5 changed files with 33 additions and 25 deletions
+3 -3
View File
@@ -382,9 +382,9 @@ class SequenceClassificationConfig(VerifyAndUpdateConfig):
else:
text_config.num_labels = len(tokens)
# `llm as reranker` defaults to not using pad_token
use_pad_token = getattr(text_config, "use_pad_token", False)
text_config.use_pad_token = use_pad_token
# `llm as reranker` defaults to not using separating token.
use_sep_token = getattr(text_config, "use_sep_token", False)
text_config.use_sep_token = use_sep_token
def load_weights_using_from_2_way_softmax(