Instructions to use RoleModel/glm-4v-flash-reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RoleModel/glm-4v-flash-reasoning with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("RoleModel/glm-4v-flash-reasoning", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use RoleModel/glm-4v-flash-reasoning with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RoleModel/glm-4v-flash-reasoning to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RoleModel/glm-4v-flash-reasoning to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RoleModel/glm-4v-flash-reasoning to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="RoleModel/glm-4v-flash-reasoning", max_seq_length=2048, )
| { | |
| "additional_special_tokens": [ | |
| "<|endoftext|>", | |
| "[MASK]", | |
| "[gMASK]", | |
| "[sMASK]", | |
| "<sop>", | |
| "<eop>", | |
| "<|system|>", | |
| "<|user|>", | |
| "<|assistant|>", | |
| "<|observation|>", | |
| "<|begin_of_image|>", | |
| "<|end_of_image|>", | |
| "<|begin_of_video|>", | |
| "<|end_of_video|>", | |
| "<|begin_of_audio|>", | |
| "<|end_of_audio|>", | |
| "<|image|>", | |
| "<|video|>", | |
| "<|begin_of_transcription|>", | |
| "<|end_of_transcription|>", | |
| "<|code_prefix|>", | |
| "<|code_middle|>", | |
| "<|code_suffix|>", | |
| "/nothink" | |
| ], | |
| "backend": "tokenizers", | |
| "bos_token": null, | |
| "clean_up_tokenization_spaces": false, | |
| "do_lower_case": false, | |
| "eos_token": "<|endoftext|>", | |
| "extra_special_tokens": [ | |
| "<|endoftext|>", | |
| "[MASK]", | |
| "[gMASK]", | |
| "[sMASK]", | |
| "<sop>", | |
| "<eop>", | |
| "<|system|>", | |
| "<|user|>", | |
| "<|assistant|>", | |
| "<|observation|>", | |
| "<|begin_of_image|>", | |
| "<|end_of_image|>", | |
| "<|begin_of_video|>", | |
| "<|end_of_video|>", | |
| "<|begin_of_audio|>", | |
| "<|end_of_audio|>", | |
| "<|image|>", | |
| "<|video|>", | |
| "<|begin_of_transcription|>", | |
| "<|end_of_transcription|>", | |
| "<|code_prefix|>", | |
| "<|code_middle|>", | |
| "<|code_suffix|>", | |
| "/nothink" | |
| ], | |
| "is_local": false, | |
| "model_max_length": 131072, | |
| "model_specific_special_tokens": {}, | |
| "pad_token": "[MASK]", | |
| "padding_side": "right", | |
| "processor_class": "Glm46VProcessor", | |
| "remove_space": false, | |
| "tokenizer_class": "TokenizersBackend", | |
| "unk_token": null | |
| } | |