Instructions to use juierror/text-to-sql-with-table-schema with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use juierror/text-to-sql-with-table-schema with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("juierror/text-to-sql-with-table-schema") model = AutoModelForSeq2SeqLM.from_pretrained("juierror/text-to-sql-with-table-schema", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files31 unmodified lines32333435363731 unmodified linesprint(inference(question="get people name with age equal 25", table=["id", "name", "age"]))```There are newer version of this using Flan-T5 as a based model. You can check out [here](https://huggingface.co/juierror/flan-t5-text2sql-with-schema)PS. From this [discussion](https://huggingface.co/juierror/flan-t5-text2sql-with-schema/discussions/5), I think the base model that I use for finetune did not support the token `<`, so this might not be a good model to do this tasks.31 unmodified lines3233343531 unmodified linesprint(inference(question="get people name with age equal 25", table=["id", "name", "age"]))```There are newer version of this using Flan-T5 as a based model. You can check out [here](https://huggingface.co/juierror/flan-t5-text2sql-with-schema-v2)
README.md+1-3