Instructions to use KN123/nl2sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KN123/nl2sql with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("KN123/nl2sql") model = AutoModelForSeq2SeqLM.from_pretrained("KN123/nl2sql") - Notebooks
- Google Colab
- Kaggle
File size: 543 Bytes
e163373 0a458d8 e163373 0a458d8 e163373 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ---
license: apache-2.0
library_name: transformers
---
# nl2sql (Natural Language to SQL)
- Here lies the resources and the fine tuned-model for natural language to SQL (Structured Query Language).
## Few Hints while making use of the API or downloading the model locally.
1. For ease, while passing the query to the database, make the attributes in single quotes (write custom function).
2. Remember, SQL is case sensitive, hence in your inference prompt, mention the correct case.
Credits to: @juierror/flan-t5-text-to-sql on github.
|