Files changed (4) hide show
  1. README.md +3 -3
  2. config.json +11 -11
  3. generation_config.json +1 -1
  4. tokenizer_config.json +0 -2
README.md CHANGED
@@ -86,14 +86,14 @@ GLM-4.1V-9B-Thinking integrates the **Chain-of-Thought** reasoning mechanism, im
86
  For `SGLang` and `transformers`:
87
 
88
  ```bash
89
- pip install transformers>=4.57.1
90
- pip install sglang>=0.5.3
91
  ```
92
 
93
  For `vLLM`:
94
 
95
  ```bash
96
- pip install vllm>=0.10.2
 
97
  ```
98
 
99
  ### Quick Start with Transformers
 
86
  For `SGLang` and `transformers`:
87
 
88
  ```bash
89
+ pip install -r https://raw.githubusercontent.com/zai-org/GLM-V/main/requirements.txt
 
90
  ```
91
 
92
  For `vLLM`:
93
 
94
  ```bash
95
+ pip install -U vllm --pre --extra-index-url https://wheels.vllm.ai/nightly
96
+ pip install transformers-v4.55.0-GLM-4.5V-preview
97
  ```
98
 
99
  ### Quick Start with Transformers
config.json CHANGED
@@ -3,16 +3,7 @@
3
  "Glm4vMoeForConditionalGeneration"
4
  ],
5
  "model_type": "glm4v_moe",
6
- "image_start_token_id": 151339,
7
- "image_end_token_id": 151340,
8
- "video_start_token_id": 151341,
9
- "video_end_token_id": 151342,
10
- "image_token_id": 151363,
11
- "video_token_id": 151364,
12
- "tie_word_embeddings": false,
13
- "transformers_version": "4.57.1",
14
  "text_config": {
15
- "model_type": "glm4v_moe_text",
16
  "pad_token_id": 151329,
17
  "vocab_size": 151552,
18
  "eos_token_id": [
@@ -20,6 +11,9 @@
20
  151336,
21
  151338
22
  ],
 
 
 
23
  "head_dim": 128,
24
  "attention_bias": true,
25
  "attention_dropout": 0.0,
@@ -29,6 +23,7 @@
29
  "initializer_range": 0.02,
30
  "intermediate_size": 10944,
31
  "max_position_embeddings": 65536,
 
32
  "moe_intermediate_size": 1408,
33
  "n_group": 1,
34
  "n_routed_experts": 128,
@@ -40,7 +35,7 @@
40
  "num_key_value_heads": 8,
41
  "partial_rotary_factor": 0.5,
42
  "rms_norm_eps": 1e-05,
43
- "dtype": "bfloat16",
44
  "rope_scaling": {
45
  "rope_type": "default",
46
  "mrope_section": [
@@ -55,8 +50,12 @@
55
  "use_cache": true,
56
  "use_qk_norm": false
57
  },
 
 
 
 
 
58
  "vision_config": {
59
- "model_type": "glm4v_moe",
60
  "attention_bias": false,
61
  "attention_dropout": 0.0,
62
  "depth": 24,
@@ -66,6 +65,7 @@
66
  "in_channels": 3,
67
  "initializer_range": 0.02,
68
  "intermediate_size": 10944,
 
69
  "num_heads": 12,
70
  "out_hidden_size": 4096,
71
  "patch_size": 14,
 
3
  "Glm4vMoeForConditionalGeneration"
4
  ],
5
  "model_type": "glm4v_moe",
 
 
 
 
 
 
 
 
6
  "text_config": {
 
7
  "pad_token_id": 151329,
8
  "vocab_size": 151552,
9
  "eos_token_id": [
 
11
  151336,
12
  151338
13
  ],
14
+ "image_end_token_id": 151340,
15
+ "image_start_token_id": 151339,
16
+ "image_token_id": 151363,
17
  "head_dim": 128,
18
  "attention_bias": true,
19
  "attention_dropout": 0.0,
 
23
  "initializer_range": 0.02,
24
  "intermediate_size": 10944,
25
  "max_position_embeddings": 65536,
26
+ "model_type": "glm4v_moe_text",
27
  "moe_intermediate_size": 1408,
28
  "n_group": 1,
29
  "n_routed_experts": 128,
 
35
  "num_key_value_heads": 8,
36
  "partial_rotary_factor": 0.5,
37
  "rms_norm_eps": 1e-05,
38
+ "torch_dtype": "bfloat16",
39
  "rope_scaling": {
40
  "rope_type": "default",
41
  "mrope_section": [
 
50
  "use_cache": true,
51
  "use_qk_norm": false
52
  },
53
+ "torch_dtype": "bfloat16",
54
+ "transformers_version": "4.55.0.dev0",
55
+ "video_end_token_id": 151342,
56
+ "video_start_token_id": 151341,
57
+ "video_token_id": 151364,
58
  "vision_config": {
 
59
  "attention_bias": false,
60
  "attention_dropout": 0.0,
61
  "depth": 24,
 
65
  "in_channels": 3,
66
  "initializer_range": 0.02,
67
  "intermediate_size": 10944,
68
+ "model_type": "glm4v_moe",
69
  "num_heads": 12,
70
  "out_hidden_size": 4096,
71
  "patch_size": 14,
generation_config.json CHANGED
@@ -10,5 +10,5 @@
10
  "temperature": 1.0,
11
  "top_k": 1,
12
  "top_p": 0.0001,
13
- "transformers_version": "4.57.1"
14
  }
 
10
  "temperature": 1.0,
11
  "top_k": 1,
12
  "top_p": 0.0001,
13
+ "transformers_version": "4.55.0.dev"
14
  }
tokenizer_config.json CHANGED
@@ -306,8 +306,6 @@
306
  "<|end_of_video|>",
307
  "<|begin_of_audio|>",
308
  "<|end_of_audio|>",
309
- "<|image|>",
310
- "<|video|>",
311
  "<|begin_of_transcription|>",
312
  "<|end_of_transcription|>",
313
  "<|code_prefix|>",
 
306
  "<|end_of_video|>",
307
  "<|begin_of_audio|>",
308
  "<|end_of_audio|>",
 
 
309
  "<|begin_of_transcription|>",
310
  "<|end_of_transcription|>",
311
  "<|code_prefix|>",