Instructions to use zai-org/glm-4v-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zai-org/glm-4v-9b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/glm-4v-9b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Cannot load model with transformers ==5.3.0
#46
by xinhe - opened
Hi, do we have the plan to support transformers >= 5.0? I met below errors when loading this model with transformers==5.3.0
- AttributeError: 'ChatGLMConfig' object has no attribute 'max_length'. Did you mean: 'seq_length' (could be fixed by changing the name in modeling, then I got the second error.)
- AttributeError: 'ChatGLMForConditionalGeneration' object has no attribute 'all_tied_weights_keys'