FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

/examples/industrial_data_pretraining/paraformer/finetune.sh运行报错

Open wuyuzhe opened this issue 1 year ago • 4 comments

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

wuyuzhe avatar Sep 13 '24 06:09 wuyuzhe

model已经添加unused_parameters: true配置

wuyuzhe avatar Sep 13 '24 06:09 wuyuzhe

Are the problems solved? I had the same problem

wanganddi0918 avatar Sep 14 '24 01:09 wanganddi0918

还没解决,可能是环境版本、代码版本、模型版本三方不匹配。还在试

wuyuzhe avatar Sep 14 '24 01:09 wuyuzhe

git lfs install
git clone model-xxx

LauraGPT avatar Sep 14 '24 02:09 LauraGPT