THUDM / ChatGLM-6B

ChatGLM-6B: An Open Bilingual Dialogue Language Model | 开源双语对话语言模型
Apache License 2.0
40.47k stars 5.19k forks source link

[BUG/Help] <title> #1439

Open kabuwaniu opened 9 months ago

kabuwaniu commented 9 months ago

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

- 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

Anything else?

No response