Traceback (most recent call last):
File "/ChatGLM-6B/ptuning/main.py", line 392, in
main()
File ""/ChatGLM-6B/ptuning/main.py", line 120, in main
model.transformer.prefix_encoder.float()
File "/root/anaconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1614, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ChatGLMModel' object has no attribute 'prefix_encoder'
sh train.sh过程中
Environment
- OS: linux
- Python: python3.9.13
- Transformers: 4.27.1
- PyTorch: 2.0.0
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :