Skip to content

Commit 7ad8c6e

Browse files
committed
switch force_download to True by default
1 parent 669f732 commit 7ad8c6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

model2vec/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def from_pretrained(
156156
subfolder: str | None = None,
157157
quantize_to: str | DType | None = None,
158158
dimensionality: int | None = None,
159-
force_download: bool = False,
159+
force_download: bool = True,
160160
) -> StaticModel:
161161
"""
162162
Load a StaticModel from a local path or huggingface hub path.
@@ -209,7 +209,7 @@ def from_sentence_transformers(
209209
normalize: bool | None = None,
210210
quantize_to: str | DType | None = None,
211211
dimensionality: int | None = None,
212-
force_download: bool = False,
212+
force_download: bool = True,
213213
) -> StaticModel:
214214
"""
215215
Load a StaticModel trained with sentence transformers from a local path or huggingface hub path.

0 commit comments

Comments
 (0)