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.

模型推理脚本报错

#29
by Jay0324 - opened

企业微信截图_ac735786-1d41-4ea8-b3a3-5a8c7e08369f.png

最后一步 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

Sign up or log in to comment