wrldsuksgo2mars commited on
Commit
319d66a
·
verified ·
1 Parent(s): 8c02fb6

Restore official GLM-5.3 multimodal metadata

Browse files

Restore the exact processor, tokenizer/chat-template, and generation metadata from the Z.ai GLM-5.3-Flash source checkpoint. Model weights and quantization tensors are unchanged.

generation_config.json CHANGED
@@ -1,6 +1,5 @@
1
  {
2
  "_from_model_config": true,
3
- "do_sample": true,
4
  "eos_token_id": [
5
  154820,
6
  154827,
@@ -9,5 +8,5 @@
9
  "pad_token_id": 154820,
10
  "temperature": 1.0,
11
  "top_p": 0.95,
12
- "transformers_version": "5.16.1"
13
  }
 
1
  {
2
  "_from_model_config": true,
 
3
  "eos_token_id": [
4
  154820,
5
  154827,
 
8
  "pad_token_id": 154820,
9
  "temperature": 1.0,
10
  "top_p": 0.95,
11
+ "transformers_version": "5.16.0"
12
  }
processor_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_rescale": true,
4
+ "patch_expand_factor": 1,
5
+ "merge_size": 2,
6
+ "image_mean": [
7
+ 0.48145466,
8
+ 0.4578275,
9
+ 0.40821073
10
+ ],
11
+ "image_std": [
12
+ 0.26862954,
13
+ 0.26130258,
14
+ 0.27577711
15
+ ],
16
+ "temporal_patch_size": 2,
17
+ "patch_size": 14,
18
+ "min_image_tokens": 16,
19
+ "max_image_tokens": 8000,
20
+ "image_processor_type": "Glm5NextImageProcessor"
21
+ },
22
+ "video_processor": {
23
+ "do_rescale": true,
24
+ "video_processor_type": "Glm5NextVideoProcessor",
25
+ "patch_expand_factor": 1,
26
+ "merge_size": 2,
27
+ "image_mean": [
28
+ 0.48145466,
29
+ 0.4578275,
30
+ 0.40821073
31
+ ],
32
+ "image_std": [
33
+ 0.26862954,
34
+ 0.26130258,
35
+ 0.27577711
36
+ ],
37
+ "temporal_patch_size": 2,
38
+ "patch_size": 14,
39
+ "min_image_tokens": 16,
40
+ "max_image_tokens": 240000,
41
+ "fps": 2
42
+ },
43
+ "processor_class": "Glm5NextProcessor"
44
+ }
tokenizer_config.json CHANGED
@@ -23,14 +23,11 @@
23
  "<|begin_of_transcription|>",
24
  "<|end_of_transcription|>"
25
  ],
26
- "fix_mistral_regex": true,
27
  "is_local": true,
28
- "local_files_only": true,
29
  "model_max_length": 1048576,
30
  "model_specific_special_tokens": {},
31
  "pad_token": "<|endoftext|>",
32
  "padding_side": "left",
33
  "remove_space": false,
34
- "tokenizer_class": "TokenizersBackendFast",
35
- "_commit_hash": null
36
- }
 
23
  "<|begin_of_transcription|>",
24
  "<|end_of_transcription|>"
25
  ],
 
26
  "is_local": true,
 
27
  "model_max_length": 1048576,
28
  "model_specific_special_tokens": {},
29
  "pad_token": "<|endoftext|>",
30
  "padding_side": "left",
31
  "remove_space": false,
32
+ "tokenizer_class": "TokenizersBackend"
33
+ }