zai-org / glm-4v-9b

huggingface.co
Total runs: 20.5K
24-hour runs: 0
7-day runs: 109
30-day runs: -62.9K
Model's Last Updated: March 03 2025

Introduction of glm-4v-9b

Model Details of glm-4v-9b

GLM-4V-9B

Read this in English

2024/08/12, 本仓库代码已更新并使用 transforemrs>=4.44.0 , 请及时更新依赖。

GLM-4V-9B 是智谱 AI 推出的最新一代预训练模型 GLM-4 系列中的开源多模态版本。 GLM-4V-9B 具备 1120 * 1120 高分辨率下的中英双语多轮对话能力,在中英文综合能力、感知推理、文字识别、图表理解等多方面多模态评测中,GLM-4V-9B 表现出超越 GPT-4-turbo-2024-04-09、Gemini 1.0 Pro、Qwen-VL-Max 和 Claude 3 Opus 的卓越性能。

多模态能力

GLM-4V-9B 是一个多模态语言模型,具备视觉理解能力,其相关经典任务的评测结果如下:

MMBench-EN-Test MMBench-CN-Test SEEDBench_IMG MMStar MMMU MME HallusionBench AI2D OCRBench
英文综合 中文综合 综合能力 综合能力 学科综合 感知推理 幻觉性 图表理解 文字识别
GPT-4o, 20240513 83.4 82.1 77.1 63.9 69.2 2310.3 55 84.6 736
GPT-4v, 20240409 81 80.2 73 56 61.7 2070.2 43.9 78.6 656
GPT-4v, 20231106 77 74.4 72.3 49.7 53.8 1771.5 46.5 75.9 516
InternVL-Chat-V1.5 82.3 80.7 75.2 57.1 46.8 2189.6 47.4 80.6 720
LlaVA-Next-Yi-34B 81.1 79 75.7 51.6 48.8 2050.2 34.8 78.9 574
Step-1V 80.7 79.9 70.3 50 49.9 2206.4 48.4 79.2 625
MiniCPM-Llama3-V2.5 77.6 73.8 72.3 51.8 45.8 2024.6 42.4 78.4 725
Qwen-VL-Max 77.6 75.7 72.7 49.5 52 2281.7 41.2 75.7 684
GeminiProVision 73.6 74.3 70.7 38.6 49 2148.9 45.7 72.9 680
Claude-3V Opus 63.3 59.2 64 45.7 54.9 1586.8 37.8 70.6 694
GLM-4v-9B 81.1 79.4 76.8 58.7 47.2 2163.8 46.6 81.1 786

本仓库是 GLM-4V-9B 的模型仓库,支持 8K 上下文长度。

运行模型

更多推理代码和依赖信息,请访问我们的 github

请严格按照 依赖 安装,否则无法正常运行。

import torch
from PIL import Image
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"

tokenizer = AutoTokenizer.from_pretrained("THUDM/glm-4v-9b", trust_remote_code=True)

query = '描述这张图片'
image = Image.open("your image").convert('RGB')
inputs = tokenizer.apply_chat_template([{"role": "user", "image": image, "content": query}],
                                       add_generation_prompt=True, tokenize=True, return_tensors="pt",
                                       return_dict=True)  # chat mode

inputs = inputs.to(device)
model = AutoModelForCausalLM.from_pretrained(
    "THUDM/glm-4v-9b",
    torch_dtype=torch.bfloat16,
    low_cpu_mem_usage=True,
    trust_remote_code=True
).to(device).eval()

gen_kwargs = {"max_length": 2500, "do_sample": True, "top_k": 1}
with torch.no_grad():
    outputs = model.generate(**inputs, **gen_kwargs)
    outputs = outputs[:, inputs['input_ids'].shape[1]:]
    print(tokenizer.decode(outputs[0]))
协议

GLM-4 模型的权重的使用则需要遵循 LICENSE

引用

如果你觉得我们的工作有帮助的话,请考虑引用下列论文。

@misc{glm2024chatglm,
      title={ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools}, 
      author={Team GLM and Aohan Zeng and Bin Xu and Bowen Wang and Chenhui Zhang and Da Yin and Diego Rojas and Guanyu Feng and Hanlin Zhao and Hanyu Lai and Hao Yu and Hongning Wang and Jiadai Sun and Jiajie Zhang and Jiale Cheng and Jiayi Gui and Jie Tang and Jing Zhang and Juanzi Li and Lei Zhao and Lindong Wu and Lucen Zhong and Mingdao Liu and Minlie Huang and Peng Zhang and Qinkai Zheng and Rui Lu and Shuaiqi Duan and Shudan Zhang and Shulin Cao and Shuxun Yang and Weng Lam Tam and Wenyi Zhao and Xiao Liu and Xiao Xia and Xiaohan Zhang and Xiaotao Gu and Xin Lv and Xinghan Liu and Xinyi Liu and Xinyue Yang and Xixuan Song and Xunkai Zhang and Yifan An and Yifan Xu and Yilin Niu and Yuantao Yang and Yueyan Li and Yushi Bai and Yuxiao Dong and Zehan Qi and Zhaoyu Wang and Zhen Yang and Zhengxiao Du and Zhenyu Hou and Zihan Wang},
      year={2024},
      eprint={2406.12793},
      archivePrefix={arXiv},
      primaryClass={id='cs.CL' full_name='Computation and Language' is_active=True alt_name='cmp-lg' in_archive='cs' is_general=False description='Covers natural language processing. Roughly includes material in ACM Subject Class I.2.7. Note that work on artificial languages (programming languages, logics, formal systems) that does not explicitly address natural-language issues broadly construed (natural-language processing, computational linguistics, speech, text retrieval, etc.) is not appropriate for this area.'}
}
@misc{wang2023cogvlm,
      title={CogVLM: Visual Expert for Pretrained Language Models}, 
      author={Weihan Wang and Qingsong Lv and Wenmeng Yu and Wenyi Hong and Ji Qi and Yan Wang and Junhui Ji and Zhuoyi Yang and Lei Zhao and Xixuan Song and Jiazheng Xu and Bin Xu and Juanzi Li and Yuxiao Dong and Ming Ding and Jie Tang},
      year={2023},
      eprint={2311.03079},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Runs of zai-org glm-4v-9b on huggingface.co

20.5K
Total runs
0
24-hour runs
868
3-day runs
109
7-day runs
-62.9K
30-day runs

More Information About glm-4v-9b huggingface.co Model

More glm-4v-9b license Visit here:

https://choosealicense.com/licenses/glm-4

glm-4v-9b huggingface.co

glm-4v-9b huggingface.co is an AI model on huggingface.co that provides glm-4v-9b's model effect (), which can be used instantly with this zai-org glm-4v-9b model. huggingface.co supports a free trial of the glm-4v-9b model, and also provides paid use of the glm-4v-9b. Support call glm-4v-9b model through api, including Node.js, Python, http.

glm-4v-9b huggingface.co Url

https://huggingface.co/zai-org/glm-4v-9b

zai-org glm-4v-9b online free

glm-4v-9b huggingface.co is an online trial and call api platform, which integrates glm-4v-9b's modeling effects, including api services, and provides a free online trial of glm-4v-9b, you can try glm-4v-9b online for free by clicking the link below.

zai-org glm-4v-9b online free url in huggingface.co:

https://huggingface.co/zai-org/glm-4v-9b

glm-4v-9b install

glm-4v-9b is an open source model from GitHub that offers a free installation service, and any user can find glm-4v-9b on GitHub to install. At the same time, huggingface.co provides the effect of glm-4v-9b install, users can directly use glm-4v-9b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

glm-4v-9b install url in huggingface.co:

https://huggingface.co/zai-org/glm-4v-9b

Url of glm-4v-9b

glm-4v-9b huggingface.co Url

Provider of glm-4v-9b huggingface.co

zai-org
ORGANIZATIONS

Other API from zai-org

huggingface.co

Total runs: 1.9M
Run Growth: -1.4M
Growth Rate: -72.24%
Updated:September 11 2026
huggingface.co

Total runs: 1.9M
Run Growth: -106.5K
Growth Rate: -5.66%
Updated:January 29 2026
huggingface.co

Total runs: 1.6M
Run Growth: 1.3M
Growth Rate: 100.00%
Updated:September 07 2026
huggingface.co

Total runs: 1.3M
Run Growth: -706.1K
Growth Rate: -53.41%
Updated:September 01 2026
huggingface.co

Total runs: 941.9K
Run Growth: -1.8M
Growth Rate: -188.05%
Updated:September 01 2026
huggingface.co

Total runs: 669.0K
Run Growth: 626.7K
Growth Rate: 98.61%
Updated:September 04 2026
huggingface.co

Total runs: 442.1K
Run Growth: -4.8K
Growth Rate: -1.09%
Updated:August 04 2024
huggingface.co

Total runs: 250.3K
Run Growth: -212.3K
Growth Rate: -80.46%
Updated:April 16 2026
huggingface.co

Total runs: 203.0K
Run Growth: -733.7K
Growth Rate: -269.02%
Updated:April 05 2026
huggingface.co

Total runs: 97.0K
Run Growth: -187.4K
Growth Rate: -184.31%
Updated:August 11 2025
huggingface.co

Total runs: 87.1K
Run Growth: -1.8K
Growth Rate: -2.07%
Updated:March 13 2025
huggingface.co

Total runs: 84.0K
Run Growth: 3.7K
Growth Rate: 4.86%
Updated:January 29 2026
huggingface.co

Total runs: 80.8K
Run Growth: -43.5K
Growth Rate: -54.00%
Updated:August 11 2025
huggingface.co

Total runs: 78.8K
Run Growth: 8.0K
Growth Rate: 9.73%
Updated:May 13 2026
huggingface.co

Total runs: 77.4K
Run Growth: -82.6K
Growth Rate: -105.42%
Updated:December 10 2025
huggingface.co

Total runs: 76.3K
Run Growth: -8.1K
Growth Rate: -10.65%
Updated:December 05 2024
huggingface.co

Total runs: 58.9K
Run Growth: -63.5K
Growth Rate: -108.01%
Updated:August 11 2026
huggingface.co

Total runs: 44.9K
Run Growth: -82.9K
Growth Rate: -182.81%
Updated:October 25 2025
huggingface.co

Total runs: 22.0K
Run Growth: -2.3K
Growth Rate: -10.22%
Updated:November 23 2024
huggingface.co

Total runs: 20.1K
Run Growth: -20.8K
Growth Rate: -100.51%
Updated:April 14 2025
huggingface.co

Total runs: 18.3K
Run Growth: -9.7K
Growth Rate: -52.88%
Updated:September 30 2025
huggingface.co

Total runs: 15.4K
Run Growth: -2.5K
Growth Rate: -16.41%
Updated:November 23 2024
huggingface.co

Total runs: 14.0K
Run Growth: -13.3K
Growth Rate: -93.35%
Updated:December 23 2025
huggingface.co

Total runs: 14.0K
Run Growth: 13.0K
Growth Rate: 96.42%
Updated:September 04 2026
huggingface.co

Total runs: 13.1K
Run Growth: 2.5K
Growth Rate: 18.98%
Updated:December 09 2025
huggingface.co

Total runs: 9.8K
Run Growth: 1.4K
Growth Rate: 14.29%
Updated:January 15 2026
huggingface.co

Total runs: 7.9K
Run Growth: -3.6K
Growth Rate: -45.43%
Updated:October 16 2025
huggingface.co

Total runs: 7.1K
Run Growth: -7.1K
Growth Rate: -99.58%
Updated:April 22 2025
huggingface.co

Total runs: 6.2K
Run Growth: -1.7K
Growth Rate: -28.22%
Updated:March 11 2025
huggingface.co

Total runs: 5.3K
Run Growth: -1.9K
Growth Rate: -36.13%
Updated:January 27 2025
huggingface.co

Total runs: 3.9K
Run Growth: -5.3K
Growth Rate: -142.00%
Updated:December 09 2025
huggingface.co

Total runs: 3.1K
Run Growth: 1.1K
Growth Rate: 36.55%
Updated:August 04 2024
huggingface.co

Total runs: 2.9K
Run Growth: -1.6K
Growth Rate: -53.96%
Updated:October 25 2025
huggingface.co

Total runs: 1.8K
Run Growth: 773
Growth Rate: 47.25%
Updated:August 12 2025
huggingface.co

Total runs: 679
Run Growth: 309
Growth Rate: 44.98%
Updated:March 02 2023
huggingface.co

Total runs: 587
Run Growth: -31
Growth Rate: -5.27%
Updated:August 11 2025
huggingface.co

Total runs: 433
Run Growth: -1.2K
Growth Rate: -294.09%
Updated:January 02 2025
huggingface.co

Total runs: 419
Run Growth: 244
Growth Rate: 59.51%
Updated:October 20 2023
huggingface.co

Total runs: 322
Run Growth: 76
Growth Rate: 23.60%
Updated:December 10 2024
huggingface.co

Total runs: 321
Run Growth: -419
Growth Rate: -137.38%
Updated:October 25 2025
huggingface.co

Total runs: 300
Run Growth: 144
Growth Rate: 47.37%
Updated:March 02 2023
huggingface.co

Total runs: 277
Run Growth: 70
Growth Rate: 25.27%
Updated:November 20 2023
huggingface.co

Total runs: 258
Run Growth: 111
Growth Rate: 44.22%
Updated:October 20 2023
huggingface.co

Total runs: 249
Run Growth: 107
Growth Rate: 43.85%
Updated:October 20 2023