Skip to content

Commit 4fcfdde

Browse files
committed
[Bugfix] Fix Dense module loading for sentence-transformers embedding models v12
Signed-off-by: FFFfff1FFFfff <[email protected]>
1 parent 5c5c051 commit 4fcfdde

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vllm/transformers_utils/config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
# yapf conflicts with isort for this block
3131
# yapf: disable
3232
from vllm.transformers_utils.configs import (ChatGLMConfig, DeepseekVLV2Config,
33-
KimiVLConfig, MedusaConfig,
3433
EAGLEConfig, JAISConfig,
34+
KimiVLConfig, MedusaConfig,
3535
MLPSpeculatorConfig,
3636
Nemotron_Nano_VL_Config,
3737
NemotronConfig, OvisConfig,
@@ -924,9 +924,9 @@ def get_hf_file_bytes(file_name: str,
924924
model: Union[str, Path],
925925
revision: Optional[str] = 'main') -> Optional[bytes]:
926926
file_path = try_get_local_file(model=model,
927-
file_name=file_name,
928-
revision=revision)
929-
927+
file_name=file_name,
928+
revision=revision)
929+
930930
if file_path is None:
931931
try:
932932
hf_hub_file = hf_hub_download(model,
@@ -936,12 +936,12 @@ def get_hf_file_bytes(file_name: str,
936936
file_path = Path(hf_hub_file)
937937
except Exception:
938938
return None
939-
939+
940940
if file_path is not None and file_path.is_file():
941941
try:
942942
with open(file_path, 'rb') as file:
943943
return file.read()
944944
except Exception:
945945
return None
946-
946+
947947
return None

0 commit comments

Comments
 (0)