Commit ·
4eb1a19
1
Parent(s): 5324fb1
qwen2_5vl-32b_dia_img2txt_5e-5_val_08-05
Browse files- .gitattributes +1 -0
- Modelfile +16 -0
- chat_template.json +3 -0
- config.json +1 -1
- generation_config.json +1 -2
- model-00001-of-00014.safetensors +1 -1
- model-00002-of-00014.safetensors +1 -1
- model-00003-of-00014.safetensors +1 -1
- model-00004-of-00014.safetensors +1 -1
- model-00005-of-00014.safetensors +1 -1
- model-00006-of-00014.safetensors +1 -1
- model-00007-of-00014.safetensors +1 -1
- model-00008-of-00014.safetensors +1 -1
- model-00009-of-00014.safetensors +1 -1
- model-00010-of-00014.safetensors +1 -1
- model-00011-of-00014.safetensors +1 -1
- model-00012-of-00014.safetensors +1 -1
- model-00013-of-00014.safetensors +1 -1
- model-00014-of-00014.safetensors +1 -1
- preprocessor_config.json +12 -5
- training_args.bin → tokenizer.json +2 -2
- tokenizer_config.json +3 -2
- trainer_state.json +0 -0
- vocab.json +0 -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
|
Modelfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ollama modelfile auto-generated by llamafactory
|
| 2 |
+
|
| 3 |
+
FROM .
|
| 4 |
+
|
| 5 |
+
TEMPLATE """{{ if .System }}<|im_start|>system
|
| 6 |
+
{{ .System }}<|im_end|>
|
| 7 |
+
{{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|im_start|>user
|
| 8 |
+
{{ .Content }}<|im_end|>
|
| 9 |
+
<|im_start|>assistant
|
| 10 |
+
{{ else if eq .Role "assistant" }}{{ .Content }}<|im_end|>
|
| 11 |
+
{{ end }}{{ end }}"""
|
| 12 |
+
|
| 13 |
+
SYSTEM """You are a helpful assistant."""
|
| 14 |
+
|
| 15 |
+
PARAMETER stop "<|im_end|>"
|
| 16 |
+
PARAMETER num_ctx 4096
|
chat_template.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
|
| 3 |
+
}
|
config.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
"sliding_window": 32768,
|
| 31 |
"tie_word_embeddings": false,
|
| 32 |
"torch_dtype": "bfloat16",
|
| 33 |
-
"transformers_version": "4.
|
| 34 |
"use_cache": true,
|
| 35 |
"use_sliding_window": false,
|
| 36 |
"video_token_id": 151656,
|
|
|
|
| 30 |
"sliding_window": 32768,
|
| 31 |
"tie_word_embeddings": false,
|
| 32 |
"torch_dtype": "bfloat16",
|
| 33 |
+
"transformers_version": "4.50.0",
|
| 34 |
"use_cache": true,
|
| 35 |
"use_sliding_window": false,
|
| 36 |
"video_token_id": 151656,
|
generation_config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"attn_implementation": "flash_attention_2",
|
| 3 |
"bos_token_id": 151643,
|
| 4 |
"do_sample": true,
|
| 5 |
"eos_token_id": [
|
|
@@ -9,5 +8,5 @@
|
|
| 9 |
"pad_token_id": 151643,
|
| 10 |
"repetition_penalty": 1.05,
|
| 11 |
"temperature": 1e-06,
|
| 12 |
-
"transformers_version": "4.
|
| 13 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"bos_token_id": 151643,
|
| 3 |
"do_sample": true,
|
| 4 |
"eos_token_id": [
|
|
|
|
| 8 |
"pad_token_id": 151643,
|
| 9 |
"repetition_penalty": 1.05,
|
| 10 |
"temperature": 1e-06,
|
| 11 |
+
"transformers_version": "4.50.0"
|
| 12 |
}
|
model-00001-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4958700928
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1198ad79ba8ac1092e8fe032032efa9f3366ca738d84bc68adb63b0cfdf0f0cb
|
| 3 |
size 4958700928
|
model-00002-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4928488272
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e186324f5a129524036932900ea69b596c546300354a87a197f4cf4f3ab6999d
|
| 3 |
size 4928488272
|
model-00003-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059368
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2958c7b2e49deacde936a5c89ec6f334ceb23ac5fe8dfca28313978719937bd4
|
| 3 |
size 4876059368
|
model-00004-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3da1fec7a9efbb3e94a7b4c546988d545608e3d22d696e3c74143fe16bc12e90
|
| 3 |
size 4876059416
|
model-00005-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e3f68df335f910af5eafda5ad158050aa4842fec6f828ff99ef639feb0bf40e
|
| 3 |
size 4876059416
|
model-00006-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa8642c6d492b9a64ba0d80833f6f6ae7bbd529617c9bccc9c5df831d4d98665
|
| 3 |
size 4876059416
|
model-00007-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3a1c9701dd60b001f01b547cd2e266b2ef9f9b78026a991c6436a07a25e8b55d
|
| 3 |
size 4876059416
|
model-00008-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b95a5924a5c060ea617a4e0dac4f3caefdc637e0527905fe85d14ff7d60fb529
|
| 3 |
size 4876059416
|
model-00009-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73354b4a6dfd2513d31cbf4469a8b148e8e9d532a346b2424e437708c7e86bb7
|
| 3 |
size 4876059416
|
model-00010-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8fdcde17ac2ca6905bba1b336ebe03d3471fec64781a7382112a7fd8c40368e1
|
| 3 |
size 4876059416
|
model-00011-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a464ecb1edb24e7e11b379a80660b60a8fddf695d5f6230ee26132d3a3195c3
|
| 3 |
size 4876059416
|
model-00012-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:452b5d917e0a675f91ec74ad3ae679cc9491f2384489ead6d0f793032e1797b6
|
| 3 |
size 4876059416
|
model-00013-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4876059416
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d43504574aa1ee663deaa203100d228c293c2f9deae9064ce2579d3b27a06be4
|
| 3 |
size 4876059416
|
model-00014-of-00014.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3381725320
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ade6d18a1fed72e4e4ef236b8f85c49dc92ed3f16dd2b7885cba37c07c6cb6a8
|
| 3 |
size 3381725320
|
preprocessor_config.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"do_convert_rgb": true,
|
| 3 |
"do_normalize": true,
|
| 4 |
"do_rescale": true,
|
|
@@ -8,22 +13,24 @@
|
|
| 8 |
0.4578275,
|
| 9 |
0.40821073
|
| 10 |
],
|
| 11 |
-
"image_processor_type": "
|
| 12 |
"image_std": [
|
| 13 |
0.26862954,
|
| 14 |
0.26130258,
|
| 15 |
0.27577711
|
| 16 |
],
|
| 17 |
-
"
|
|
|
|
| 18 |
"merge_size": 2,
|
| 19 |
-
"min_pixels":
|
| 20 |
"patch_size": 14,
|
| 21 |
"processor_class": "Qwen2_5_VLProcessor",
|
| 22 |
"resample": 3,
|
| 23 |
"rescale_factor": 0.00392156862745098,
|
|
|
|
| 24 |
"size": {
|
| 25 |
-
"longest_edge":
|
| 26 |
-
"shortest_edge":
|
| 27 |
},
|
| 28 |
"temporal_patch_size": 2
|
| 29 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"crop_size": null,
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"default_to_square": true,
|
| 5 |
+
"device": null,
|
| 6 |
+
"do_center_crop": null,
|
| 7 |
"do_convert_rgb": true,
|
| 8 |
"do_normalize": true,
|
| 9 |
"do_rescale": true,
|
|
|
|
| 13 |
0.4578275,
|
| 14 |
0.40821073
|
| 15 |
],
|
| 16 |
+
"image_processor_type": "Qwen2VLImageProcessorFast",
|
| 17 |
"image_std": [
|
| 18 |
0.26862954,
|
| 19 |
0.26130258,
|
| 20 |
0.27577711
|
| 21 |
],
|
| 22 |
+
"input_data_format": null,
|
| 23 |
+
"max_pixels": 12845056,
|
| 24 |
"merge_size": 2,
|
| 25 |
+
"min_pixels": 3136,
|
| 26 |
"patch_size": 14,
|
| 27 |
"processor_class": "Qwen2_5_VLProcessor",
|
| 28 |
"resample": 3,
|
| 29 |
"rescale_factor": 0.00392156862745098,
|
| 30 |
+
"return_tensors": null,
|
| 31 |
"size": {
|
| 32 |
+
"longest_edge": 12845056,
|
| 33 |
+
"shortest_edge": 3136
|
| 34 |
},
|
| 35 |
"temporal_patch_size": 2
|
| 36 |
}
|
training_args.bin → tokenizer.json
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
|
| 3 |
+
size 11421896
|
tokenizer_config.json
CHANGED
|
@@ -200,9 +200,10 @@
|
|
| 200 |
"eos_token": "<|im_end|>",
|
| 201 |
"errors": "replace",
|
| 202 |
"extra_special_tokens": {},
|
| 203 |
-
"model_max_length":
|
| 204 |
"pad_token": "<|endoftext|>",
|
| 205 |
-
"padding_side": "
|
|
|
|
| 206 |
"split_special_tokens": false,
|
| 207 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 208 |
"unk_token": null
|
|
|
|
| 200 |
"eos_token": "<|im_end|>",
|
| 201 |
"errors": "replace",
|
| 202 |
"extra_special_tokens": {},
|
| 203 |
+
"model_max_length": 131072,
|
| 204 |
"pad_token": "<|endoftext|>",
|
| 205 |
+
"padding_side": "left",
|
| 206 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
| 207 |
"split_special_tokens": false,
|
| 208 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 209 |
"unk_token": null
|
trainer_state.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vocab.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|