FunASR
FunASR copied to clipboard
/examples/industrial_data_pretraining/paraformer/finetune.sh运行报错
Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)
🐛 Bug
-
RuntimeError: PytorchStreamReader failed locating file data/2: file not found -
detail
checkpoint = torch.load(ckpt, map_location="cpu")
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 789, in load
checkpoint = torch.load(ckpt, map_location="cpu")
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 789, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 1131, in _load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 1131, in _load
result = unpickler.load()
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 1101, in persistent_load
result = unpickler.load()
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 1101, in persistent_load
load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location))
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 1079, in load_tensor
load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location))
File "/home/anaconda3/envs/py310/lib/python3.10/site-packages/torch/serialization.py", line 1079, in load_tensor
storage = zip_file.get_storage_from_record(name, numel, torch.UntypedStorage).storage().untyped()
RuntimeErrorstorage = zip_file.get_storage_from_record(name, numel, torch.UntypedStorage).storage().untyped():
PytorchStreamReader failed locating file data/2: file not found
RuntimeError: PytorchStreamReader failed locating file data/2: file not found
Environment
- OS : centos7
- FunASR: master code
- ModelScope: 1.18.0
- PyTorch Version: 1.13
- How you installed funasr: pip
- GPU (e.g., V100M32)
- CUDA/cuDNN version: 11.6
- python version: 3.10
model已经添加unused_parameters: true配置
Are the problems solved? I had the same problem
还没解决,可能是环境版本、代码版本、模型版本三方不匹配。还在试
git lfs install
git clone model-xxx