Instructions to use viirya/t5-small-text-to-sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use viirya/t5-small-text-to-sql with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("viirya/t5-small-text-to-sql") model = AutoModelForSeq2SeqLM.from_pretrained("viirya/t5-small-text-to-sql", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from viirya/t5-small-text-to-sql: direct link, hf CLI and curl.
- Browser
- Download file 177 Bytes
-
https://huggingface.co/viirya/t5-small-text-to-sql/resolve/main/generation_config.json
- Command line
-
hf download hf://viirya/t5-small-text-to-sql/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/viirya/t5-small-text-to-sql/resolve/main/generation_config.json
177 Bytes
| { | |
| "decoder_start_token_id": 0, | |
| "early_stopping": true, | |
| "eos_token_id": 1, | |
| "max_length": 300, | |
| "num_beams": 4, | |
| "pad_token_id": 0, | |
| "transformers_version": "4.37.2" | |
| } | |