Error reported when deploying Chatglm2:
ImportError: cannot import name 'GenerationConfig' from 'transformers.generation.utils'
The reason for the error is that the local transformers version is low.
Just upgrade the transformers version to 4.27.1+
pip install transformers==4.27.1