Instructions to use Smit31/tiny-llama-text2sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Smit31/tiny-llama-text2sql with PEFT:
Task type is invalid.
- Transformers
How to use Smit31/tiny-llama-text2sql with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Smit31/tiny-llama-text2sql", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-500/chat_template.jinja from Smit31/tiny-llama-text2sql: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/Smit31/tiny-llama-text2sql/resolve/main/checkpoint-500/chat_template.jinja
- Command line
-
hf download hf://Smit31/tiny-llama-text2sql/checkpoint-500/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Smit31/tiny-llama-text2sql/resolve/main/checkpoint-500/chat_template.jinja
410 Bytes
| {% for message in messages %} | |
| {% if message['role'] == 'user' %} | |
| {{ '<|user|> | |
| ' + message['content'] + eos_token }} | |
| {% elif message['role'] == 'system' %} | |
| {{ '<|system|> | |
| ' + message['content'] + eos_token }} | |
| {% elif message['role'] == 'assistant' %} | |
| {{ '<|assistant|> | |
| ' + message['content'] + eos_token }} | |
| {% endif %} | |
| {% if loop.last and add_generation_prompt %} | |
| {{ '<|assistant|>' }} | |
| {% endif %} | |
| {% endfor %} |