Infernaught
commited on
Commit
•
3fcc914
1
Parent(s):
54c224e
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -3,29 +3,23 @@ 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 |
-
### 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 |
-
|
26 |
-
|
27 |
-
### Try using this adapter yourself!
|
28 |
-
|
29 |
```
|
30 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
31 |
|
|
|
3 |
base_model: mistralai/Mistral-7B-v0.1
|
4 |
pipeline_tag: text-generation
|
5 |
---
|
6 |
+
Description: SQL generation given a table and question\
|
7 |
+
Original dataset: wikisql \
|
8 |
+
---\
|
9 |
+
Try querying this adapter for free in Lora Land at https://predibase.com/lora-land! \
|
10 |
+
The adapter_category is Reasoning and the name is WikiSQL (SQL Generation)\
|
11 |
+
---\
|
12 |
+
Sample input: 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',
|
|
|
|
|
|
|
|
|
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: SELECT Score FROM table WHERE Game > 78 AND Date = 4\
|
21 |
+
---\
|
22 |
+
Try using this adapter yourself!
|
|
|
|
|
23 |
```
|
24 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
25 |
|