Upload 6 files
Browse files- config.json +40 -0
- generation_config.json +9 -0
- model.safetensors +3 -0
- special_tokens_map.json +6 -0
- tokenizer.model +3 -0
- tokenizer_config.json +36 -0
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/mnt/ssd/lbk-cvpr/checkpoints/models--internlm2-7b-New",
|
3 |
+
"architectures": [
|
4 |
+
"MeteorForCausalLM"
|
5 |
+
],
|
6 |
+
"attn_implementation": "flash_attention_2",
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "configuration_internlm2.InternLM2Config",
|
9 |
+
"AutoModelForCausalLM": "modeling_meteor.MeteorForCausalLM"
|
10 |
+
},
|
11 |
+
"bias": false,
|
12 |
+
"bos_token_id": 1,
|
13 |
+
"eos_token_id": 2,
|
14 |
+
"hidden_act": "silu",
|
15 |
+
"hidden_size": 4096,
|
16 |
+
"ignore_index": -100,
|
17 |
+
"image_token_index": 92544,
|
18 |
+
"img_size": 490,
|
19 |
+
"initializer_range": 0.02,
|
20 |
+
"intermediate_size": 14336,
|
21 |
+
"max_length": 4096,
|
22 |
+
"max_position_embeddings": 32768,
|
23 |
+
"model_type": "internlm",
|
24 |
+
"num_attention_heads": 32,
|
25 |
+
"num_hidden_layers": 32,
|
26 |
+
"num_key_value_heads": 8,
|
27 |
+
"pad_token_id": 2,
|
28 |
+
"rms_norm_eps": 1e-05,
|
29 |
+
"rope_scaling": {
|
30 |
+
"factor": 1.0,
|
31 |
+
"type": "dynamic"
|
32 |
+
},
|
33 |
+
"rope_theta": 1000000,
|
34 |
+
"tie_word_embeddings": false,
|
35 |
+
"tor_token_index": 92545,
|
36 |
+
"torch_dtype": "float16",
|
37 |
+
"transformers_version": "4.40.2",
|
38 |
+
"use_cache": false,
|
39 |
+
"vocab_size": 92546
|
40 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 1600,
|
6 |
+
"pad_token_id": 2,
|
7 |
+
"transformers_version": "4.40.2",
|
8 |
+
"use_cache": false
|
9 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:40ccde1f6869520f113ef4f1ae34c09d5694249e3d307bb65a3b42bcd67329a5
|
3 |
+
size 17333818144
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"pad_token": "</s>",
|
5 |
+
"unk_token": "<unk>"
|
6 |
+
}
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f868398fc4e05ee1e8aeba95ddf18ddcc45b8bce55d5093bead5bbf80429b48b
|
3 |
+
size 1477754
|
tokenizer_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"bos_token": "<s>",
|
29 |
+
"clean_up_tokenization_spaces": false,
|
30 |
+
"eos_token": "</s>",
|
31 |
+
"model_max_length": 1000000000000000019884624838656,
|
32 |
+
"pad_token": "</s>",
|
33 |
+
"padding_side": "right",
|
34 |
+
"tokenizer_class": "InternLM2Tokenizer",
|
35 |
+
"unk_token": "<unk>"
|
36 |
+
}
|