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
模型推理脚本报错
#29
by Jay0324 - opened
最后一步 outputs = model.generate(**inputs, **gen_kwargs)的时候报错
kv_cache 居然是一个字符串'past_key_values' ,而且device_map的问题也没有解决,还要自己去找各个设备不统一的点。。
按照github的要求装依赖,transformers是4.40
transformers改为4.40 ok了
ZHANGYUXUAN-zR changed discussion status to closed
