Skip to content

Commit 28bd0ad

Browse files
authored
Pass the revision to SentenceTransformer models (#2105)
feat: pass revision to SentenceTransformers
1 parent bd08f12 commit 28bd0ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

optimum/exporters/tasks.py

+1
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,7 @@ def get_model_from_task(
21282128
device=device,
21292129
cache_folder=cache_folder,
21302130
token=token,
2131+
revision=revision,
21312132
trust_remote_code=trust_remote_code,
21322133
)
21332134
else:

0 commit comments

Comments
 (0)