Run this model with HF Jobs
Run zai-org/glm-4v-9b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/zai-org/glm-4v-9b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/zai-org/glm-4v-9b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Created a ComfyUI node for local prompt enhancing and inferencing based on your cloud solution
Hi, great work all you fantastic devs at THUDM.
I got inspired by your prompt enhancer in your space and found an cloud solution in convert_demo.py.
Therefore I build a custom prompt enhancer node which is using local instances of current GLM-4 model of choise.
Since glm-4v-9b is a vision model, I added the possibility combine image and text to be enhanced.
Also added node for inference with custom system prompts.
Beyond that I added the option to unload model for those with limited VRAM.
Feel free to test it and let me know if I can improve it.
Link to repo: Nojahhh/ComfyUI_GLM4_Wrapper