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
GLM-4V-9B 3rd party sft support
#30
by tastelikefeet - opened
Doc
https://github.com/modelscope/swift/blob/main/docs/source_en/Multi-Modal/glm4v-best-practice.md
install
pip install git+https://github.com/modelscope/swift.git
run
CUDA_VISIBLE_DEVICES=0 swift sft
--model_type glm4v-9b-chat
--dataset okvqa