Hi @lewtun , I follow it and the Tracebask is:
Traceback (most recent call last):
File "/switch/test_load.py", line 3, in <module>
state_dict = torch.load(path, map_location='cpu')
File "/opt/conda/lib/python3.9/site-packages/torch/serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "/opt/conda/lib/python3.9/site-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/opt/conda/lib/python3.9/site-packages/torch/serialization.py", line 211, in __init__
super(_open_file, self).__init__(open(name, mode))
ValueError: invalid buffering size
So how to solve it?
Thanks.