Update README.md
Browse files
README.md
CHANGED
@@ -3,23 +3,29 @@ library_name: peft
|
|
3 |
base_model: mistralai/Mistral-7B-v0.1
|
4 |
pipeline_tag: text-generation
|
5 |
---
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
13 |
'Mellon Arena - 17,132', '47-26-4'], dtype=object), array(['78', '3', 'Tampa Bay Lightning', '4-5 (OT)', 'Brodeur',
|
14 |
'Prudential Center - 17,625', '48-26-4'], dtype=object), array(['79', '4', 'Buffalo Sabres', '3-2', 'Brodeur',
|
15 |
'HSBC Arena - 18,690', '49-26-4'], dtype=object), array(['80', '7', 'Toronto Maple Leafs', '4-1', 'Brodeur',
|
16 |
'Prudential Center - 15,046', '49-27-4'], dtype=object), array(['81', '9', 'Ottawa Senators', '3-2 (SO)', 'Brodeur',
|
17 |
'Scotiabank Place - 20,151', '50-27-4'], dtype=object), array(['82', '11', 'Carolina Hurricanes', '2-3', 'Brodeur',
|
18 |
'Prudential Center - 17,625', '51-27-4'], dtype=object)]}\n### Query: What is Score, when Game is greater than 78, and when Date is "4"?\n### SQL: \
|
19 |
-
|
20 |
-
Sample output:
|
21 |
-
|
22 |
-
|
|
|
|
|
23 |
```
|
24 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
25 |
|
|
|
3 |
base_model: mistralai/Mistral-7B-v0.1
|
4 |
pipeline_tag: text-generation
|
5 |
---
|
6 |
+
|
7 |
+
Description: SQL generation given a table and question
|
8 |
+
Original dataset: wikisql
|
9 |
+
|
10 |
+
Try querying this adapter for free in Lora Land at https://predibase.com/lora-land
|
11 |
+
The `adapter_category` is `Reasoning` and the name is `WikiSQL (SQL Generation)`
|
12 |
+
|
13 |
+
### Example:
|
14 |
+
|
15 |
+
Sample input:
|
16 |
+
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query.\n### Database Schema: {'header': ['Game', 'Date', 'Opponent', 'Score', 'Decision', 'Location/Attendance', 'Record'], 'types': ['real', 'real', 'text', 'text', 'text', 'text', 'text'], 'rows': [array(['77', '1', 'Pittsburgh Penguins', '1-6', 'Brodeur',
|
17 |
'Mellon Arena - 17,132', '47-26-4'], dtype=object), array(['78', '3', 'Tampa Bay Lightning', '4-5 (OT)', 'Brodeur',
|
18 |
'Prudential Center - 17,625', '48-26-4'], dtype=object), array(['79', '4', 'Buffalo Sabres', '3-2', 'Brodeur',
|
19 |
'HSBC Arena - 18,690', '49-26-4'], dtype=object), array(['80', '7', 'Toronto Maple Leafs', '4-1', 'Brodeur',
|
20 |
'Prudential Center - 15,046', '49-27-4'], dtype=object), array(['81', '9', 'Ottawa Senators', '3-2 (SO)', 'Brodeur',
|
21 |
'Scotiabank Place - 20,151', '50-27-4'], dtype=object), array(['82', '11', 'Carolina Hurricanes', '2-3', 'Brodeur',
|
22 |
'Prudential Center - 17,625', '51-27-4'], dtype=object)]}\n### Query: What is Score, when Game is greater than 78, and when Date is "4"?\n### SQL: \
|
23 |
+
|
24 |
+
Sample output:
|
25 |
+
SELECT Score FROM table WHERE Game > 78 AND Date = 4\
|
26 |
+
|
27 |
+
### Try using this adapter yourself!
|
28 |
+
|
29 |
```
|
30 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
31 |
|