jinjieyuan
commited on
Commit
•
49ffd33
1
Parent(s):
48b20cc
Upload folder using huggingface_hub
Browse files- config.json +2 -1
- generation_config.json +1 -1
- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
- tokenizer_config.json +14 -14
config.json
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
"architectures": [
|
4 |
"Phi3ForCausalLM"
|
5 |
],
|
|
|
6 |
"attention_dropout": 0.0,
|
7 |
"auto_map": {
|
8 |
"AutoConfig": "microsoft/Phi-3-mini-4k-instruct--configuration_phi3.Phi3Config",
|
@@ -29,7 +30,7 @@
|
|
29 |
"sliding_window": 2047,
|
30 |
"tie_word_embeddings": false,
|
31 |
"torch_dtype": "float16",
|
32 |
-
"transformers_version": "4.
|
33 |
"use_cache": true,
|
34 |
"vocab_size": 32064
|
35 |
}
|
|
|
3 |
"architectures": [
|
4 |
"Phi3ForCausalLM"
|
5 |
],
|
6 |
+
"attention_bias": false,
|
7 |
"attention_dropout": 0.0,
|
8 |
"auto_map": {
|
9 |
"AutoConfig": "microsoft/Phi-3-mini-4k-instruct--configuration_phi3.Phi3Config",
|
|
|
30 |
"sliding_window": 2047,
|
31 |
"tie_word_embeddings": false,
|
32 |
"torch_dtype": "float16",
|
33 |
+
"transformers_version": "4.44.2",
|
34 |
"use_cache": true,
|
35 |
"vocab_size": 32064
|
36 |
}
|
generation_config.json
CHANGED
@@ -7,5 +7,5 @@
|
|
7 |
32007
|
8 |
],
|
9 |
"pad_token_id": 32000,
|
10 |
-
"transformers_version": "4.
|
11 |
}
|
|
|
7 |
32007
|
8 |
],
|
9 |
"pad_token_id": 32000,
|
10 |
+
"transformers_version": "4.44.2"
|
11 |
}
|
model-00001-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4972489200
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b298cbe43f4e0395cc6849454214e18d49eb09a371eb0ee77ae8ec80c9bd7f9
|
3 |
size 4972489200
|
model-00002-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 2669692488
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e6815a0ef8f0f0f18dde55d0118e49cf1d9f3f463d3170dccc6117b7a1aaf308
|
3 |
size 2669692488
|
tokenizer_config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"add_bos_token":
|
3 |
"add_eos_token": false,
|
4 |
"add_prefix_space": true,
|
5 |
"added_tokens_decoder": {
|
@@ -23,9 +23,9 @@
|
|
23 |
"content": "</s>",
|
24 |
"lstrip": false,
|
25 |
"normalized": false,
|
26 |
-
"rstrip":
|
27 |
"single_word": false,
|
28 |
-
"special":
|
29 |
},
|
30 |
"32000": {
|
31 |
"content": "<|endoftext|>",
|
@@ -39,7 +39,7 @@
|
|
39 |
"content": "<|assistant|>",
|
40 |
"lstrip": false,
|
41 |
"normalized": false,
|
42 |
-
"rstrip":
|
43 |
"single_word": false,
|
44 |
"special": true
|
45 |
},
|
@@ -47,7 +47,7 @@
|
|
47 |
"content": "<|placeholder1|>",
|
48 |
"lstrip": false,
|
49 |
"normalized": false,
|
50 |
-
"rstrip":
|
51 |
"single_word": false,
|
52 |
"special": true
|
53 |
},
|
@@ -55,7 +55,7 @@
|
|
55 |
"content": "<|placeholder2|>",
|
56 |
"lstrip": false,
|
57 |
"normalized": false,
|
58 |
-
"rstrip":
|
59 |
"single_word": false,
|
60 |
"special": true
|
61 |
},
|
@@ -63,7 +63,7 @@
|
|
63 |
"content": "<|placeholder3|>",
|
64 |
"lstrip": false,
|
65 |
"normalized": false,
|
66 |
-
"rstrip":
|
67 |
"single_word": false,
|
68 |
"special": true
|
69 |
},
|
@@ -71,7 +71,7 @@
|
|
71 |
"content": "<|placeholder4|>",
|
72 |
"lstrip": false,
|
73 |
"normalized": false,
|
74 |
-
"rstrip":
|
75 |
"single_word": false,
|
76 |
"special": true
|
77 |
},
|
@@ -79,7 +79,7 @@
|
|
79 |
"content": "<|system|>",
|
80 |
"lstrip": false,
|
81 |
"normalized": false,
|
82 |
-
"rstrip":
|
83 |
"single_word": false,
|
84 |
"special": true
|
85 |
},
|
@@ -87,7 +87,7 @@
|
|
87 |
"content": "<|end|>",
|
88 |
"lstrip": false,
|
89 |
"normalized": false,
|
90 |
-
"rstrip":
|
91 |
"single_word": false,
|
92 |
"special": true
|
93 |
},
|
@@ -95,7 +95,7 @@
|
|
95 |
"content": "<|placeholder5|>",
|
96 |
"lstrip": false,
|
97 |
"normalized": false,
|
98 |
-
"rstrip":
|
99 |
"single_word": false,
|
100 |
"special": true
|
101 |
},
|
@@ -103,7 +103,7 @@
|
|
103 |
"content": "<|placeholder6|>",
|
104 |
"lstrip": false,
|
105 |
"normalized": false,
|
106 |
-
"rstrip":
|
107 |
"single_word": false,
|
108 |
"special": true
|
109 |
},
|
@@ -111,13 +111,13 @@
|
|
111 |
"content": "<|user|>",
|
112 |
"lstrip": false,
|
113 |
"normalized": false,
|
114 |
-
"rstrip":
|
115 |
"single_word": false,
|
116 |
"special": true
|
117 |
}
|
118 |
},
|
119 |
"bos_token": "<s>",
|
120 |
-
"chat_template": "{
|
121 |
"clean_up_tokenization_spaces": false,
|
122 |
"eos_token": "<|endoftext|>",
|
123 |
"legacy": false,
|
|
|
1 |
{
|
2 |
+
"add_bos_token": false,
|
3 |
"add_eos_token": false,
|
4 |
"add_prefix_space": true,
|
5 |
"added_tokens_decoder": {
|
|
|
23 |
"content": "</s>",
|
24 |
"lstrip": false,
|
25 |
"normalized": false,
|
26 |
+
"rstrip": true,
|
27 |
"single_word": false,
|
28 |
+
"special": false
|
29 |
},
|
30 |
"32000": {
|
31 |
"content": "<|endoftext|>",
|
|
|
39 |
"content": "<|assistant|>",
|
40 |
"lstrip": false,
|
41 |
"normalized": false,
|
42 |
+
"rstrip": true,
|
43 |
"single_word": false,
|
44 |
"special": true
|
45 |
},
|
|
|
47 |
"content": "<|placeholder1|>",
|
48 |
"lstrip": false,
|
49 |
"normalized": false,
|
50 |
+
"rstrip": true,
|
51 |
"single_word": false,
|
52 |
"special": true
|
53 |
},
|
|
|
55 |
"content": "<|placeholder2|>",
|
56 |
"lstrip": false,
|
57 |
"normalized": false,
|
58 |
+
"rstrip": true,
|
59 |
"single_word": false,
|
60 |
"special": true
|
61 |
},
|
|
|
63 |
"content": "<|placeholder3|>",
|
64 |
"lstrip": false,
|
65 |
"normalized": false,
|
66 |
+
"rstrip": true,
|
67 |
"single_word": false,
|
68 |
"special": true
|
69 |
},
|
|
|
71 |
"content": "<|placeholder4|>",
|
72 |
"lstrip": false,
|
73 |
"normalized": false,
|
74 |
+
"rstrip": true,
|
75 |
"single_word": false,
|
76 |
"special": true
|
77 |
},
|
|
|
79 |
"content": "<|system|>",
|
80 |
"lstrip": false,
|
81 |
"normalized": false,
|
82 |
+
"rstrip": true,
|
83 |
"single_word": false,
|
84 |
"special": true
|
85 |
},
|
|
|
87 |
"content": "<|end|>",
|
88 |
"lstrip": false,
|
89 |
"normalized": false,
|
90 |
+
"rstrip": true,
|
91 |
"single_word": false,
|
92 |
"special": true
|
93 |
},
|
|
|
95 |
"content": "<|placeholder5|>",
|
96 |
"lstrip": false,
|
97 |
"normalized": false,
|
98 |
+
"rstrip": true,
|
99 |
"single_word": false,
|
100 |
"special": true
|
101 |
},
|
|
|
103 |
"content": "<|placeholder6|>",
|
104 |
"lstrip": false,
|
105 |
"normalized": false,
|
106 |
+
"rstrip": true,
|
107 |
"single_word": false,
|
108 |
"special": true
|
109 |
},
|
|
|
111 |
"content": "<|user|>",
|
112 |
"lstrip": false,
|
113 |
"normalized": false,
|
114 |
+
"rstrip": true,
|
115 |
"single_word": false,
|
116 |
"special": true
|
117 |
}
|
118 |
},
|
119 |
"bos_token": "<s>",
|
120 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'system' %}{{'<|system|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'user' %}{{'<|user|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'assistant' %}{{'<|assistant|>\n' + message['content'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% else %}{{ eos_token }}{% endif %}",
|
121 |
"clean_up_tokenization_spaces": false,
|
122 |
"eos_token": "<|endoftext|>",
|
123 |
"legacy": false,
|