Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
# SQL Socratic Models
|
| 5 |
+
|
| 6 |
+
This repository contains fine-tuned LLMs for Text-to-SQL using Socratic prompting and reasoning decomposition.
|
| 7 |
+
|
| 8 |
+
## Models
|
| 9 |
+
- phi3_rq4
|
| 10 |
+
- qwen25
|
| 11 |
+
- llama31
|
| 12 |
+
|
| 13 |
+
## Method
|
| 14 |
+
We fine-tune models on SQL generation tasks with Socratic reasoning prompts.
|
| 15 |
+
|
| 16 |
+
## Contributions
|
| 17 |
+
- Fine-tuning across multiple architectures
|
| 18 |
+
- Ablation studies on reasoning components
|
| 19 |
+
- Evaluation on Text-to-SQL benchmarks
|
| 20 |
+
|
| 21 |
+
## Usage
|
| 22 |
+
```python
|
| 23 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 24 |
+
|
| 25 |
+
model = AutoModelForCausalLM.from_pretrained("sriram882004/SQL-Socratic-Models/phi3_rq4")
|
| 26 |
+
tokenizer = AutoTokenizer.from_pretrained(...)
|