Upload 9 files
Browse files- .gitattributes +1 -0
- Llama-2-7b-chat-hf_jit.bin +3 -0
- Llama-2-7b-chat-hf_jit.onnx +3 -0
- Llama-2-7b-chat-hf_jit.onnx.data +3 -0
- Llama-2-7b-chat-hf_jit.pb.bin +3 -0
- genai_config.json +55 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +44 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
Llama-2-7b-chat-hf_jit.onnx.data filter=lfs diff=lfs merge=lfs -text
|
Llama-2-7b-chat-hf_jit.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfa2d7c46c7b57e151220dc05c14fc991005b1f934ec363d5aed3d2e8a29bcd6
|
3 |
+
size 3606380544
|
Llama-2-7b-chat-hf_jit.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2155df60dfe64a172107885a77302d7edfa7d52c70a81e452866f1fc51940ca1
|
3 |
+
size 289225
|
Llama-2-7b-chat-hf_jit.onnx.data
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13e0462d7c977c7af54f63f5f4771ea1bfefc7f02a14dd83a78fff8d69efc3e5
|
3 |
+
size 3696308224
|
Llama-2-7b-chat-hf_jit.pb.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34280531798befbb52bfa266ebf0c7802c3e45c4259a3a937c407b1448aee723
|
3 |
+
size 7694
|
genai_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model": {
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"context_length": 4096,
|
5 |
+
"decoder": {
|
6 |
+
"session_options": {
|
7 |
+
"log_id": "onnxruntime-genai",
|
8 |
+
"custom_ops_library": "onnx_custom_ops.dll",
|
9 |
+
"custom_allocator": "shared_d3d_xrt",
|
10 |
+
"external_data_file": "Llama-2-7b-chat-hf_jit.pb.bin",
|
11 |
+
"provider_options": [
|
12 |
+
]
|
13 |
+
|
14 |
+
},
|
15 |
+
"filename": "Llama-2-7b-chat-hf_jit.onnx",
|
16 |
+
"head_size": 128,
|
17 |
+
"hidden_size": 4096,
|
18 |
+
"inputs": {
|
19 |
+
"input_ids": "input_ids",
|
20 |
+
"attention_mask": "attention_mask",
|
21 |
+
"position_ids": "position_ids",
|
22 |
+
"past_key_names": "past_key_values.%d.key",
|
23 |
+
"past_value_names": "past_key_values.%d.value"
|
24 |
+
},
|
25 |
+
"outputs": {
|
26 |
+
"logits": "logits",
|
27 |
+
"present_key_names": "present.%d.key",
|
28 |
+
"present_value_names": "present.%d.value"
|
29 |
+
},
|
30 |
+
"num_attention_heads": 32,
|
31 |
+
"num_hidden_layers": 32,
|
32 |
+
"num_key_value_heads": 32
|
33 |
+
},
|
34 |
+
"eos_token_id": 2,
|
35 |
+
"pad_token_id": 0,
|
36 |
+
"type": "llama",
|
37 |
+
"vocab_size": 32000
|
38 |
+
},
|
39 |
+
"search": {
|
40 |
+
"diversity_penalty": 0.0,
|
41 |
+
"do_sample": true,
|
42 |
+
"early_stopping": true,
|
43 |
+
"length_penalty": 1.0,
|
44 |
+
"max_length": 4096,
|
45 |
+
"min_length": 0,
|
46 |
+
"no_repeat_ngram_size": 0,
|
47 |
+
"num_beams": 1,
|
48 |
+
"num_return_sequences": 1,
|
49 |
+
"past_present_share_buffer": true,
|
50 |
+
"repetition_penalty": 1.0,
|
51 |
+
"temperature": 0.6,
|
52 |
+
"top_k": 1,
|
53 |
+
"top_p": 0.9
|
54 |
+
}
|
55 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
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": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": false,
|
36 |
+
"model_max_length": 512,
|
37 |
+
"pad_token": "</s>",
|
38 |
+
"padding_side": "left",
|
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 |
+
}
|