Run this model with HF Jobs
Run KN123/nl2sql on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/KN123/nl2sql. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/KN123/nl2sql on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("KN123/nl2sql") model = AutoModelForSeq2SeqLM.from_pretrained("KN123/nl2sql", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1 unmodified line234567891 unmodified linelicense: apache-2.0library_name: transformers---Here lies the resources and the fine tuned-model for natural language to SQL (Structured Query Language).1 unmodified line23456789101112131 unmodified linelicense: apache-2.0library_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.
README.md+5-1