Skip to content

Commit

Permalink
fix: propagate cache dir to find adapter (#3174)
Browse files Browse the repository at this point in the history
Co-authored-by: Laura Lehoczki <lauralehoczki11@users.noreply.github.com>
  • Loading branch information
lauralehoczki11 and lauralehoczki11 authored Jan 17, 2025
1 parent 2bb7679 commit b2a5061
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentence_transformers/models/Transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def _load_config(
if (
find_adapter_config_file(
model_name_or_path,
cache_dir=cache_dir,
token=config_args.get("token"),
revision=config_args.get("revision"),
local_files_only=config_args.get("local_files_only", False),
Expand Down

0 comments on commit b2a5061

Please sign in to comment.