THUDM / ChatGLM-6B

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

'BertModel' object has no attribute 'transformer' #1427

Open Louis24 opened 7 months ago

Louis24 commented 7 months ago

Is there an existing issue for this?

Current Behavior

raise AttributeError("'{}' object has no attribute '{}'".format(

AttributeError: 'BertModel' object has no attribute 'transformer'

Expected Behavior

No response

Steps To Reproduce

run api.py

Environment

- OS:win10
- Python:3.9
- Transformers:4.26.1
- PyTorch:1.13
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :

Anything else?

No response