We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c665f97 commit 65cd70dCopy full SHA for 65cd70d
1 file changed
FlagEmbedding/flag_reranker.py
@@ -408,6 +408,7 @@ def __init__(
408
self.model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
409
cache_dir=cache_dir,
410
trust_remote_code=True,
411
+ local_files_only=True,
412
torch_dtype=torch.bfloat16 if use_bf16 else torch.float32)
413
414
self.model_name_or_path = model_name_or_path
0 commit comments