Skip to content

Commit

Permalink
Pass the revision to SentenceTransformer models (#2105)
Browse files Browse the repository at this point in the history
feat: pass revision to SentenceTransformers
  • Loading branch information
bndos authored Nov 28, 2024
1 parent bd08f12 commit 28bd0ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions optimum/exporters/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2128,6 +2128,7 @@ def get_model_from_task(
device=device,
cache_folder=cache_folder,
token=token,
revision=revision,
trust_remote_code=trust_remote_code,
)
else:
Expand Down

0 comments on commit 28bd0ad

Please sign in to comment.