Update config.json
Browse files- config.json +109 -35
config.json
CHANGED
@@ -1,35 +1,109 @@
|
|
1 |
-
{
|
2 |
-
"_name_or_path": "llmware/slim-sql-phi-3",
|
3 |
-
"architectures": [
|
4 |
-
"Phi3ForCausalLM"
|
5 |
-
],
|
6 |
-
"attention_bias": false,
|
7 |
-
"attention_dropout": 0.0,
|
8 |
-
"auto_map": {
|
9 |
-
"AutoConfig": "llmware/slim-sql-phi-3--configuration_phi3.Phi3Config",
|
10 |
-
"AutoModelForCausalLM": "llmware/slim-sql-phi-3--modeling_phi3.Phi3ForCausalLM"
|
11 |
-
},
|
12 |
-
"bos_token_id": 1,
|
13 |
-
"embd_pdrop": 0.0,
|
14 |
-
"eos_token_id": 32000,
|
15 |
-
"hidden_act": "silu",
|
16 |
-
"hidden_size": 3072,
|
17 |
-
"initializer_range": 0.02,
|
18 |
-
"intermediate_size": 8192,
|
19 |
-
"max_position_embeddings": 4096,
|
20 |
-
"model_type": "phi3",
|
21 |
-
"num_attention_heads": 32,
|
22 |
-
"num_hidden_layers": 32,
|
23 |
-
"num_key_value_heads": 32,
|
24 |
-
"original_max_position_embeddings": 4096,
|
25 |
-
"pad_token_id": 32000,
|
26 |
-
"resid_pdrop": 0.0,
|
27 |
-
"rms_norm_eps": 1e-05,
|
28 |
-
"rope_scaling": null,
|
29 |
-
"rope_theta": 10000.0,
|
30 |
-
"sliding_window": 2047,
|
31 |
-
"tie_word_embeddings": false,
|
32 |
-
"transformers_version": "4.43.4",
|
33 |
-
"use_cache": true,
|
34 |
-
"vocab_size": 32064
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "llmware/slim-sql-phi-3",
|
3 |
+
"architectures": [
|
4 |
+
"Phi3ForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"auto_map": {
|
9 |
+
"AutoConfig": "llmware/slim-sql-phi-3--configuration_phi3.Phi3Config",
|
10 |
+
"AutoModelForCausalLM": "llmware/slim-sql-phi-3--modeling_phi3.Phi3ForCausalLM"
|
11 |
+
},
|
12 |
+
"bos_token_id": 1,
|
13 |
+
"embd_pdrop": 0.0,
|
14 |
+
"eos_token_id": 32000,
|
15 |
+
"hidden_act": "silu",
|
16 |
+
"hidden_size": 3072,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"intermediate_size": 8192,
|
19 |
+
"max_position_embeddings": 4096,
|
20 |
+
"model_type": "phi3",
|
21 |
+
"num_attention_heads": 32,
|
22 |
+
"num_hidden_layers": 32,
|
23 |
+
"num_key_value_heads": 32,
|
24 |
+
"original_max_position_embeddings": 4096,
|
25 |
+
"pad_token_id": 32000,
|
26 |
+
"resid_pdrop": 0.0,
|
27 |
+
"rms_norm_eps": 1e-05,
|
28 |
+
"rope_scaling": null,
|
29 |
+
"rope_theta": 10000.0,
|
30 |
+
"sliding_window": 2047,
|
31 |
+
"tie_word_embeddings": false,
|
32 |
+
"transformers_version": "4.43.4",
|
33 |
+
"use_cache": true,
|
34 |
+
"vocab_size": 32064,
|
35 |
+
"prompt_wrapper": "human_bot",
|
36 |
+
"description": "slim-sql is a text-to-sql model.",
|
37 |
+
"prompt_format": "<human> {table_schema} \n {question} \n<bot>:",
|
38 |
+
"output_format": "{sql}",
|
39 |
+
"tokenizer_local": "tokenizer_phi3.json",
|
40 |
+
"tokenizer_config": {"bos_id":[1], "bos_token":["<s>"], "eos_id":[2],"eos_token":["</s>"]},
|
41 |
+
"model_parent": "llmware/slim-sql-phi-3",
|
42 |
+
"description": "Text-to-SQL model from llmware - finetuned on phi-3 - 3.8 parameter base",
|
43 |
+
"quantization": "int4",
|
44 |
+
"model_family": "OVGenerativeModel",
|
45 |
+
"parameters": 3.8,
|
46 |
+
"primary_keys": ["sql"],
|
47 |
+
"output_values": ["{{sql statement}}"],
|
48 |
+
"publisher": "llmware",
|
49 |
+
"release_date": "september 2024",
|
50 |
+
"function_call": "sql",
|
51 |
+
"test_params": ["sql"],
|
52 |
+
"test_set": [
|
53 |
+
{
|
54 |
+
"context": "CREATE TABLE customers (customer_name text, account_number integer,customer_level text, vip_customer text, annual_spend text, user_name text)",
|
55 |
+
"query": "Which customers are VIP customers?",
|
56 |
+
"answer": "SELECT * FROM customers WHERE vip_customer='yes'"
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"context": "CREATE TABLE customers (customer_name text, account_number integer,customer_level text, vip_customer text, annual_spend text, user_name text)",
|
60 |
+
"query": "What is the annual spend for customer Rachel Michaels?",
|
61 |
+
"answer": "SELECT annual_spend FROM customers WHERE customer_name='Rachel Michaels'"
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"context": "CREATE TABLE customers (customer_name text, account_number integer,customer_level text, vip_customer text, annual_spend text, user_name text)",
|
65 |
+
"query": "How many customers spend more than $1000 per year?",
|
66 |
+
"answer": "SELECT COUNT(*) FROM customers WHERE annual_spend > $1000"
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"context": "CREATE TABLE customers (customer_name text, account_number integer,customer_level text, vip_customer text, annual_spend text, user_name text)",
|
70 |
+
"query": "Who are the customers with gold customer level?",
|
71 |
+
"answer": "SELECT customer_name FROM customers WHERE customer_level = 'gold'"
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"context": "CREATE TABLE customers (customer_name text, account_number integer,customer_level text, vip_customer text, annual_spend text, user_name text)",
|
75 |
+
"query": "Which customer has account number 9382035?",
|
76 |
+
"answer": "SELECT * FROM customers WHERE account_number = 9382035"
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"context": "CREATE TABLE customers (customer_name text, account_number integer,customer_level text, vip_customer text, annual_spend text, user_name text)",
|
80 |
+
"query": "What is the account number of customer Susanna Jones?",
|
81 |
+
"answer": "SELECT account_number FROM customers WHERE customer_name='Susanna Jones'"
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"context": "CREATE TABLE library (library_name text, unique_doc_id integer, documents integer, blocks integer, images integer, pages integer, tables integer, account_name text)",
|
85 |
+
"query": "How many pages are in the human resources library?",
|
86 |
+
"answer": "SELECT pages FROM library WHERE library_name = 'human resources'"
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"context": "CREATE TABLE library (library_name text, unique_doc_id integer, documents integer, blocks integer, images integer, pages integer, tables integer, account_name text)",
|
90 |
+
"query": "Which libraries have more than 1000 images?",
|
91 |
+
"answer": "SELECT * FROM library WHERE images > 1000"
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"context": "CREATE TABLE library (library_name text, unique_doc_id integer, documents integer, blocks integer, images integer, pages integer, tables integer, account_name text)",
|
95 |
+
"query": "How many blocks are in the finance library?",
|
96 |
+
"answer": "SELECT blocks FROM library WHERE library_name = 'finance library'"
|
97 |
+
},
|
98 |
+
{
|
99 |
+
"context": "CREATE TABLE library (library_name text, unique_doc_id integer, documents integer, blocks integer, images integer, pages integer, tables integer, account_name text)",
|
100 |
+
"query": "What is a list of all of the libraries?",
|
101 |
+
"answer": "SELECT * FROM library"
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"context": "CREATE TABLE library (library_name text, unique_doc_id integer, documents integer, blocks integer, images integer, pages integer, tables integer, account_name text)",
|
105 |
+
"query": "Which library has unique_doc_id of 8329?",
|
106 |
+
"answer": "SELECT * FROM library WHERE unique_doc_id = 8329"
|
107 |
+
}
|
108 |
+
]
|
109 |
+
}
|