Instructions to use dbernsohn/t5_wikisql_SQL2en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dbernsohn/t5_wikisql_SQL2en with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("dbernsohn/t5_wikisql_SQL2en") model = AutoModelForSeq2SeqLM.from_pretrained("dbernsohn/t5_wikisql_SQL2en") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ You can then use this model to translate SQL queries into plain english.
|
|
| 19 |
|
| 20 |
```python
|
| 21 |
query = "SELECT COUNT Params from model where location=HF-Hub"
|
| 22 |
-
input_text = f"translate
|
| 23 |
features = tokenizer([input_text], return_tensors='pt')
|
| 24 |
|
| 25 |
output = model.generate(input_ids=features['input_ids'].cuda(),
|
|
|
|
| 19 |
|
| 20 |
```python
|
| 21 |
query = "SELECT COUNT Params from model where location=HF-Hub"
|
| 22 |
+
input_text = f"translate SQL to English: {query} </s>"
|
| 23 |
features = tokenizer([input_text], return_tensors='pt')
|
| 24 |
|
| 25 |
output = model.generate(input_ids=features['input_ids'].cuda(),
|