mirror of
https://github.com/FlagOpen/FlagEmbedding.git
synced 2025-06-27 02:39:58 +00:00
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:
commit
aa0dceee74
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user