File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1241,4 +1241,4 @@ yarl==1.17.1
1241
1241
zipp==3.23.0
1242
1242
# via importlib-metadata
1243
1243
zstandard==0.23.0
1244
- # via lm-eval
1244
+ # via lm-eval
Original file line number Diff line number Diff line change 37
37
RWConfig , SpeculatorsConfig ,
38
38
Step3TextConfig , Step3VLConfig ,
39
39
UltravoxConfig )
40
-
41
40
# yapf: enable
42
41
from vllm .transformers_utils .configs .mistral import adapt_config_dict
43
42
from vllm .transformers_utils .utils import check_gguf_file
@@ -929,9 +928,9 @@ def get_hf_file_bytes(file_name: str,
929
928
model : Union [str , Path ],
930
929
revision : Optional [str ] = 'main' ) -> Optional [bytes ]:
931
930
file_path = try_get_local_file (model = model ,
932
- file_name = file_name ,
933
- revision = revision )
934
-
931
+ file_name = file_name ,
932
+ revision = revision )
933
+
935
934
if file_path is None :
936
935
try :
937
936
hf_hub_file = hf_hub_download (model ,
@@ -941,12 +940,12 @@ def get_hf_file_bytes(file_name: str,
941
940
file_path = Path (hf_hub_file )
942
941
except Exception :
943
942
return None
944
-
943
+
945
944
if file_path is not None and file_path .is_file ():
946
945
try :
947
946
with open (file_path , 'rb' ) as file :
948
947
return file .read ()
949
948
except Exception :
950
949
return None
951
-
950
+
952
951
return None
You can’t perform that action at this time.
0 commit comments