Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "C:\Users\Anston Sorensen\.env\Scripts\python.exe" "C:\Users\Anston Sorensen\PycharmProjects\pythonProject\main.py"
- Traceback (most recent call last):
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\transformers\modeling_utils.py", line 442, in load_state_dict
- return torch.load(checkpoint_file, map_location="cpu")
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\torch\serialization.py", line 809, in load
- return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\torch\serialization.py", line 1172, in _load
- result = unpickler.load()
- ^^^^^^^^^^^^^^^^
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\torch\serialization.py", line 1142, in persistent_load
- typed_storage = load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location))
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\torch\serialization.py", line 1112, in load_tensor
- storage = zip_file.get_storage_from_record(name, numel, torch.UntypedStorage)._typed_storage()._untyped_storage
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 268435456 bytes.
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\transformers\modeling_utils.py", line 446, in load_state_dict
- if f.read(7) == "version":
- ^^^^^^^^^
- File "C:\Users\Anston Sorensen\AppData\Local\Programs\Python\Python311\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 0x81 in position 1577: character maps to <undefined>
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:\Users\Anston Sorensen\PycharmProjects\pythonProject\main.py", line 121, in <module>
- save_gpt()
- File "C:\Users\Anston Sorensen\PycharmProjects\pythonProject\main.py", line 66, in save_gpt
- pt_model = GPTJForQuestionAnswering.from_pretrained('EleutherAI/gpt-j-6b')
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\transformers\modeling_utils.py", line 2560, in from_pretrained
- state_dict = load_state_dict(resolved_archive_file)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "C:\Users\Anston Sorensen\.env\Lib\site-packages\transformers\modeling_utils.py", line 458, in load_state_dict
- raise OSError(
- OSError: Unable to load weights from pytorch checkpoint file for 'C:\Users\Anston Sorensen/.cache\huggingface\hub\models--EleutherAI--gpt-j-6b\snapshots\f98c709453c9402b1309b032f40df1c10ad481a2\pytorch_model.bin' at 'C:\Users\Anston Sorensen/.cache\huggingface\hub\models--EleutherAI--gpt-j-6b\snapshots\f98c709453c9402b1309b032f40df1c10ad481a2\pytorch_model.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement