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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("zai-org/glm-4v-9b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from zai-org/glm-4v-9b: direct link, hf CLI and curl.
- Browser
- Download file 205 Bytes
-
https://huggingface.co/zai-org/glm-4v-9b/resolve/7031540112623e8cd7e17b6bb1c5fe881c24b356/generation_config.json
- Command line
-
hf download hf://zai-org/glm-4v-9b@7031540112623e8cd7e17b6bb1c5fe881c24b356/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/zai-org/glm-4v-9b/resolve/7031540112623e8cd7e17b6bb1c5fe881c24b356/generation_config.json
205 Bytes
| { | |
| "eos_token_id": [ | |
| 151329, | |
| 151336, | |
| 151338 | |
| ], | |
| "pad_token_id": 151329, | |
| "do_sample": true, | |
| "temperature": 0.8, | |
| "max_length": 8192, | |
| "top_p": 0.8, | |
| "transformers_version": "4.42.4" | |
| } |