Run this model with HF Jobs
Run Chuxia-sys/tiny-llama-v2 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/Chuxia-sys/tiny-llama-v2. 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/Chuxia-sys/tiny-llama-v2 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 Chuxia-sys/tiny-llama-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Chuxia-sys/tiny-llama-v2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Chuxia-sys/tiny-llama-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from Chuxia-sys/tiny-llama-v2: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/Chuxia-sys/tiny-llama-v2/resolve/main/chat_template.jinja
- Command line
-
hf download hf://Chuxia-sys/tiny-llama-v2/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/Chuxia-sys/tiny-llama-v2/resolve/main/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 %} |