alkahestry
commited on
Commit
•
0149221
1
Parent(s):
fc14a4e
Upload config files
Browse files- config.json +34 -0
- generation_config.json +7 -0
- special_tokens_map.json +6 -0
- tokenizer.model +3 -0
- tokenizer_config.json +90 -0
config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"InternLM2ForCausalLM"
|
4 |
+
],
|
5 |
+
"auto_map": {
|
6 |
+
"AutoConfig": "configuration_internlm.InternLMConfig",
|
7 |
+
"AutoModelForCausalLM": "modeling_internlm2.InternLM2ForCausalLM",
|
8 |
+
"AutoModel": "modeling_internlm2.InternLM2ForCausalLM"
|
9 |
+
},
|
10 |
+
"bias": false,
|
11 |
+
"bos_token_id": 1,
|
12 |
+
"eos_token_id": 2,
|
13 |
+
"hidden_act": "silu",
|
14 |
+
"hidden_size": 6144,
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 16384,
|
17 |
+
"max_position_embeddings": 32768,
|
18 |
+
"model_type": "internlm",
|
19 |
+
"num_attention_heads": 48,
|
20 |
+
"num_hidden_layers": 48,
|
21 |
+
"num_key_value_heads": 8,
|
22 |
+
"pad_token_id": 2,
|
23 |
+
"rms_norm_eps": 1e-05,
|
24 |
+
"rope_scaling": {
|
25 |
+
"factor": 3.0,
|
26 |
+
"type": "dynamic"
|
27 |
+
},
|
28 |
+
"rope_theta": 1000000,
|
29 |
+
"tie_word_embeddings": false,
|
30 |
+
"torch_dtype": "float16",
|
31 |
+
"transformers_version": "4.33.2",
|
32 |
+
"use_cache": true,
|
33 |
+
"vocab_size": 92544
|
34 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 2,
|
6 |
+
"transformers_version": "4.33.2"
|
7 |
+
}
|
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,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"auto_map": {
|
3 |
+
"AutoTokenizer": [
|
4 |
+
"tokenization_internlm.InternLMTokenizer",
|
5 |
+
null
|
6 |
+
]
|
7 |
+
},
|
8 |
+
"bos_token": "<s>",
|
9 |
+
"clean_up_tokenization_spaces": false,
|
10 |
+
"eos_token": "</s>",
|
11 |
+
"model_max_length": 1000000000000000019884624838656,
|
12 |
+
"pad_token": "</s>",
|
13 |
+
"tokenizer_class": "InternLMTokenizer",
|
14 |
+
"unk_token": "<unk>",
|
15 |
+
"added_tokens_decoder": {
|
16 |
+
"0": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false,
|
22 |
+
"special": true
|
23 |
+
},
|
24 |
+
"1": {
|
25 |
+
"content": "<s>",
|
26 |
+
"lstrip": false,
|
27 |
+
"normalized": false,
|
28 |
+
"rstrip": false,
|
29 |
+
"single_word": false,
|
30 |
+
"special": true
|
31 |
+
},
|
32 |
+
"2": {
|
33 |
+
"content": "</s>",
|
34 |
+
"lstrip": false,
|
35 |
+
"normalized": false,
|
36 |
+
"rstrip": false,
|
37 |
+
"single_word": false,
|
38 |
+
"special": true
|
39 |
+
},
|
40 |
+
"92543": {
|
41 |
+
"content": "<|im_start|>",
|
42 |
+
"lstrip": false,
|
43 |
+
"normalized": false,
|
44 |
+
"rstrip": false,
|
45 |
+
"single_word": false,
|
46 |
+
"special": true
|
47 |
+
},
|
48 |
+
"92542": {
|
49 |
+
"content": "<|im_end|>",
|
50 |
+
"lstrip": false,
|
51 |
+
"normalized": false,
|
52 |
+
"rstrip": false,
|
53 |
+
"single_word": false,
|
54 |
+
"special": true
|
55 |
+
},
|
56 |
+
"92541": {
|
57 |
+
"content": "<|action_start|>",
|
58 |
+
"lstrip": false,
|
59 |
+
"normalized": false,
|
60 |
+
"rstrip": false,
|
61 |
+
"single_word": false,
|
62 |
+
"special": true
|
63 |
+
},
|
64 |
+
"92540": {
|
65 |
+
"content": "<|action_end|>",
|
66 |
+
"lstrip": false,
|
67 |
+
"normalized": false,
|
68 |
+
"rstrip": false,
|
69 |
+
"single_word": false,
|
70 |
+
"special": true
|
71 |
+
},
|
72 |
+
"92539": {
|
73 |
+
"content": "<|interpreter|>",
|
74 |
+
"lstrip": false,
|
75 |
+
"normalized": false,
|
76 |
+
"rstrip": false,
|
77 |
+
"single_word": false,
|
78 |
+
"special": true
|
79 |
+
},
|
80 |
+
"92538": {
|
81 |
+
"content": "<|plugin|>",
|
82 |
+
"lstrip": false,
|
83 |
+
"normalized": false,
|
84 |
+
"rstrip": false,
|
85 |
+
"single_word": false,
|
86 |
+
"special": true
|
87 |
+
}
|
88 |
+
},
|
89 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
|
90 |
+
}
|