Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] model loading - no more unnecessary file downloads #2345

Merged
merged 9 commits into from
Dec 12, 2023
Prev Previous commit
Merge branch 'master' into feat/efficient_loading
  • Loading branch information
tomaarsen committed Dec 12, 2023
commit 255e828d18f39224983be88a3695e06f822c081e
6 changes: 1 addition & 5 deletions sentence_transformers/SentenceTransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
import stat
from collections import OrderedDict
import warnings
from typing import List, Dict, Tuple, Iterable, Type, Union, Callable, Optional
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal
from typing import List, Dict, Tuple, Iterable, Type, Union, Callable, Optional, Literal
import numpy as np
from numpy import ndarray
import transformers
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.