Instructions to use zai-org/chatglm3-6b-32k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/chatglm3-6b-32k with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/chatglm3-6b-32k", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
how can i limit the generate length , i haven't see the new max length in chat().
#6
by 520jefferson - opened
i want to know how to control the lenght when i use the model to chat .
I see max_length: int = 8192 in chat() guess that is your new_max_length
In our latest github code, the code is unified into max_new_tokens
ZHANGYUXUAN-zR changed discussion status to closed