doberst commited on
Commit
b6c10f7
1 Parent(s): 10e9303

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +33 -3
  2. config.json +165 -0
README.md CHANGED
@@ -1,3 +1,33 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ inference: false
4
+ tags: [green, llmware-rag, p7, ov]
5
+ ---
6
+
7
+ # dragon-mistral-0.3-ov
8
+
9
+ **dragon-mistral-0.3-ov** is an OpenVino int4 quantized version of dragon-mistral-0.3, providing a fast inference implementation, optimized for AI PCs using Intel GPU, CPU and NPU.
10
+
11
+ [**dragon-mistral-0.3**](https://huggingface.co/llmware/dragon-mistral-0.3) is a very accurate, new fact-based question-answering model, optimized for complex business documents, based on the most recent Mistral open source release v0.3.
12
+
13
+
14
+ ### Model Description
15
+
16
+ - **Developed by:** llmware
17
+ - **Model type:** mistral-0.3
18
+ - **Parameters:** 7 billion
19
+ - **Model Parent:** llmware/dragon-mistral-0.3
20
+ - **Language(s) (NLP):** English
21
+ - **License:** Apache 2.0
22
+ - **Uses:** Fact-based question-answering
23
+ - **RAG Benchmark Accuracy Score:** 99.5
24
+ - **Quantization:** int4
25
+
26
+
27
+ ## Model Card Contact
28
+
29
+ [llmware on github](https://www.github.com/llmware-ai/llmware)
30
+
31
+ [llmware on hf](https://www.huggingface.co/llmware)
32
+
33
+ [llmware website](https://www.llmware.ai)
config.json ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "llmware/dragon-mistral-0.3",
3
+ "architectures": [
4
+ "MistralForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 4096,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 14336,
14
+ "max_position_embeddings": 32768,
15
+ "model_type": "mistral",
16
+ "num_attention_heads": 32,
17
+ "num_hidden_layers": 32,
18
+ "num_key_value_heads": 8,
19
+ "rms_norm_eps": 1e-05,
20
+ "rope_theta": 1000000.0,
21
+ "sliding_window": null,
22
+ "tie_word_embeddings": false,
23
+ "transformers_version": "4.43.4",
24
+ "use_cache": true,
25
+ "vocab_size": 32768,
26
+ "prompt_wrapper": "human_bot",
27
+ "prompt_format": "<human> {context_passage} \n {question} \n<bot>:",
28
+ "prompt_format_dict": {"main_start": "<human>: ", "main_stop": "\n", "start_llm_response": "<bot>:"},
29
+ "tokenizer_local": "tokenizer_mistral.json",
30
+ "tokenizer_config": {"bos_id":[1], "bos_token":["<s>"], "eos_id":[2],"eos_token":["</s>"]},
31
+ "model_parent": "llmware/dragon-mistral-0.3",
32
+ "description": "Fact-based question-answering model from llmware - finetuned on mistral 0.3 - 7b parameter base",
33
+ "quantization": "int4",
34
+ "model_family": "OVGenerativeModel",
35
+ "parameters": 7.0,
36
+ "test_set": [
37
+ {
38
+ "query": "What is the total amount of the invoice?",
39
+ "answer": "$22,500.00",
40
+ "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",
41
+ "sample_number": 0,
42
+ "tokens": 138,
43
+ "category": "core"
44
+ },
45
+ {
46
+ "query": "What is the invoice number?",
47
+ "answer": "#0001",
48
+ "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",
49
+ "sample_number": 1,
50
+ "tokens": 138,
51
+ "category": "core"
52
+ },
53
+ {
54
+ "query": "What is a list of the items being purchased?",
55
+ "answer": "•Front End Engineering Service;\n•Back End Engineering Service;\n•Quality Assurance Manager",
56
+ "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",
57
+ "sample_number": 2,
58
+ "tokens": 138,
59
+ "category": "core"
60
+ },
61
+ {
62
+ "query": "What is the name of the contact for question?",
63
+ "answer": "Bia Hermes",
64
+ "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",
65
+ "sample_number": 3,
66
+ "tokens": 138,
67
+ "category": "core"
68
+ },
69
+ {
70
+ "query": "What is the PO number?",
71
+ "answer": "#1000",
72
+ "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",
73
+ "sample_number": 4,
74
+ "tokens": 138,
75
+ "category": "core"
76
+ },
77
+ {
78
+ "query": "When is payment due?",
79
+ "answer": "within 30 days of 01/01/2022",
80
+ "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",
81
+ "sample_number": 5,
82
+ "tokens": 138,
83
+ "category": "core"
84
+ },
85
+ {
86
+ "query": "When is payment due?",
87
+ "answer": "May 3, 2022",
88
+ "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",
89
+ "sample_number": 6,
90
+ "tokens": 139,
91
+ "category": "core"
92
+ },
93
+ {
94
+ "query": "What is the subtotal amount?",
95
+ "answer": "4150.00",
96
+ "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",
97
+ "sample_number": 7,
98
+ "tokens": 139,
99
+ "category": "core"
100
+ },
101
+ {
102
+ "query": "What is the total amount?",
103
+ "answer": "4565.00",
104
+ "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",
105
+ "sample_number": 8,
106
+ "tokens": 139,
107
+ "category": "core"
108
+ },
109
+ {
110
+ "query": "What is a list of the purchased items?",
111
+ "answer": "•30 Boxes of Printer Paper;\n•10 Printer Cartridges;\n•5 Laser Printers.",
112
+ "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",
113
+ "sample_number": 9,
114
+ "tokens": 139,
115
+ "category": "core"
116
+ },
117
+ {
118
+ "query": "What is the invoice number?",
119
+ "answer": "234",
120
+ "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",
121
+ "sample_number": 10,
122
+ "tokens": 139,
123
+ "category": "core"
124
+ },
125
+ {
126
+ "query": "What is the name of the two companies?",
127
+ "answer": "ABC Company and Delta Inc.",
128
+ "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",
129
+ "sample_number": 11,
130
+ "tokens": 139,
131
+ "category": "core"
132
+ },
133
+ {
134
+ "query": "How many boxes of paper are being purchased?",
135
+ "answer": "30",
136
+ "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",
137
+ "sample_number": 12,
138
+ "tokens": 139,
139
+ "category": "core"
140
+ },
141
+ {
142
+ "query": "What are the payment terms?",
143
+ "answer": "Due on Receipt",
144
+ "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",
145
+ "sample_number": 13,
146
+ "tokens": 139,
147
+ "category": "core"
148
+ },
149
+ {
150
+ "query": "What is the address of ABC Company?",
151
+ "answer": "8675 River Run Road, Marlington, CT 09392",
152
+ "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",
153
+ "sample_number": 14,
154
+ "tokens": 139,
155
+ "category": "core"
156
+ },
157
+ {
158
+ "query": "What is the date of the invoice?",
159
+ "answer": "March 3, 2022",
160
+ "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",
161
+ "sample_number": 15,
162
+ "tokens": 139,
163
+ "category": "core"
164
+ }]
165
+ }