How to use from the
Use from the
Transformers library
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("KN123/nl2sql")
model = AutoModelForSeq2SeqLM.from_pretrained("KN123/nl2sql")
Quick Links

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.

Downloads last month
12
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using KN123/nl2sql 1