Update README.md
Browse files
README.md
CHANGED
|
@@ -7,9 +7,6 @@ base_model:
|
|
| 7 |
- Qwen/Qwen2.5-3B-Instruct
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
---
|
| 10 |
-
|
| 11 |
-
# Model Card for Model ID
|
| 12 |
-
|
| 13 |
# Fine-Tuned LLM for Text-to-SQL Conversion
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct) designed to convert natural language queries into SQL statements. It was trained on the `gretelai/synthetic_text_to_sql` dataset and can provide both SQL queries and table schema context when needed.
|
|
@@ -44,8 +41,8 @@ To use the model for text-to-SQL conversion, you can load it using the `transfor
|
|
| 44 |
```python
|
| 45 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 46 |
|
| 47 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 48 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 49 |
|
| 50 |
# Input prompt
|
| 51 |
query = "What is the total number of hospital beds in each state?"
|
|
|
|
| 7 |
- Qwen/Qwen2.5-3B-Instruct
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
---
|
|
|
|
|
|
|
|
|
|
| 10 |
# Fine-Tuned LLM for Text-to-SQL Conversion
|
| 11 |
|
| 12 |
This model is a fine-tuned version of [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct) designed to convert natural language queries into SQL statements. It was trained on the `gretelai/synthetic_text_to_sql` dataset and can provide both SQL queries and table schema context when needed.
|
|
|
|
| 41 |
```python
|
| 42 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 43 |
|
| 44 |
+
tokenizer = AutoTokenizer.from_pretrained("Ellbendls/Qwen-2.5-3b-Text_to_SQL")
|
| 45 |
+
model = AutoModelForCausalLM.from_pretrained("Ellbendls/Qwen-2.5-3b-Text_to_SQL")
|
| 46 |
|
| 47 |
# Input prompt
|
| 48 |
query = "What is the total number of hospital beds in each state?"
|