alpaca-lora
alpaca-lora copied to clipboard
countered crash while fine-tuning
Traceback (most recent call last): File "C:\Users\hazin\anaconda3\envs\finetune\lib\site-packages\transformers\modeling_utils.py", line 442, in load_state_dict return torch.load(checkpoint_file, map_location="cpu") File "C:\Users\hazin\anaconda3\envs\finetune\lib\site-packages\torch\serialization.py", line 797, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "C:\Users\hazin\anaconda3\envs\finetune\lib\site-packages\torch\serialization.py", line 283, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hazin\anaconda3\envs\finetune\lib\site-packages\transformers\modeling_utils.py", line 446, in load_state_dict
if f.read(7) == "version":
File "C:\Users\hazin\anaconda3\envs\finetune\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1427: character maps to
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\hazin\Desktop\Projects\AI-lab\try_1\alpaca-lora\finetune.py", line 276, in
This error message suggests that there was a problem with loading the weights from a PyTorch checkpoint file for a model called LlamaForCausalLM. The error occurred while trying to read a zip archive that contains the weights, and there was an issue with finding the central directory. Additionally, there was a UnicodeDecodeError caused by a character encoding issue.
It is possible that the checkpoint file is corrupt or inaccessible.
i meet the same problem,did you fix it?