Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,49 @@
|
|
1 |
-
---
|
2 |
-
license:
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
metrics:
|
4 |
+
- accuracy
|
5 |
+
pipeline_tag: text-generation
|
6 |
+
tags:
|
7 |
+
- code
|
8 |
+
---
|
9 |
+
This is [Llama-3-sqlcoder-8b](https://huggingface.co/defog/llama-3-sqlcoder-8b) model converted to the [OpenVINO™ IR](https://docs.openvino.ai/2024/documentation/openvino-ir-format.html) (Intermediate Representation) format with weights compressed to INT8.
|
10 |
+
|
11 |
+
A capable language model for text to SQL generation for Postgres, Redshift and Snowflake that is on-par with the most capable generalist frontier models.
|
12 |
+
|
13 |
+

|
14 |
+
|
15 |
+
## Model Description
|
16 |
+
|
17 |
+
Developed by: Defog, Inc
|
18 |
+
Model type: [Text to SQL]
|
19 |
+
License: [CC-by-SA-4.0]
|
20 |
+
Finetuned from model: [Meta-Llama-3-8B-Instruct]
|
21 |
+
|
22 |
+
## Demo Page
|
23 |
+
[https://defog.ai/sqlcoder-demo/](https://defog.ai/sqlcoder-demo/)
|
24 |
+
|
25 |
+
## Ideal prompt and inference parameters
|
26 |
+
Set temperature to 0, and do not do sampling.
|
27 |
+
|
28 |
+
### Prompt
|
29 |
+
```
|
30 |
+
<|begin_of_text|><|start_header_id|>user<|end_header_id|>
|
31 |
+
|
32 |
+
Generate a SQL query to answer this question: `{user_question}`
|
33 |
+
{instructions}
|
34 |
+
|
35 |
+
DDL statements:
|
36 |
+
{create_table_statements}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
37 |
+
|
38 |
+
The following SQL query best answers the question `{user_question}`:
|
39 |
+
```sql
|
40 |
+
|
41 |
+
```
|
42 |
+
|
43 |
+
## Evaluation
|
44 |
+
This model was evaluated on SQL-Eval, a PostgreSQL based evaluation framework developed by Defog for testing and alignment of model capabilities.
|
45 |
+
|
46 |
+
You can read more about the methodology behind SQLEval [here](https://defog.ai/blog/open-sourcing-sqleval/).
|
47 |
+
|
48 |
+
## Contact
|
49 |
+
Contact us on X at [@defogdata](https://twitter.com/defogdata), or on email at [email protected]
|