Upload 2 files
Browse files- README.md +35 -3
- config.json +169 -29
README.md
CHANGED
@@ -1,3 +1,35 @@
|
|
1 |
-
---
|
2 |
-
license: llama2
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama2
|
3 |
+
inference: false
|
4 |
+
tags: [green, llmware-chat, p7, ov, emerald]
|
5 |
+
---
|
6 |
+
|
7 |
+
# llama-2-chat-ov
|
8 |
+
|
9 |
+
**llama-2-chat-ov** is an OpenVino int4 quantized version of Llama-2-Chat, providing a fast inference implementation, optimized for AI PCs using Intel GPU, CPU and NPU.
|
10 |
+
|
11 |
+
[**llama-2-chat**](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) is the official chat finetuned version of Llama2, and is one of the classic and best all-around chat models from 2023.
|
12 |
+
|
13 |
+
|
14 |
+
### Model Description
|
15 |
+
|
16 |
+
- **Developed by:** meta-llama
|
17 |
+
- **Quantified by:** llmware
|
18 |
+
- **Model type:** llama2
|
19 |
+
- **Parameters:** 7 billion
|
20 |
+
- **Model Parent:** meta-llama/Llama-2-7b-chat-hf
|
21 |
+
- **Language(s) (NLP):** English
|
22 |
+
- **License:** LLama2 Community License
|
23 |
+
- **Uses:** Chat and general purpose LLM
|
24 |
+
- **RAG Benchmark Accuracy Score:** NA
|
25 |
+
- **Quantization:** int4
|
26 |
+
|
27 |
+
|
28 |
+
## Model Card Contact
|
29 |
+
|
30 |
+
[llmware on github](https://www.github.com/llmware-ai/llmware)
|
31 |
+
|
32 |
+
[llmware on hf](https://www.huggingface.co/llmware)
|
33 |
+
|
34 |
+
[llmware website](https://www.llmware.ai)
|
35 |
+
|
config.json
CHANGED
@@ -1,29 +1,169 @@
|
|
1 |
-
{
|
2 |
-
"_name_or_path": "
|
3 |
-
"architectures": [
|
4 |
-
"LlamaForCausalLM"
|
5 |
-
],
|
6 |
-
"attention_bias": false,
|
7 |
-
"attention_dropout": 0.0,
|
8 |
-
"bos_token_id": 1,
|
9 |
-
"eos_token_id": 2,
|
10 |
-
"hidden_act": "silu",
|
11 |
-
"hidden_size":
|
12 |
-
"initializer_range": 0.02,
|
13 |
-
"intermediate_size":
|
14 |
-
"max_position_embeddings": 4096,
|
15 |
-
"mlp_bias": false,
|
16 |
-
"model_type": "llama",
|
17 |
-
"num_attention_heads":
|
18 |
-
"num_hidden_layers":
|
19 |
-
"num_key_value_heads":
|
20 |
-
"pretraining_tp": 1,
|
21 |
-
"rms_norm_eps": 1e-05,
|
22 |
-
"rope_scaling": null,
|
23 |
-
"rope_theta": 10000.0,
|
24 |
-
"tie_word_embeddings": false,
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "llmware/llama-2-chat-ov",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"bos_token_id": 1,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 4096,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 11008,
|
14 |
+
"max_position_embeddings": 4096,
|
15 |
+
"mlp_bias": false,
|
16 |
+
"model_type": "llama",
|
17 |
+
"num_attention_heads": 32,
|
18 |
+
"num_hidden_layers": 32,
|
19 |
+
"num_key_value_heads": 32,
|
20 |
+
"pretraining_tp": 1,
|
21 |
+
"rms_norm_eps": 1e-05,
|
22 |
+
"rope_scaling": null,
|
23 |
+
"rope_theta": 10000.0,
|
24 |
+
"tie_word_embeddings": false,
|
25 |
+
"transformers_version": "4.41.2",
|
26 |
+
"use_cache": true,
|
27 |
+
"vocab_size": 32000,
|
28 |
+
"prompt_wrapper": "<INST>",
|
29 |
+
"prompt_format": "<INST>{context_passage}\n{question}\n</INST>",
|
30 |
+
"prompt_format_dict": {"main_start": "<INST>", "main_stop": "</INST>", "start_llm_response": ""},
|
31 |
+
"tokenizer_local": "tokenizer_ll2.json",
|
32 |
+
"tokenizer_config": {"bos_id": [1], "bos_token": ["<s>"], "eod_id": [2], "eos_token": ["</s>"]},
|
33 |
+
"model_parent": "meta-llama/llama-2-chat",
|
34 |
+
"description": "Meta Llama-2-Chat - 7B",
|
35 |
+
"quantization": "int4",
|
36 |
+
"context_window": 4096,
|
37 |
+
"model_family": "OVGenerativeModel",
|
38 |
+
"parameters": 7.0,
|
39 |
+
"test_set": [
|
40 |
+
{
|
41 |
+
"query": "What is the total amount of the invoice?",
|
42 |
+
"answer": "$22,500.00",
|
43 |
+
"context": "Services Vendor Inc. \n100 Elm Street Pleasantville, NY \nTO Alpha Inc. 5900 1st Street Los Angeles, CA \nDescription Front End Engineering Service $5000.00 \n Back End Engineering Service $7500.00 \n Quality Assurance Manager $10,000.00 \n Total Amount $22,500.00 \nMake all checks payable to Services Vendor Inc. Payment is due within 30 days.If you have any questions concerning this invoice, contact Bia Hermes. THANK YOU FOR YOUR BUSINESS! INVOICE INVOICE # 0001 DATE 01/01/2022 FOR Alpha Project P.O. # 1000",
|
44 |
+
"sample_number": 0,
|
45 |
+
"tokens": 138,
|
46 |
+
"category": "core"
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"query": "What is the invoice number?",
|
50 |
+
"answer": "#0001",
|
51 |
+
"context": "Services Vendor Inc. \n100 Elm Street Pleasantville, NY \nTO Alpha Inc. 5900 1st Street Los Angeles, CA \nDescription Front End Engineering Service $5000.00 \n Back End Engineering Service $7500.00 \n Quality Assurance Manager $10,000.00 \n Total Amount $22,500.00 \nMake all checks payable to Services Vendor Inc. Payment is due within 30 days.If you have any questions concerning this invoice, contact Bia Hermes. THANK YOU FOR YOUR BUSINESS! INVOICE INVOICE # 0001 DATE 01/01/2022 FOR Alpha Project P.O. # 1000",
|
52 |
+
"sample_number": 1,
|
53 |
+
"tokens": 138,
|
54 |
+
"category": "core"
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"query": "What is a list of the items being purchased?",
|
58 |
+
"answer": "•Front End Engineering Service;\n•Back End Engineering Service;\n•Quality Assurance Manager",
|
59 |
+
"context": "Services Vendor Inc. \n100 Elm Street Pleasantville, NY \nTO Alpha Inc. 5900 1st Street Los Angeles, CA \nDescription Front End Engineering Service $5000.00 \n Back End Engineering Service $7500.00 \n Quality Assurance Manager $10,000.00 \n Total Amount $22,500.00 \nMake all checks payable to Services Vendor Inc. Payment is due within 30 days.If you have any questions concerning this invoice, contact Bia Hermes. THANK YOU FOR YOUR BUSINESS! INVOICE INVOICE # 0001 DATE 01/01/2022 FOR Alpha Project P.O. # 1000",
|
60 |
+
"sample_number": 2,
|
61 |
+
"tokens": 138,
|
62 |
+
"category": "core"
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"query": "What is the name of the contact for question?",
|
66 |
+
"answer": "Bia Hermes",
|
67 |
+
"context": "Services Vendor Inc. \n100 Elm Street Pleasantville, NY \nTO Alpha Inc. 5900 1st Street Los Angeles, CA \nDescription Front End Engineering Service $5000.00 \n Back End Engineering Service $7500.00 \n Quality Assurance Manager $10,000.00 \n Total Amount $22,500.00 \nMake all checks payable to Services Vendor Inc. Payment is due within 30 days.If you have any questions concerning this invoice, contact Bia Hermes. THANK YOU FOR YOUR BUSINESS! INVOICE INVOICE # 0001 DATE 01/01/2022 FOR Alpha Project P.O. # 1000",
|
68 |
+
"sample_number": 3,
|
69 |
+
"tokens": 138,
|
70 |
+
"category": "core"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"query": "What is the PO number?",
|
74 |
+
"answer": "#1000",
|
75 |
+
"context": "Services Vendor Inc. \n100 Elm Street Pleasantville, NY \nTO Alpha Inc. 5900 1st Street Los Angeles, CA \nDescription Front End Engineering Service $5000.00 \n Back End Engineering Service $7500.00 \n Quality Assurance Manager $10,000.00 \n Total Amount $22,500.00 \nMake all checks payable to Services Vendor Inc. Payment is due within 30 days.If you have any questions concerning this invoice, contact Bia Hermes. THANK YOU FOR YOUR BUSINESS! INVOICE INVOICE # 0001 DATE 01/01/2022 FOR Alpha Project P.O. # 1000",
|
76 |
+
"sample_number": 4,
|
77 |
+
"tokens": 138,
|
78 |
+
"category": "core"
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"query": "When is payment due?",
|
82 |
+
"answer": "within 30 days of 01/01/2022",
|
83 |
+
"context": "Services Vendor Inc. \n100 Elm Street Pleasantville, NY \nTO Alpha Inc. 5900 1st Street Los Angeles, CA \nDescription Front End Engineering Service $5000.00 \n Back End Engineering Service $7500.00 \n Quality Assurance Manager $10,000.00 \n Total Amount $22,500.00 \nMake all checks payable to Services Vendor Inc. Payment is due within 30 days.If you have any questions concerning this invoice, contact Bia Hermes. THANK YOU FOR YOUR BUSINESS! INVOICE INVOICE # 0001 DATE 01/01/2022 FOR Alpha Project P.O. # 1000",
|
84 |
+
"sample_number": 5,
|
85 |
+
"tokens": 138,
|
86 |
+
"category": "core"
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"query": "When is payment due?",
|
90 |
+
"answer": "May 3, 2022",
|
91 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
92 |
+
"sample_number": 6,
|
93 |
+
"tokens": 139,
|
94 |
+
"category": "core"
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"query": "What is the subtotal amount?",
|
98 |
+
"answer": "4150.00",
|
99 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
100 |
+
"sample_number": 7,
|
101 |
+
"tokens": 139,
|
102 |
+
"category": "core"
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"query": "What is the total amount?",
|
106 |
+
"answer": "4565.00",
|
107 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
108 |
+
"sample_number": 8,
|
109 |
+
"tokens": 139,
|
110 |
+
"category": "core"
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"query": "What is a list of the purchased items?",
|
114 |
+
"answer": "•30 Boxes of Printer Paper;\n•10 Printer Cartridges;\n•5 Laser Printers.",
|
115 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
116 |
+
"sample_number": 9,
|
117 |
+
"tokens": 139,
|
118 |
+
"category": "core"
|
119 |
+
},
|
120 |
+
{
|
121 |
+
"query": "What is the invoice number?",
|
122 |
+
"answer": "234",
|
123 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
124 |
+
"sample_number": 10,
|
125 |
+
"tokens": 139,
|
126 |
+
"category": "core"
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"query": "What is the name of the two companies?",
|
130 |
+
"answer": "ABC Company and Delta Inc.",
|
131 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
132 |
+
"sample_number": 11,
|
133 |
+
"tokens": 139,
|
134 |
+
"category": "core"
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"query": "How many boxes of paper are being purchased?",
|
138 |
+
"answer": "30",
|
139 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
140 |
+
"sample_number": 12,
|
141 |
+
"tokens": 139,
|
142 |
+
"category": "core"
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"query": "What are the payment terms?",
|
146 |
+
"answer": "Due on Receipt",
|
147 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
148 |
+
"sample_number": 13,
|
149 |
+
"tokens": 139,
|
150 |
+
"category": "core"
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"query": "What is the address of ABC Company?",
|
154 |
+
"answer": "8675 River Run Road, Marlington, CT 09392",
|
155 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
156 |
+
"sample_number": 14,
|
157 |
+
"tokens": 139,
|
158 |
+
"category": "core"
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"query": "What is the date of the invoice?",
|
162 |
+
"answer": "March 3, 2022",
|
163 |
+
"context": "Invoice DATE March 3, 2022\tINVOICE NO 234\tABC Company 8675 River Run Road Marlington, CT 09392 INVOICE TO Delta Inc. 8723 Wilton Boulevard Los Angeles, CA HEBE HERACLES\tLASER PRINTER\tPAYMENT TERMS DUE DATE Due on Receipt May 3, 2022 QUANTITY DESCRIPTION UNIT PRICE LINE TOTAL 30 \tBoxes of Printer Paper\t$30\t$900 10\tPrinter Cartridges\t$75 $750 5\tLaser printers\t$500.00 $2500.00 Subtotal 4150.00 Sales Tax 10% Total 4565.00",
|
164 |
+
"sample_number": 15,
|
165 |
+
"tokens": 139,
|
166 |
+
"category": "core"
|
167 |
+
}]
|
168 |
+
}
|
169 |
+
|