Skip to content

Commit 65cd70d

Browse files
authored
Update flag_reranker.py
can load local layerwise-reranker
1 parent c665f97 commit 65cd70d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

FlagEmbedding/flag_reranker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def __init__(
408408
self.model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
409409
cache_dir=cache_dir,
410410
trust_remote_code=True,
411+
local_files_only=True,
411412
torch_dtype=torch.bfloat16 if use_bf16 else torch.float32)
412413

413414
self.model_name_or_path = model_name_or_path

0 commit comments

Comments
 (0)