mins
commited on
Commit
•
2db82e1
1
Parent(s):
818ec87
pretrain
Browse files- finetune-8b-llava-llama3-evabase640-petrv3/config.json +46 -0
- finetune-8b-llava-llama3-evabase640-petrv3/generation_config.json +8 -0
- finetune-8b-llava-llama3-evabase640-petrv3/model.safetensors +3 -0
- finetune-8b-llava-llama3-evabase640-petrv3/special_tokens_map.json +24 -0
- finetune-8b-llava-llama3-evabase640-petrv3/tokenizer.model +3 -0
- finetune-8b-llava-llama3-evabase640-petrv3/tokenizer_config.json +44 -0
- finetune-8b-llava-llama3-evabase640-petrv3/trainer_state.json +0 -0
- finetune-8b-llava-llama3-evabase640-petrv3/training_args.bin +3 -0
finetune-8b-llava-llama3-evabase640-petrv3/config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
|
3 |
+
"architectures": [
|
4 |
+
"LlavaLlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"freeze_mm_mlp_adapter": false,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 2048,
|
13 |
+
"image_aspect_ratio": "pad",
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 5632,
|
16 |
+
"max_position_embeddings": 2048,
|
17 |
+
"mlp_bias": false,
|
18 |
+
"mm_hidden_size": 768,
|
19 |
+
"mm_patch_merge_type": "flat",
|
20 |
+
"mm_projector_lr": 0.0004,
|
21 |
+
"mm_projector_query_number": 128,
|
22 |
+
"mm_projector_type": "petrv3",
|
23 |
+
"mm_use_im_patch_token": false,
|
24 |
+
"mm_use_im_start_end": false,
|
25 |
+
"mm_vision_select_feature": "patch",
|
26 |
+
"mm_vision_select_layer": -2,
|
27 |
+
"mm_vision_tower": "eva02-base",
|
28 |
+
"model_type": "llava_llama",
|
29 |
+
"num_attention_heads": 32,
|
30 |
+
"num_hidden_layers": 22,
|
31 |
+
"num_key_value_heads": 4,
|
32 |
+
"pad_token_id": 0,
|
33 |
+
"pretraining_tp": 1,
|
34 |
+
"rms_norm_eps": 1e-05,
|
35 |
+
"rope_scaling": null,
|
36 |
+
"rope_theta": 10000.0,
|
37 |
+
"tie_word_embeddings": false,
|
38 |
+
"tokenizer_model_max_length": 4096,
|
39 |
+
"tokenizer_padding_side": "right",
|
40 |
+
"torch_dtype": "bfloat16",
|
41 |
+
"transformers_version": "4.41.1",
|
42 |
+
"tune_mm_mlp_adapter": false,
|
43 |
+
"use_cache": true,
|
44 |
+
"use_mm_proj": true,
|
45 |
+
"vocab_size": 32000
|
46 |
+
}
|
finetune-8b-llava-llama3-evabase640-petrv3/generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"attn_implementation": "flash_attention_2",
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 2048,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"transformers_version": "4.41.1"
|
8 |
+
}
|
finetune-8b-llava-llama3-evabase640-petrv3/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af5f65817a0b1ed2f549a060a89f6719d8d27d41f35fb10453aa060832888e88
|
3 |
+
size 2395031336
|
finetune-8b-llava-llama3-evabase640-petrv3/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 |
+
}
|
finetune-8b-llava-llama3-evabase640-petrv3/tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
finetune-8b-llava-llama3-evabase640-petrv3/tokenizer_config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": true,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<unk>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": true
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": false,
|
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 |
+
}
|
finetune-8b-llava-llama3-evabase640-petrv3/trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
finetune-8b-llava-llama3-evabase640-petrv3/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1b63390698297da4f2aa64327c3531a374e08a51a9c0c1be467e6538582990e2
|
3 |
+
size 6840
|