Model save
Browse files- README.md +60 -0
- adapter_config.json +22 -0
- adapter_model.safetensors +3 -0
- added_tokens.json +6 -0
- config.json +104 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +21 -0
- tokenizer_config.json +52 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: TienAnh/stage3-moe-ft-llavaqwen1.5-0.5b-vista-5ep_moe_50k
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: MoE_LlaVa_Qwen1.5_0.5bx4Top2_ChartVQA
|
7 |
+
results: []
|
8 |
+
library_name: peft
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# MoE_LlaVa_Qwen1.5_0.5bx4Top2_ChartVQA
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [TienAnh/stage3-moe-ft-llavaqwen1.5-0.5b-vista-5ep_moe_50k](https://huggingface.co/TienAnh/stage3-moe-ft-llavaqwen1.5-0.5b-vista-5ep_moe_50k) on an unknown dataset.
|
17 |
+
|
18 |
+
## Model description
|
19 |
+
|
20 |
+
More information needed
|
21 |
+
|
22 |
+
## Intended uses & limitations
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Training and evaluation data
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training procedure
|
31 |
+
|
32 |
+
### Training hyperparameters
|
33 |
+
|
34 |
+
The following hyperparameters were used during training:
|
35 |
+
- learning_rate: 2e-06
|
36 |
+
- train_batch_size: 4
|
37 |
+
- eval_batch_size: 2
|
38 |
+
- seed: 42
|
39 |
+
- distributed_type: multi-GPU
|
40 |
+
- num_devices: 2
|
41 |
+
- gradient_accumulation_steps: 8
|
42 |
+
- total_train_batch_size: 64
|
43 |
+
- total_eval_batch_size: 4
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: cosine
|
46 |
+
- lr_scheduler_warmup_ratio: 0.03
|
47 |
+
- num_epochs: 6.0
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
### Framework versions
|
55 |
+
|
56 |
+
- PEFT 0.4.0
|
57 |
+
- Transformers 4.37.0
|
58 |
+
- Pytorch 2.0.1+cu117
|
59 |
+
- Datasets 3.0.0
|
60 |
+
- Tokenizers 0.15.1
|
adapter_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"auto_mapping": null,
|
3 |
+
"base_model_name_or_path": "TienAnh/stage3-moe-ft-llavaqwen1.5-0.5b-vista-5ep_moe_50k",
|
4 |
+
"bias": "none",
|
5 |
+
"fan_in_fan_out": false,
|
6 |
+
"inference_mode": true,
|
7 |
+
"init_lora_weights": true,
|
8 |
+
"layers_pattern": null,
|
9 |
+
"layers_to_transform": null,
|
10 |
+
"lora_alpha": 256,
|
11 |
+
"lora_dropout": 0.05,
|
12 |
+
"modules_to_save": null,
|
13 |
+
"peft_type": "LORA",
|
14 |
+
"r": 128,
|
15 |
+
"revision": null,
|
16 |
+
"target_modules": [
|
17 |
+
"up_proj",
|
18 |
+
"down_proj",
|
19 |
+
"gate_proj"
|
20 |
+
],
|
21 |
+
"task_type": "CAUSAL_LM"
|
22 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20ef0ac85cae562be269e12ea6a25cf9ef82a8e35cc31ae6d74503a24cccadce
|
3 |
+
size 353954520
|
added_tokens.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 151643,
|
3 |
+
"<|extra_0|>": 151646,
|
4 |
+
"<|im_end|>": 151645,
|
5 |
+
"<|im_start|>": 151644
|
6 |
+
}
|
config.json
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "TienAnh/stage3-moe-ft-llavaqwen1.5-0.5b-vista-5ep_moe_50k",
|
3 |
+
"architectures": [
|
4 |
+
"MoELLaVAQwen1_5ForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 151643,
|
8 |
+
"eos_token_id": 151643,
|
9 |
+
"freeze_mm_mlp_adapter": false,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 1024,
|
12 |
+
"image_aspect_ratio": "pad",
|
13 |
+
"image_projector_type": "mlp2x_gelu",
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 2816,
|
16 |
+
"lora": {
|
17 |
+
"lora_alpha": 256,
|
18 |
+
"lora_bias": "none",
|
19 |
+
"lora_dropout": 0.05,
|
20 |
+
"lora_enable": true,
|
21 |
+
"lora_r": 128,
|
22 |
+
"only_lora_ffn": true,
|
23 |
+
"target_modules": [
|
24 |
+
"up_proj",
|
25 |
+
"down_proj",
|
26 |
+
"gate_proj"
|
27 |
+
]
|
28 |
+
},
|
29 |
+
"max_position_embeddings": 32768,
|
30 |
+
"max_window_layers": 21,
|
31 |
+
"mm_hidden_size": 768,
|
32 |
+
"mm_image_tower": "google/siglip-base-patch16-256-multilingual",
|
33 |
+
"mm_projector_lr": 1.25e-06,
|
34 |
+
"mm_use_im_patch_token": false,
|
35 |
+
"mm_use_im_start_end": false,
|
36 |
+
"mm_video_tower": null,
|
37 |
+
"mm_vision_select_feature": "patch",
|
38 |
+
"mm_vision_select_layer": -2,
|
39 |
+
"model_type": "moe_llava_qwen1_5",
|
40 |
+
"moe": {
|
41 |
+
"capacity_factor": 1.5,
|
42 |
+
"ep_size": 1,
|
43 |
+
"eval_capacity_factor": 2.0,
|
44 |
+
"min_capacity": 0,
|
45 |
+
"moe_enable": true,
|
46 |
+
"moe_layers_idx": [
|
47 |
+
0,
|
48 |
+
2,
|
49 |
+
4,
|
50 |
+
6,
|
51 |
+
8,
|
52 |
+
10,
|
53 |
+
12,
|
54 |
+
14,
|
55 |
+
16,
|
56 |
+
18,
|
57 |
+
20,
|
58 |
+
22
|
59 |
+
],
|
60 |
+
"moe_mode": "sparse",
|
61 |
+
"num_experts": [
|
62 |
+
4,
|
63 |
+
4,
|
64 |
+
4,
|
65 |
+
4,
|
66 |
+
4,
|
67 |
+
4,
|
68 |
+
4,
|
69 |
+
4,
|
70 |
+
4,
|
71 |
+
4,
|
72 |
+
4,
|
73 |
+
4
|
74 |
+
],
|
75 |
+
"router_aux_loss_coef": 0.01,
|
76 |
+
"top_k_experts": 2,
|
77 |
+
"train_modules": [
|
78 |
+
"up_proj",
|
79 |
+
"down_proj",
|
80 |
+
"gate_proj"
|
81 |
+
],
|
82 |
+
"use_residual": false
|
83 |
+
},
|
84 |
+
"num_attention_heads": 16,
|
85 |
+
"num_hidden_layers": 24,
|
86 |
+
"num_key_value_heads": 16,
|
87 |
+
"pad_token_id": 151646,
|
88 |
+
"rms_norm_eps": 1e-06,
|
89 |
+
"rope_theta": 1000000.0,
|
90 |
+
"sliding_window": 32768,
|
91 |
+
"tie_word_embeddings": true,
|
92 |
+
"tokenizer_padding_side": "right",
|
93 |
+
"torch_dtype": "float16",
|
94 |
+
"transformers_version": "4.37.0",
|
95 |
+
"tune_mm_mlp_adapter": false,
|
96 |
+
"use_cache": true,
|
97 |
+
"use_mm_proj": true,
|
98 |
+
"use_sliding_window": false,
|
99 |
+
"video_global_proj": false,
|
100 |
+
"video_projector_type": "linear",
|
101 |
+
"video_spatial_proj": false,
|
102 |
+
"video_temproal_proj": false,
|
103 |
+
"vocab_size": 151646
|
104 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8f82fec038097f89df83ded458a4f9a62dffd0671daf79e5fab5afc527aeb5d
|
3 |
+
size 1917101397
|
special_tokens_map.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
+
"eos_token": {
|
7 |
+
"content": "<|endoftext|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"pad_token": "<|extra_0|>",
|
14 |
+
"unk_token": {
|
15 |
+
"content": "<|extra_0|>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
}
|
21 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
},
|
28 |
+
"151646": {
|
29 |
+
"content": "<|extra_0|>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false,
|
34 |
+
"special": true
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"additional_special_tokens": [
|
38 |
+
"<|im_start|>",
|
39 |
+
"<|im_end|>"
|
40 |
+
],
|
41 |
+
"bos_token": null,
|
42 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
43 |
+
"clean_up_tokenization_spaces": false,
|
44 |
+
"eos_token": "<|endoftext|>",
|
45 |
+
"errors": "replace",
|
46 |
+
"model_max_length": 1024,
|
47 |
+
"pad_token": "<|extra_0|>",
|
48 |
+
"padding_side": "right",
|
49 |
+
"split_special_tokens": false,
|
50 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
51 |
+
"unk_token": "<|extra_0|>"
|
52 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e057957197998dfdf08acc6dd3cc29daf81059123ce9e28a2d8ca7b49959fd55
|
3 |
+
size 5883
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|