jiachenli
commited on
Commit
•
81b8050
1
Parent(s):
9a2815a
add json
Browse files- config.json +55 -0
- generation_config.json +7 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +24 -0
- tokenizer_config.json +44 -0
- trainer_state.json +0 -0
config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/mnt/bn/icvg-editing-llm-xinyao/jiachenli/checkpoints/final/llava-mistral-7b-3x-HD-pft",
|
3 |
+
"architectures": [
|
4 |
+
"LlavaMistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"balance_loss_coef": 0.1,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"clip_smoe": true,
|
10 |
+
"dropout": false,
|
11 |
+
"eos_token_id": 2,
|
12 |
+
"freeze_mm_mlp_adapter": false,
|
13 |
+
"hidden_act": "silu",
|
14 |
+
"hidden_size": 4096,
|
15 |
+
"image_aspect_ratio": "pad",
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 14336,
|
18 |
+
"local_rank": 0,
|
19 |
+
"max_position_embeddings": 32768,
|
20 |
+
"mlp_smoe": true,
|
21 |
+
"mm_hidden_size": 1024,
|
22 |
+
"mm_patch_merge_type": "flat",
|
23 |
+
"mm_projector_lr": null,
|
24 |
+
"mm_projector_type": "smoe_mlp",
|
25 |
+
"mm_use_im_patch_token": false,
|
26 |
+
"mm_use_im_start_end": false,
|
27 |
+
"mm_vision_select_feature": "patch",
|
28 |
+
"mm_vision_select_layer": -2,
|
29 |
+
"mm_vision_tower": "openai/clip-vit-large-patch14-336",
|
30 |
+
"model_type": "llava_mistral",
|
31 |
+
"num_attention_heads": 32,
|
32 |
+
"num_experts": 4,
|
33 |
+
"num_hidden_layers": 32,
|
34 |
+
"num_key_value_heads": 8,
|
35 |
+
"num_layers": 3,
|
36 |
+
"num_selected": 2,
|
37 |
+
"rms_norm_eps": 1e-05,
|
38 |
+
"rope_theta": 1000000.0,
|
39 |
+
"router_z_loss_coef": 0.01,
|
40 |
+
"scales": [
|
41 |
+
1,
|
42 |
+
3
|
43 |
+
],
|
44 |
+
"sliding_window": null,
|
45 |
+
"tie_word_embeddings": false,
|
46 |
+
"tokenizer_model_max_length": 4096,
|
47 |
+
"tokenizer_padding_side": "right",
|
48 |
+
"torch_dtype": "bfloat16",
|
49 |
+
"training": true,
|
50 |
+
"transformers_version": "4.37.2",
|
51 |
+
"tune_mm_mlp_adapter": false,
|
52 |
+
"use_cache": true,
|
53 |
+
"use_mm_proj": true,
|
54 |
+
"vocab_size": 32000
|
55 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"do_sample": true,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"transformers_version": "4.37.2"
|
7 |
+
}
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "<unk>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"additional_special_tokens": [],
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"model_max_length": 4096,
|
37 |
+
"pad_token": "<unk>",
|
38 |
+
"padding_side": "right",
|
39 |
+
"sp_model_kwargs": {},
|
40 |
+
"spaces_between_special_tokens": false,
|
41 |
+
"tokenizer_class": "LlamaTokenizer",
|
42 |
+
"unk_token": "<unk>",
|
43 |
+
"use_default_system_prompt": false
|
44 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|