File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 30
30
# yapf conflicts with isort for this block
31
31
# yapf: disable
32
32
from vllm .transformers_utils .configs import (ChatGLMConfig , DeepseekVLV2Config ,
33
- KimiVLConfig , MedusaConfig ,
34
33
EAGLEConfig , JAISConfig ,
34
+ KimiVLConfig , MedusaConfig ,
35
35
MLPSpeculatorConfig ,
36
36
Nemotron_Nano_VL_Config ,
37
37
NemotronConfig , OvisConfig ,
@@ -924,9 +924,9 @@ def get_hf_file_bytes(file_name: str,
924
924
model : Union [str , Path ],
925
925
revision : Optional [str ] = 'main' ) -> Optional [bytes ]:
926
926
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
+
930
930
if file_path is None :
931
931
try :
932
932
hf_hub_file = hf_hub_download (model ,
@@ -936,12 +936,12 @@ def get_hf_file_bytes(file_name: str,
936
936
file_path = Path (hf_hub_file )
937
937
except Exception :
938
938
return None
939
-
939
+
940
940
if file_path is not None and file_path .is_file ():
941
941
try :
942
942
with open (file_path , 'rb' ) as file :
943
943
return file .read ()
944
944
except Exception :
945
945
return None
946
-
946
+
947
947
return None
You can’t perform that action at this time.
0 commit comments