Training in progress, epoch 0
Browse files- chat_template.jinja +7 -0
- config.json +42 -2
- model.safetensors +2 -2
- tokenizer_config.json +0 -1
- training_args.bin +2 -2
chat_template.jinja
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{% 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
|
2 |
+
You are a helpful assistant.<|im_end|>
|
3 |
+
{% endif %}<|im_start|>{{ message['role'] }}
|
4 |
+
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
|
5 |
+
{% 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|>
|
6 |
+
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
7 |
+
{% endif %}
|
config.json
CHANGED
@@ -28,9 +28,48 @@
|
|
28 |
},
|
29 |
"rope_theta": 1000000.0,
|
30 |
"sliding_window": 32768,
|
31 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
"torch_dtype": "bfloat16",
|
33 |
-
"transformers_version": "4.
|
34 |
"use_cache": false,
|
35 |
"use_sliding_window": false,
|
36 |
"video_token_id": 151656,
|
@@ -41,6 +80,7 @@
|
|
41 |
"hidden_size": 1536,
|
42 |
"in_channels": 3,
|
43 |
"in_chans": 3,
|
|
|
44 |
"mlp_ratio": 4,
|
45 |
"model_type": "qwen2_vl",
|
46 |
"num_heads": 16,
|
|
|
28 |
},
|
29 |
"rope_theta": 1000000.0,
|
30 |
"sliding_window": 32768,
|
31 |
+
"text_config": {
|
32 |
+
"architectures": [
|
33 |
+
"Qwen2VLForConditionalGeneration"
|
34 |
+
],
|
35 |
+
"attention_dropout": 0.0,
|
36 |
+
"bos_token_id": 151643,
|
37 |
+
"eos_token_id": 151645,
|
38 |
+
"hidden_act": "silu",
|
39 |
+
"hidden_size": 1536,
|
40 |
+
"image_token_id": null,
|
41 |
+
"initializer_range": 0.02,
|
42 |
+
"intermediate_size": 8960,
|
43 |
+
"max_position_embeddings": 32768,
|
44 |
+
"max_window_layers": 28,
|
45 |
+
"model_type": "qwen2_vl_text",
|
46 |
+
"num_attention_heads": 12,
|
47 |
+
"num_hidden_layers": 28,
|
48 |
+
"num_key_value_heads": 2,
|
49 |
+
"rms_norm_eps": 1e-06,
|
50 |
+
"rope_scaling": {
|
51 |
+
"mrope_section": [
|
52 |
+
16,
|
53 |
+
24,
|
54 |
+
24
|
55 |
+
],
|
56 |
+
"rope_type": "default",
|
57 |
+
"type": "default"
|
58 |
+
},
|
59 |
+
"rope_theta": 1000000.0,
|
60 |
+
"sliding_window": 32768,
|
61 |
+
"tie_word_embeddings": true,
|
62 |
+
"torch_dtype": "bfloat16",
|
63 |
+
"use_cache": true,
|
64 |
+
"use_sliding_window": false,
|
65 |
+
"video_token_id": null,
|
66 |
+
"vision_end_token_id": 151653,
|
67 |
+
"vision_start_token_id": 151652,
|
68 |
+
"vision_token_id": 151654,
|
69 |
+
"vocab_size": 151936
|
70 |
+
},
|
71 |
"torch_dtype": "bfloat16",
|
72 |
+
"transformers_version": "4.52.0.dev0",
|
73 |
"use_cache": false,
|
74 |
"use_sliding_window": false,
|
75 |
"video_token_id": 151656,
|
|
|
80 |
"hidden_size": 1536,
|
81 |
"in_channels": 3,
|
82 |
"in_chans": 3,
|
83 |
+
"initializer_range": 0.02,
|
84 |
"mlp_ratio": 4,
|
85 |
"model_type": "qwen2_vl",
|
86 |
"num_heads": 16,
|
model.safetensors
CHANGED
@@ -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:9c0c7fce3ba400af013e4670c12011c99ab74c7bddc9e876af24066d70dc6196
|
3 |
+
size 4418058264
|
tokenizer_config.json
CHANGED
@@ -130,7 +130,6 @@
|
|
130 |
"<|video_pad|>"
|
131 |
],
|
132 |
"bos_token": null,
|
133 |
-
"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 %}",
|
134 |
"clean_up_tokenization_spaces": false,
|
135 |
"eos_token": "<|im_end|>",
|
136 |
"errors": "replace",
|
|
|
130 |
"<|video_pad|>"
|
131 |
],
|
132 |
"bos_token": null,
|
|
|
133 |
"clean_up_tokenization_spaces": false,
|
134 |
"eos_token": "<|im_end|>",
|
135 |
"errors": "replace",
|
training_args.bin
CHANGED
@@ -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:71d2aa524033db36940d4515420743359f432553e4ae52f905b4200ba6ad6cd4
|
3 |
+
size 7096
|