Unsupported operand 118
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/workspace/chatglm/Alpaca-CoT-main/uniform_finetune.py", line 568, in
train(args)
File "/srv/workspace/chatglm/Alpaca-CoT-main/uniform_finetune.py", line 304, in train
data, model, tokenizer = get_data_model(args)
File "/srv/workspace/chatglm/Alpaca-CoT-main/uniform_finetune.py", line 172, in get_data_model
model = model_class.model.from_pretrained(args.model_name_or_path, trust_remote_code=True, local_files_only=True, device_map=device_map, quantization_config=quantization_config)
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 365, in from_pretrained
return model_class.from_pretrained(
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 270, in _wrapper
return func(*args, **kwargs)
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4483, in from_pretrained
model, missing_keys, unexpected_keys, mismatched_keys, offload_index, error_msgs = cls._load_pretrained_model(
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4808, in _load_pretrained_model
_error_msgs, disk_offload_index = load_shard_file(args)
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 726, in load_shard_file
state_dict = load_state_dict(
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 447, in load_state_dict
raise OSError(
OSError: You seem to have cloned a repository without having git-lfs installed. Please install git-lfs and run git lfs install followed by git lfs pull in the folder you cloned.
Unsupported operand 118
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/workspace/chatglm/Alpaca-CoT-main/uniform_finetune.py", line 568, in
train(args)
File "/srv/workspace/chatglm/Alpaca-CoT-main/uniform_finetune.py", line 304, in train
data, model, tokenizer = get_data_model(args)
File "/srv/workspace/chatglm/Alpaca-CoT-main/uniform_finetune.py", line 172, in get_data_model
model = model_class.model.from_pretrained(args.model_name_or_path, trust_remote_code=True, local_files_only=True, device_map=device_map, quantization_config=quantization_config)
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 365, in from_pretrained
return model_class.from_pretrained(
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 270, in _wrapper
return func(*args, **kwargs)
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4483, in from_pretrained
model, missing_keys, unexpected_keys, mismatched_keys, offload_index, error_msgs = cls._load_pretrained_model(
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4808, in _load_pretrained_model
_error_msgs, disk_offload_index = load_shard_file(args)
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 726, in load_shard_file
state_dict = load_state_dict(
File "/home/chatglm/.local/lib/python3.10/site-packages/transformers/modeling_utils.py", line 447, in load_state_dict
raise OSError(
OSError: You seem to have cloned a repository without having git-lfs installed. Please install git-lfs and run
git lfs installfollowed bygit lfs pullin the folder you cloned.