[来源关键摘录] Official repository for GLM-4.6V, GLM-4.5V, and GLM-4.1V-Thinking multimodal reasoning models trained with scalable reinforcement learning.
[正文前段节选] Skip to content
Navigation Menu
Appearance settings
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
Repository navigation
NotificationsYou must be signed in to change notification settings
Fork196 (196)
Star2.4k (2.4k)You must be signed in to star a repository
GLM-4.6V/4.5V/4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning
image2textreasoningvideo-understandingvlm
Apache-2.0 license
Custom properties
Report repository
BranchesTags
Open more actions menu
Latest commit
Folders and files
Last commit message
Last commit date
.pre-commit-config.yaml
README_zh.md
requirements.txt
View all files
Repository files navigation
👋 Join our WeChat or Discord communities.
📖 Check out the GLM-5.3-Flash blog and the GLM-4.5V & GLM-4.1V technical report.
📍 Use the GLM-5.3-Flash API service on the API platform.
🔜 Try GLM-5.3-Flash on z.ai (coming soon).
Introduction
Vision-language models (VLMs) have become a key cornerstone of intelligent systems. As real-world AI tasks grow
increasingly complex, VLMs urgently need to enhance reasoning capabilities beyond basic multimodal perception —
improving accuracy, comprehensiveness, and intelligence — to enable complex problem solving, long-context understanding,
and multimodal agents.
Through our open-source work, we aim to explore the technological frontier together with the community while empowering
more developers to create exciting and innovative applications.
This open-source repository contains our GLM-4.6V, GLM-4.5V and GLM-4.1V series models. For performance and
details, see Model Overview. For known issues,
see Fixed and Remaining Issues.
Project Updates
News: 2026/09/02: This repository will no longer be maintained. For questions about GLM-5.3-Flash, please visit the GLM-5 repository for discussion.
News: 2026/08/26: We released GLM-5.3-Flash, our first open-source natively multimodal model.
News: 2026/04/02: We released GLM-5V-Turbo
and GLM-skills.
News: 2026/03/28: We have released multiple GLM-V related Skills, covering several specialized areas
such as GLM-V-Grounding and GLM-V-Prompt-Gen. You are welcome to try them here.
News: 2025/11/10: We released UI2Code^N, a RL-enhanced UI coding model with UI-to-code, UI-polish, and
UI-edit capabilities. The model is trained based on GLM-4.1V-Base. Check it
News: 2025/10/27: We’ve released Glyph, a framework for scaling the context length through visual-text
compression, the glyph model trained based on GLM-4.1V-Base. Check it
News: 2025/08/11: We released GLM-4.5V with significant improvements across multiple benchmarks. We also
open-sourced our handcrafted desktop assistant app for debugging. Once connected to GLM-4.5V, it can capture
visual information from your PC screen via screenshots or screen recordings. Feel free to try it out or customize it
into your own multimodal assistant. Click here to download
the installer or build from source!
News: 2025/07/16: We have open-sourced the VLM Reward System used to train GLM-4.1V-Thinking.View
the code repository and run locally: python examples/reward_system_demo.py.
News: 2025/07/01: We released GLM-4.1V-9B-Thinking and
its technical report.
Model Implementation Code
GLM-4.5V and GLM-4.6V model algorithm: see the full implementation
in transformers.
GLM-4.1V-9B-Thinking model algorithm: see the full implementation
Both models share identical multimodal preprocessing, but use different conversation templates — please distinguish
Model Downloads
Download Links
🤗 Hugging Face🤖 ModelScope
Hybrid Reasoning
GLM-4.6V-FP8
GLM-4.6V-Flash
GLM-4.5V-FP8
GLM-4.1V-9B-Thinking
GLM-4.1V-9B-Base
Hugging Face provides GGUF format model weights. You can download the GGUF format model of GLM-V from here.
GLM-4.5V / GLM-4.6V / GLM-4.1V equips precise grounding capabilities. Given a prompt that requests the location of a specific object, the model
is able to reasoning step-by-step and identify the bounding boxes of the target object. The query prompt supports
complex descriptions of the target object as well as specified output formats, for example:
Help me to locate in the image and give me its bounding boxes.
Please pinpoint the bounding box [[x1,y1,x2,y2], …] in the image as per the given description.
Here, <expr> is the description of the target object. The output bounding box is a quadruple $$[x_1,y_1,x_2,y_2]$$
composed of the coordinates of the top-left and bottom-right corners, where each value is normalized by the image
width (for x) or height (for y) and scaled by 1000.
In the response, the special tokens <|begin_of_box|> and <|end_of_box|> are used to mark the image bounding box in
the answer. The bracket style may vary ([], [[]], (), <>, etc.), but the meaning is the same: to enclose the coordinates
examples/gui-agent: Demonstrates prompt construction and output handling for GUI Agents, including strategies for
mobile, PC, and web. Prompt templates differ between GLM-4.1V and GLM-4.5V.
examples/vlm-helper: A desktop assistant for GLM multimodal models (mainly GLM-4.5V, compatible with GLM-4.1V),
supporting text, images, videos, PDFs, PPTs, and more. Connects to the GLM multimodal API for intelligent services
across scenarios. Download the installer
or build from source.
Serve GLM-V Series Models Locally
The GLM-V series supports deployment with the following frameworks. Feel free to try them out:
SGLang (v0.5.15.post1+) — see cookbook
vLLM (v0.25.0+) — see recipes
Transformers (v0.5.13+) — see transformers docs
For deployment on the Ascend NPU platform, inference frameworks such as xLLM, see here.
Integration with Other Automation Tools
Midscene.js is an open-source UI automation SDK driven by vision models, supporting multi-platform automation through JavaScript or Yaml-format process syntax.
Midscene.js has completed integration with GLM-V models. You can quickly experience GLM-V through the Midscene.js Integration Guide.
Here are two examples to help you get started quickly:
Call Midscene.js via TypeScript scripts
Experience Midscene.js via Yaml scripts
Model Fine-tuning
LLaMA-Factory already supports fine-tuning for GLM-4.5V &
GLM-4.1V-9B-Thinking models. Below is an example of dataset construction using two images. You should organize your
dataset into finetune.json in the following format, This is an example for fine-tuning GLM-4.1V-9B.
"messages": [
"content": "<image>Who are they?",
"role": "user"
"content": "<think>\nUser asked me to observe the image and find the answer. I know they are Kane and Goretzka from Bayern Munich.</think>\n<answer>They're Kane and Goretzka from Bayern Munich.</answer>",
"role": "assistant"
"content": "<image>What are they doing?",
"content": "<think>\nI need to observe what these people are doing. Oh, they are celebrating on the soccer field.</think>\n<answer>They are celebrating on the soccer field.</answer>",
"mllm_demo_data/1.jpg",
"mllm_demo_data/2.jpg"
The content inside <think> ... </think> will not be stored as conversation history or in fine-tuning data.
The <image> tag will be replaced with the corresponding image information.
For the GLM-4.5V model, the and tags should be removed.
Then, you can fine-tune following the standard LLaMA-Factory procedure.
Model Overview
GLM-4.6V series model includes two versions: GLM-4.6V (106B), a foundation model designed for cloud and high-performance
cluster scenarios,
and GLM-4.6V-Flash (9B), a lightweight model optimized for local deployment and low-latency applications.
GLM-4.6V scales its context window to 128k tokens in training,
and achieves SoTA performance in visual understanding among models of similar parameter scales.
[...内容已截断,完整版请查看原文或 Wayback 快照]