Open kabuwaniu opened 9 months ago
我运行代码时出现“cannot import name ‘narrow_tensor_by_index’ from ‘torch.distributed._shard._utils’”报错,请问是什么原因呢
No response
运行web_demo.py出现的问题
- OS: Ubuntu 20.04 - Python:3.10 - Transformers:4.27 - PyTorch:2.1.2 - CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : true
Is there an existing issue for this?
Current Behavior
我运行代码时出现“cannot import name ‘narrow_tensor_by_index’ from ‘torch.distributed._shard._utils’”报错,请问是什么原因呢
Expected Behavior
No response
Steps To Reproduce
运行web_demo.py出现的问题
Environment
Anything else?
No response