Merge pull request #1378 from listeng/add-missing-param

add missing trust_remote_code[=true] when loading "openbmb/MiniCPM-Reranker-Light"
This commit is contained in:
Jianlyu Chen 2025-04-10 16:29:09 +08:00 committed by GitHub
commit aa0dceee74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,7 @@ class BaseReranker(AbsReranker):
)
self.tokenizer = AutoTokenizer.from_pretrained(
model_name_or_path,
trust_remote_code=trust_remote_code,
cache_dir=cache_dir
)
self.model = AutoModelForSequenceClassification.from_pretrained(