Run this model with HF Jobs

Run zai-org/glm-4-9b-chat 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-4-9b-chat. 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-4-9b-chat 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.

openai_api_server.py可以多卡启动吗

#91
by RoboTerh - opened

直接使用python openai_api_server.py运行示例程序启动API服务,占用的是单卡显存,在调用langgraph图的时候会显出显存不足的报错
查看了API服务启动的代码,其中存在下图设置显卡数量的标识

image.png
将其设置为2,重新启动API服务,在两张显卡上均占用了相同显存,之后调用langgraph图是仍会出现显存不足的报错,且只使用了单卡的显存
有什么更好的解决方案使得在单张显存不充裕的情况下使用吗,谢谢

Z.ai org

你这个多张显卡是多少呢,如果你显存不够,建议用transformers的底座启动,能让没张卡平均负载在到13G左右,但是调用token多了以后kvcache仍然很占用显存。

For those asking about API access — I've been using Crazyrouter as a unified gateway. One API key, OpenAI SDK compatible. Works well for testing different models without managing multiple accounts.

Sign up or log in to comment