Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +71 -0
- sqlcoder-70b-alpha.Q4_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
sqlcoder-70b-alpha.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Model Card for SQLCoder-70B-Alpha
|
| 8 |
+
|
| 9 |
+
A capable large language model for natural language to SQL generation. Outperforms all generalist models (including GPT-4) on text to SQL.
|
| 10 |
+
|
| 11 |
+

|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
### Model Description
|
| 17 |
+
|
| 18 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 19 |
+
|
| 20 |
+
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 21 |
+
|
| 22 |
+
- **Developed by:** [Defog, Inc](https://defog.ai)
|
| 23 |
+
- **Model type:** [Text to SQL]
|
| 24 |
+
- **License:** [CC-by-SA-4.0]
|
| 25 |
+
- **Finetuned from model:** [CodeLlama-70B]
|
| 26 |
+
|
| 27 |
+
### Model Sources [optional]
|
| 28 |
+
- [**HuggingFace:**](https://huggingface.co/defog/sqlcoder-70b-alpha)
|
| 29 |
+
- [**GitHub:**](https://github.com/defog-ai/sqlcoder)
|
| 30 |
+
- [**Demo:**](https://defog.ai/sqlcoder-demo/)
|
| 31 |
+
|
| 32 |
+
## Uses
|
| 33 |
+
|
| 34 |
+
This model is intended to be used by non-technical users to understand data inside their SQL databases. It is meant as an analytics tool, and not as a database admin tool.
|
| 35 |
+
|
| 36 |
+
This model has not been trained to reject malicious requests from users with write access to databases, and should only be used by users with read-only access.
|
| 37 |
+
|
| 38 |
+
## How to Get Started with the Model
|
| 39 |
+
|
| 40 |
+
Use the code [here](https://github.com/defog-ai/sqlcoder/blob/main/inference.py) to get started with the model.
|
| 41 |
+
|
| 42 |
+
## Evaluation
|
| 43 |
+
|
| 44 |
+
This model was evaluated on [SQL-Eval](https://github.com/defog-ai/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 |
+
### Results
|
| 49 |
+
|
| 50 |
+
We classified each generated question into one of 6 categories. The table displays the percentage of questions answered correctly by each model, broken down by category.
|
| 51 |
+
| | date | group_by | order_by | ratio | join | where |
|
| 52 |
+
| ------------- | ---- | -------- | -------- | ----- | ---- | ----- |
|
| 53 |
+
| sqlcoder-70b | 96 | 91.4 | 97.1 | 85.7 | 97.1 | 91.4 |
|
| 54 |
+
| sqlcoder-34b | 80 | 94.3 | 85.7 | 77.1 | 85.7 | 80 |
|
| 55 |
+
| gpt-4 | 64 | 94.3 | 88.6 | 74.2 | 85.7 | 80 |
|
| 56 |
+
| sqlcoder2-15b | 76 | 80 | 77.1 | 60 | 77.1 | 77.1 |
|
| 57 |
+
| sqlcoder-7b | 64 | 82.9 | 74.3 | 54.3 | 74.3 | 74.3 |
|
| 58 |
+
| gpt-3.5 | 68 | 77.1 | 74.2 | 34.3 | 65.7 | 71.4 |
|
| 59 |
+
| claude-2 | 52 | 71.4 | 74.3 | 57.1 | 65.7 | 62.9 |
|
| 60 |
+
|
| 61 |
+
## Using SQLCoder
|
| 62 |
+
|
| 63 |
+
## Model Card Authors
|
| 64 |
+
|
| 65 |
+
- [Rishabh Srivastava](https://twitter.com/rishdotblog)
|
| 66 |
+
- [Wendy Aw](https://www.linkedin.com/in/wendyaw/)
|
| 67 |
+
- [Wong Jing Ping](https://www.linkedin.com/in/jing-ping-wong/)
|
| 68 |
+
|
| 69 |
+
## Model Card Contact
|
| 70 |
+
|
| 71 |
+
Contact us on X at [@defogdata](https://twitter.com/defogdata), or on email at [founders@defog.ai](mailto:founders@defog.ai)
|
sqlcoder-70b-alpha.Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a1c6cca2a0e58a52851fd2cfbd88cb544c1eff90bea7024617cd26ab343db0a
|
| 3 |
+
size 38872431616
|