ChatGLM-6B icon indicating copy to clipboard operation
ChatGLM-6B copied to clipboard

'BertModel' object has no attribute 'transformer'

Open Louis24 opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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

Louis24 avatar Nov 27 '23 10:11 Louis24