Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- chat_template.jinja +141 -0
- config.json +90 -0
- generation_config.json +14 -0
- model-00001-of-00009.safetensors +3 -0
- model-00002-of-00009.safetensors +3 -0
- model-00003-of-00009.safetensors +3 -0
- model-00004-of-00009.safetensors +3 -0
- model-00005-of-00009.safetensors +3 -0
- model-00006-of-00009.safetensors +3 -0
- model-00007-of-00009.safetensors +3 -0
- model-00008-of-00009.safetensors +3 -0
- model-00009-of-00009.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +11 -0
- processor_config.json +75 -0
- tokenizer.json +3 -0
- tokenizer_config.json +66 -0
- video_preprocessor_config.json +11 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[gMASK]<sop>
|
| 2 |
+
{%- if tools -%}
|
| 3 |
+
<|system|>
|
| 4 |
+
# Tools
|
| 5 |
+
|
| 6 |
+
You may call one or more functions to assist with the user query.
|
| 7 |
+
|
| 8 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 9 |
+
<tools>
|
| 10 |
+
{% for tool in tools %}
|
| 11 |
+
{{ tool | tojson(ensure_ascii=False) }}
|
| 12 |
+
{% endfor %}
|
| 13 |
+
</tools>
|
| 14 |
+
|
| 15 |
+
For each function call, output the function name and arguments within the following XML format:
|
| 16 |
+
<tool_call>{function-name}
|
| 17 |
+
<arg_key>{arg-key-1}</arg_key>
|
| 18 |
+
<arg_value>{arg-value-1}</arg_value>
|
| 19 |
+
<arg_key>{arg-key-2}</arg_key>
|
| 20 |
+
<arg_value>{arg-value-2}</arg_value>
|
| 21 |
+
...
|
| 22 |
+
</tool_call>{%- endif -%}
|
| 23 |
+
{%- macro visible_text(content) -%}
|
| 24 |
+
{%- if content is string -%}
|
| 25 |
+
{{- content }}
|
| 26 |
+
{%- elif content is iterable and content is not mapping -%}
|
| 27 |
+
{%- for item in content -%}
|
| 28 |
+
{%- if item is mapping and item.type == 'text' -%}
|
| 29 |
+
{{- item.text }}
|
| 30 |
+
{%- elif item is mapping and (item.type == 'image' or 'image' in item) -%}
|
| 31 |
+
<|begin_of_image|><|image|><|end_of_image|>
|
| 32 |
+
{%- elif item is mapping and (item.type == 'video' or 'video' in item) -%}
|
| 33 |
+
<|begin_of_video|><|video|><|end_of_video|>
|
| 34 |
+
{%- elif item is string -%}
|
| 35 |
+
{{- item }}
|
| 36 |
+
{%- endif -%}
|
| 37 |
+
{%- endfor -%}
|
| 38 |
+
{%- else -%}
|
| 39 |
+
{{- content }}
|
| 40 |
+
{%- endif -%}
|
| 41 |
+
{%- endmacro -%}
|
| 42 |
+
{%- set ns = namespace(last_user_index=-1) %}
|
| 43 |
+
{%- for m in messages %}
|
| 44 |
+
{%- if m.role == 'user' %}
|
| 45 |
+
{% set ns.last_user_index = loop.index0 -%}
|
| 46 |
+
{%- endif %}
|
| 47 |
+
{%- endfor %}
|
| 48 |
+
{% for m in messages %}
|
| 49 |
+
{%- if m.role == 'user' -%}<|user|>
|
| 50 |
+
{% if m.content is string %}
|
| 51 |
+
{{ m.content }}
|
| 52 |
+
{%- else %}
|
| 53 |
+
{%- for item in m.content %}
|
| 54 |
+
{% if item.type == 'video' or 'video' in item %}
|
| 55 |
+
<|begin_of_video|><|video|><|end_of_video|>{% elif item.type == 'image' or 'image' in item %}
|
| 56 |
+
<|begin_of_image|><|image|><|end_of_image|>{% elif item.type == 'text' %}
|
| 57 |
+
{{ item.text }}
|
| 58 |
+
{%- endif %}
|
| 59 |
+
{%- endfor %}
|
| 60 |
+
{%- endif %}
|
| 61 |
+
{{- '/nothink' if (enable_thinking is defined and not enable_thinking and not visible_text(m.content).endswith("/nothink")) else '' -}}
|
| 62 |
+
{%- elif m.role == 'assistant' -%}
|
| 63 |
+
<|assistant|>
|
| 64 |
+
{%- set reasoning_content = '' %}
|
| 65 |
+
{%- set content = visible_text(m.content) %}
|
| 66 |
+
{%- if m.reasoning_content is string %}
|
| 67 |
+
{%- set reasoning_content = m.reasoning_content %}
|
| 68 |
+
{%- else %}
|
| 69 |
+
{%- if '</think>' in content %}
|
| 70 |
+
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
| 71 |
+
{%- set content = content.split('</think>')[-1].lstrip('\n') %}
|
| 72 |
+
{%- endif %}
|
| 73 |
+
{%- endif %}
|
| 74 |
+
{%- if loop.index0 > ns.last_user_index and reasoning_content -%}
|
| 75 |
+
{{ '\n<think>' + reasoning_content.strip() + '</think>'}}
|
| 76 |
+
{%- else -%}
|
| 77 |
+
{{ '\n<think></think>' }}
|
| 78 |
+
{%- endif -%}
|
| 79 |
+
{%- if content.strip() -%}
|
| 80 |
+
{{ '\n' + content.strip() }}
|
| 81 |
+
{%- endif -%}
|
| 82 |
+
{% if m.tool_calls %}
|
| 83 |
+
{% for tc in m.tool_calls %}
|
| 84 |
+
{%- if tc.function %}
|
| 85 |
+
{%- set tc = tc.function %}
|
| 86 |
+
{%- endif %}
|
| 87 |
+
{{ '\n<tool_call>' + tc.name }}
|
| 88 |
+
{% set _args = tc.arguments %}
|
| 89 |
+
{% for k, v in _args.items() %}
|
| 90 |
+
<arg_key>{{ k }}</arg_key>
|
| 91 |
+
<arg_value>{{ v | tojson(ensure_ascii=False) if v is not string else v }}</arg_value>
|
| 92 |
+
{% endfor %}
|
| 93 |
+
</tool_call>{% endfor %}
|
| 94 |
+
{% endif %}
|
| 95 |
+
{%- elif m.role == 'tool' -%}
|
| 96 |
+
{%- if m.content is string -%}
|
| 97 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 98 |
+
{{- '<|observation|>' }}
|
| 99 |
+
{%- endif %}
|
| 100 |
+
{{- '\n<tool_response>\n' }}
|
| 101 |
+
{{- m.content }}
|
| 102 |
+
{{- '\n</tool_response>' }}
|
| 103 |
+
{% elif m.content is iterable and m.content is not mapping %}
|
| 104 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 105 |
+
{{- '<|observation|>' }}
|
| 106 |
+
{%- endif %}
|
| 107 |
+
{{- '\n<tool_response>\n' }}
|
| 108 |
+
{%- for tr in m.content -%}
|
| 109 |
+
{%- if tr is mapping and tr.type is defined -%}
|
| 110 |
+
{%- set t = tr.type | lower -%}
|
| 111 |
+
{%- if t == 'text' and tr.text is defined -%}
|
| 112 |
+
{{ tr.text }}
|
| 113 |
+
{%- elif t in ['image', 'image_url'] -%}
|
| 114 |
+
<|begin_of_image|><|image|><|end_of_image|>
|
| 115 |
+
{%- elif t in ['video', 'video_url'] -%}
|
| 116 |
+
<|begin_of_video|><|video|><|end_of_video|>
|
| 117 |
+
{%- else -%}
|
| 118 |
+
{{ tr | tojson(ensure_ascii=False) }}
|
| 119 |
+
{%- endif -%}
|
| 120 |
+
{%- else -%}
|
| 121 |
+
{{ tr.output if tr.output is defined else tr }}
|
| 122 |
+
{%- endif -%}
|
| 123 |
+
{%- endfor -%}
|
| 124 |
+
{{- '\n</tool_response>' }}
|
| 125 |
+
{%- else -%}
|
| 126 |
+
<|observation|>{% for tr in m.content %}
|
| 127 |
+
|
| 128 |
+
<tool_response>
|
| 129 |
+
{{ tr.output if tr.output is defined else tr }}
|
| 130 |
+
</tool_response>{% endfor -%}
|
| 131 |
+
{% endif -%}
|
| 132 |
+
{# ====== 逻辑结束 ====== #}
|
| 133 |
+
{%- elif m.role == 'system' -%}
|
| 134 |
+
<|system|>
|
| 135 |
+
{{ visible_text(m.content) }}
|
| 136 |
+
{%- endif -%}
|
| 137 |
+
{%- endfor -%}
|
| 138 |
+
{%- if add_generation_prompt -%}
|
| 139 |
+
<|assistant|>
|
| 140 |
+
{{'<think></think>\n' if (enable_thinking is defined and not enable_thinking) else ''}}
|
| 141 |
+
{%- endif -%}
|
config.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Glm4vMoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"image_end_token_id": 151340,
|
| 6 |
+
"image_start_token_id": 151339,
|
| 7 |
+
"image_token_id": 151363,
|
| 8 |
+
"model_type": "glm4v_moe",
|
| 9 |
+
"quantization": {
|
| 10 |
+
"group_size": 128,
|
| 11 |
+
"bits": 3,
|
| 12 |
+
"mode": "affine"
|
| 13 |
+
},
|
| 14 |
+
"quantization_config": {
|
| 15 |
+
"group_size": 128,
|
| 16 |
+
"bits": 3,
|
| 17 |
+
"mode": "affine"
|
| 18 |
+
},
|
| 19 |
+
"text_config": {
|
| 20 |
+
"attention_bias": true,
|
| 21 |
+
"attention_dropout": 0.0,
|
| 22 |
+
"dtype": "bfloat16",
|
| 23 |
+
"eos_token_id": [
|
| 24 |
+
151329,
|
| 25 |
+
151336,
|
| 26 |
+
151338
|
| 27 |
+
],
|
| 28 |
+
"first_k_dense_replace": 1,
|
| 29 |
+
"head_dim": 128,
|
| 30 |
+
"hidden_act": "silu",
|
| 31 |
+
"hidden_size": 4096,
|
| 32 |
+
"initializer_range": 0.02,
|
| 33 |
+
"intermediate_size": 10944,
|
| 34 |
+
"max_position_embeddings": 131072,
|
| 35 |
+
"model_type": "glm4v_moe_text",
|
| 36 |
+
"moe_intermediate_size": 1408,
|
| 37 |
+
"n_group": 1,
|
| 38 |
+
"n_routed_experts": 128,
|
| 39 |
+
"n_shared_experts": 1,
|
| 40 |
+
"norm_topk_prob": true,
|
| 41 |
+
"num_attention_heads": 96,
|
| 42 |
+
"num_experts_per_tok": 8,
|
| 43 |
+
"num_hidden_layers": 46,
|
| 44 |
+
"num_key_value_heads": 8,
|
| 45 |
+
"num_nextn_predict_layers": 0,
|
| 46 |
+
"pad_token_id": 151329,
|
| 47 |
+
"partial_rotary_factor": 0.5,
|
| 48 |
+
"qk_layernorm": false,
|
| 49 |
+
"rms_norm_eps": 1e-05,
|
| 50 |
+
"rope_parameters": {
|
| 51 |
+
"mrope_section": [
|
| 52 |
+
8,
|
| 53 |
+
12,
|
| 54 |
+
12
|
| 55 |
+
],
|
| 56 |
+
"partial_rotary_factor": 0.5,
|
| 57 |
+
"rope_theta": 500000,
|
| 58 |
+
"rope_type": "default"
|
| 59 |
+
},
|
| 60 |
+
"routed_scaling_factor": 1.0,
|
| 61 |
+
"topk_group": 1,
|
| 62 |
+
"use_cache": true,
|
| 63 |
+
"use_qk_norm": false,
|
| 64 |
+
"vocab_size": 151552
|
| 65 |
+
},
|
| 66 |
+
"tie_word_embeddings": false,
|
| 67 |
+
"transformers_version": "5.0.0rc0",
|
| 68 |
+
"video_end_token_id": 151342,
|
| 69 |
+
"video_start_token_id": 151341,
|
| 70 |
+
"video_token_id": 151364,
|
| 71 |
+
"vision_config": {
|
| 72 |
+
"attention_bias": false,
|
| 73 |
+
"attention_dropout": 0.0,
|
| 74 |
+
"depth": 24,
|
| 75 |
+
"hidden_act": "silu",
|
| 76 |
+
"hidden_dropout_prob": 0.0,
|
| 77 |
+
"hidden_size": 1536,
|
| 78 |
+
"image_size": 336,
|
| 79 |
+
"in_channels": 3,
|
| 80 |
+
"initializer_range": 0.02,
|
| 81 |
+
"intermediate_size": 10944,
|
| 82 |
+
"model_type": "glm4v_moe_vision",
|
| 83 |
+
"num_heads": 12,
|
| 84 |
+
"out_hidden_size": 4096,
|
| 85 |
+
"patch_size": 14,
|
| 86 |
+
"rms_norm_eps": 1e-05,
|
| 87 |
+
"spatial_merge_size": 2,
|
| 88 |
+
"temporal_patch_size": 2
|
| 89 |
+
}
|
| 90 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151329,
|
| 6 |
+
151336,
|
| 7 |
+
151338
|
| 8 |
+
],
|
| 9 |
+
"pad_token_id": 151329,
|
| 10 |
+
"top_p": 0.6,
|
| 11 |
+
"temperature": 0.8,
|
| 12 |
+
"top_k": 2,
|
| 13 |
+
"transformers_version": "5.0.0rc0"
|
| 14 |
+
}
|
model-00001-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fac4bbf64ee7408108781c78f8e101559cb6b217d2d9dee230f5f3858c6630ce
|
| 3 |
+
size 5340544345
|
model-00002-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:370bb3d2f91218c24ebad159d09033eacf8ede38426aea320a4d111ac51cd7af
|
| 3 |
+
size 5368424302
|
model-00003-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:157a3fc5180d491412c15bdfdce5bd23e7d2e9fcdaeb564c6f8ceb1306b26a5d
|
| 3 |
+
size 5104768329
|
model-00004-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04bcadea3ad1ae8adaa6f54c18684e9af33aad2864bb012476c39730b0533afd
|
| 3 |
+
size 5368424520
|
model-00005-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d40f8c89c91b839f7f2bdbb22160a46a65587595f317b152076c5e2cb7a6ed2
|
| 3 |
+
size 5104768327
|
model-00006-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ef2b5415b828fbffab9f2a901797c4bb41c65728489071d83a40364bd17d3db
|
| 3 |
+
size 5368424528
|
model-00007-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60d441fad8712f15d3fe38cbc498b142532d2b0f0b9b8238d0329f4bad1b9547
|
| 3 |
+
size 5104768381
|
model-00008-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db699082d3683ddcaa34cfbacc2249251481e05542d4e01d8dd836d40c014df8
|
| 3 |
+
size 5368424490
|
model-00009-of-00009.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f57e6ab5d9dde036d271505711c972817bb02cceebe6f7c2401e68e45e3f05fb
|
| 3 |
+
size 3108516475
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {"shortest_edge": 12544, "longest_edge": 9633792},
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"patch_size": 14,
|
| 5 |
+
"temporal_patch_size": 2,
|
| 6 |
+
"merge_size": 2,
|
| 7 |
+
"image_mean": [0.48145466, 0.4578275, 0.40821073],
|
| 8 |
+
"image_std": [0.26862954, 0.26130258, 0.27577711],
|
| 9 |
+
"image_processor_type": "Glm46VImageProcessor",
|
| 10 |
+
"processor_class": "Glm46VProcessor"
|
| 11 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.48145466,
|
| 9 |
+
0.4578275,
|
| 10 |
+
0.40821073
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "Glm46VImageProcessor",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.26862954,
|
| 15 |
+
0.26130258,
|
| 16 |
+
0.27577711
|
| 17 |
+
],
|
| 18 |
+
"merge_size": 2,
|
| 19 |
+
"patch_size": 14,
|
| 20 |
+
"processor_class": "Glm46VProcessor",
|
| 21 |
+
"resample": 3,
|
| 22 |
+
"rescale_factor": 0.00392156862745098,
|
| 23 |
+
"size": {
|
| 24 |
+
"longest_edge": 9633792,
|
| 25 |
+
"shortest_edge": 12544
|
| 26 |
+
},
|
| 27 |
+
"temporal_patch_size": 2
|
| 28 |
+
},
|
| 29 |
+
"processor_class": "Glm46VProcessor",
|
| 30 |
+
"video_processor": {
|
| 31 |
+
"crop_size": null,
|
| 32 |
+
"data_format": "channels_first",
|
| 33 |
+
"default_to_square": true,
|
| 34 |
+
"device": null,
|
| 35 |
+
"do_center_crop": null,
|
| 36 |
+
"do_convert_rgb": true,
|
| 37 |
+
"do_normalize": true,
|
| 38 |
+
"do_pad": null,
|
| 39 |
+
"do_rescale": true,
|
| 40 |
+
"do_resize": true,
|
| 41 |
+
"do_sample_frames": true,
|
| 42 |
+
"fps": 2,
|
| 43 |
+
"image_mean": [
|
| 44 |
+
0.48145466,
|
| 45 |
+
0.4578275,
|
| 46 |
+
0.40821073
|
| 47 |
+
],
|
| 48 |
+
"image_std": [
|
| 49 |
+
0.26862954,
|
| 50 |
+
0.26130258,
|
| 51 |
+
0.27577711
|
| 52 |
+
],
|
| 53 |
+
"input_data_format": null,
|
| 54 |
+
"max_duration": 300,
|
| 55 |
+
"max_image_size": {
|
| 56 |
+
"longest_edge": 47040000
|
| 57 |
+
},
|
| 58 |
+
"merge_size": 2,
|
| 59 |
+
"num_frames": 16,
|
| 60 |
+
"pad_size": null,
|
| 61 |
+
"patch_size": 14,
|
| 62 |
+
"processor_class": "Glm46VProcessor",
|
| 63 |
+
"resample": 3,
|
| 64 |
+
"rescale_factor": 0.00392156862745098,
|
| 65 |
+
"return_metadata": false,
|
| 66 |
+
"return_tensors": null,
|
| 67 |
+
"size": {
|
| 68 |
+
"longest_edge": 47040000,
|
| 69 |
+
"shortest_edge": 12544
|
| 70 |
+
},
|
| 71 |
+
"temporal_patch_size": 2,
|
| 72 |
+
"video_metadata": null,
|
| 73 |
+
"video_processor_type": "Glm46VVideoProcessor"
|
| 74 |
+
}
|
| 75 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0ccf2252fe9cd23ada23a829ec409aab397dbd2ac4f372d3a1a23d1f7c72d6b
|
| 3 |
+
size 19970686
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|endoftext|>",
|
| 4 |
+
"[MASK]",
|
| 5 |
+
"[gMASK]",
|
| 6 |
+
"[sMASK]",
|
| 7 |
+
"<sop>",
|
| 8 |
+
"<eop>",
|
| 9 |
+
"<|system|>",
|
| 10 |
+
"<|user|>",
|
| 11 |
+
"<|assistant|>",
|
| 12 |
+
"<|observation|>",
|
| 13 |
+
"<|begin_of_image|>",
|
| 14 |
+
"<|end_of_image|>",
|
| 15 |
+
"<|begin_of_video|>",
|
| 16 |
+
"<|end_of_video|>",
|
| 17 |
+
"<|begin_of_audio|>",
|
| 18 |
+
"<|end_of_audio|>",
|
| 19 |
+
"<|image|>",
|
| 20 |
+
"<|video|>",
|
| 21 |
+
"<|begin_of_transcription|>",
|
| 22 |
+
"<|end_of_transcription|>",
|
| 23 |
+
"<|code_prefix|>",
|
| 24 |
+
"<|code_middle|>",
|
| 25 |
+
"<|code_suffix|>",
|
| 26 |
+
"/nothink"
|
| 27 |
+
],
|
| 28 |
+
"backend": "tokenizers",
|
| 29 |
+
"clean_up_tokenization_spaces": false,
|
| 30 |
+
"do_lower_case": false,
|
| 31 |
+
"eos_token": "<|endoftext|>",
|
| 32 |
+
"extra_special_tokens": [
|
| 33 |
+
"<|endoftext|>",
|
| 34 |
+
"[MASK]",
|
| 35 |
+
"[gMASK]",
|
| 36 |
+
"[sMASK]",
|
| 37 |
+
"<sop>",
|
| 38 |
+
"<eop>",
|
| 39 |
+
"<|system|>",
|
| 40 |
+
"<|user|>",
|
| 41 |
+
"<|assistant|>",
|
| 42 |
+
"<|observation|>",
|
| 43 |
+
"<|begin_of_image|>",
|
| 44 |
+
"<|end_of_image|>",
|
| 45 |
+
"<|begin_of_video|>",
|
| 46 |
+
"<|end_of_video|>",
|
| 47 |
+
"<|begin_of_audio|>",
|
| 48 |
+
"<|end_of_audio|>",
|
| 49 |
+
"<|image|>",
|
| 50 |
+
"<|video|>",
|
| 51 |
+
"<|begin_of_transcription|>",
|
| 52 |
+
"<|end_of_transcription|>",
|
| 53 |
+
"<|code_prefix|>",
|
| 54 |
+
"<|code_middle|>",
|
| 55 |
+
"<|code_suffix|>",
|
| 56 |
+
"/nothink"
|
| 57 |
+
],
|
| 58 |
+
"is_local": true,
|
| 59 |
+
"model_max_length": 128000,
|
| 60 |
+
"model_specific_special_tokens": {},
|
| 61 |
+
"pad_token": "<|endoftext|>",
|
| 62 |
+
"padding_side": "left",
|
| 63 |
+
"processor_class": "Glm46VProcessor",
|
| 64 |
+
"remove_space": false,
|
| 65 |
+
"tokenizer_class": "TokenizersBackend"
|
| 66 |
+
}
|
video_preprocessor_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"size": {"shortest_edge": 12544, "longest_edge": 47040000},
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"patch_size": 14,
|
| 5 |
+
"temporal_patch_size": 2,
|
| 6 |
+
"merge_size": 2,
|
| 7 |
+
"image_mean": [0.48145466, 0.4578275, 0.40821073],
|
| 8 |
+
"image_std": [0.26862954, 0.26130258, 0.27577711],
|
| 9 |
+
"video_processor_type": "Glm46VVideoProcessor",
|
| 10 |
+
"processor_class": "Glm46VProcessor"
|
| 11 |
+
}
|