mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 01:05:01 +08:00
Don't try to load training_args.bin (#373)
This commit is contained in:
parent
ddfdf470ae
commit
75beba29b5
@ -39,7 +39,10 @@ def hf_model_weights_iterator(
|
|||||||
else:
|
else:
|
||||||
hf_folder = model_name_or_path
|
hf_folder = model_name_or_path
|
||||||
|
|
||||||
hf_bin_files = glob.glob(os.path.join(hf_folder, "*.bin"))
|
hf_bin_files = [
|
||||||
|
x for x in glob.glob(os.path.join(hf_folder, "*.bin"))
|
||||||
|
if not x.endswith("training_args.bin")
|
||||||
|
]
|
||||||
|
|
||||||
if use_np_cache:
|
if use_np_cache:
|
||||||
# Convert the model weights from torch tensors to numpy arrays for
|
# Convert the model weights from torch tensors to numpy arrays for
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user