hf-transformers-bot commited on
Commit
7ed24fb
·
verified ·
1 Parent(s): 6b05872

Update tiny models for HunYuanVLTextModel

Browse files
chat_template.jinja ADDED
@@ -0,0 +1 @@
 
 
1
+ {% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% if messages[0]['content'] is string %}{% set system_message = messages[0]['content'] %}{% else %}{% set system_message = messages[0]['content']['text'] %}{% endif %}<|hy_begin▁of▁sentence|>{{ system_message }}<|hy_place▁holder▁no▁3|>{% else %}{% set loop_messages = messages %}<|hy_begin▁of▁sentence|>{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}<|hy_place▁holder▁no▁100|><|hy_place▁holder▁no▁102|><|hy_place▁holder▁no▁101|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}<|hy_User|>{% elif message['role'] == 'assistant' %}{{ message['content'] }}<|hy_Assistant|>{% endif %}{% endfor %}
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "HunYuanVLTextModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 120000,
8
+ "dtype": "float32",
9
+ "eod_token_id": 3,
10
+ "eos_token_id": 120007,
11
+ "head_dim": 16,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 64,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 128,
16
+ "max_position_embeddings": 200,
17
+ "model_type": "hunyuan_vl_text",
18
+ "num_attention_heads": 4,
19
+ "num_hidden_layers": 2,
20
+ "num_key_value_heads": 4,
21
+ "pad_token_id": 120002,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_parameters": {
25
+ "mrope_section": [
26
+ 2,
27
+ 2,
28
+ 2,
29
+ 2
30
+ ],
31
+ "rope_theta": 10000.0,
32
+ "rope_type": "default"
33
+ },
34
+ "sep_token_id": 4,
35
+ "tie_word_embeddings": false,
36
+ "transformers_version": "5.16.0.dev0",
37
+ "use_cache": true,
38
+ "vocab_size": 120818
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bffa97a7f7fe78e27d153f3c72fe21c342308fe68ef47af571040327a81f62e
3
+ size 31261080
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.48145466,
8
+ 0.4578275,
9
+ 0.40821073
10
+ ],
11
+ "image_processor_type": "HunYuanVLImageProcessor",
12
+ "image_std": [
13
+ 0.26862954,
14
+ 0.26130258,
15
+ 0.27577711
16
+ ],
17
+ "merge_size": 2,
18
+ "patch_size": 16,
19
+ "resample": 1,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "longest_edge": 16777216,
23
+ "shortest_edge": 262144
24
+ },
25
+ "temporal_patch_size": 1
26
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|hy_begin▁of▁sentence|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|hy_Assistant|>",
6
+ "image_end_token": "<|hy_place▁holder▁no▁101|>",
7
+ "image_start_token": "<|hy_place▁holder▁no▁100|>",
8
+ "image_token": "<|hy_place▁holder▁no▁102|>",
9
+ "is_local": true,
10
+ "local_files_only": false,
11
+ "model_max_length": 200,
12
+ "model_specific_special_tokens": {
13
+ "image_end_token": "<|hy_place▁holder▁no▁101|>",
14
+ "image_start_token": "<|hy_place▁holder▁no▁100|>",
15
+ "image_token": "<|hy_place▁holder▁no▁102|>",
16
+ "video_end_token": "<|hy_place▁holder▁no▁105|>",
17
+ "video_start_token": "<|hy_place▁holder▁no▁104|>",
18
+ "video_token": "<|hy_place▁holder▁no▁665|>"
19
+ },
20
+ "pad_token": "<|hy_▁pad▁|>",
21
+ "processor_class": "HunYuanVLProcessor",
22
+ "tokenizer_class": "TokenizersBackend",
23
+ "video_end_token": "<|hy_place▁holder▁no▁105|>",
24
+ "video_start_token": "<|hy_place▁holder▁no▁104|>",
25
+ "video_token": "<|hy_place▁holder▁no▁665|>"
26
+ }