Instructions to use saquib34/tinyllama-linux-finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use saquib34/tinyllama-linux-finetune with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0") model = PeftModel.from_pretrained(base_model, "saquib34/tinyllama-linux-finetune") - Notebooks
- Google Colab
- Kaggle
Delete chat_template.jinja with huggingface_hub
Browse files- chat_template.jinja +0 -15
chat_template.jinja
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
{% for message in messages %}
|
| 2 |
-
{% if message['role'] == 'user' %}
|
| 3 |
-
{{ '<|user|>
|
| 4 |
-
' + message['content'] + eos_token }}
|
| 5 |
-
{% elif message['role'] == 'system' %}
|
| 6 |
-
{{ '<|system|>
|
| 7 |
-
' + message['content'] + eos_token }}
|
| 8 |
-
{% elif message['role'] == 'assistant' %}
|
| 9 |
-
{{ '<|assistant|>
|
| 10 |
-
' + message['content'] + eos_token }}
|
| 11 |
-
{% endif %}
|
| 12 |
-
{% if loop.last and add_generation_prompt %}
|
| 13 |
-
{{ '<|assistant|>' }}
|
| 14 |
-
{% endif %}
|
| 15 |
-
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|