Instructions to use zai-org/chatglm2-6b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm2-6b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm2-6b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
about underscore character
#57
by captainst - opened
I found that the model has some problem when outputing the underscore.
For example, a_b_c_d will be output as a\b\_c\_d, and sometimes, it gets truncated and prints only the first underscore, like a\.
Is there a reason for this?
One possible reason is that in the markdown text '_' Is a special character, which is usually escaped by using the Escape character backslash '\' , that is, if you want to express '_ 'You need to use '\_'.