Instructions to use kamel-usp/jbcs2025_Phi-3.5-mini-instruct-phi35_classification_lora-C4-full_context-r8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use kamel-usp/jbcs2025_Phi-3.5-mini-instruct-phi35_classification_lora-C4-full_context-r8 with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/Phi-3.5-mini-instruct") model = PeftModel.from_pretrained(base_model, "kamel-usp/jbcs2025_Phi-3.5-mini-instruct-phi35_classification_lora-C4-full_context-r8") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from kamel-usp/jbcs2025_Phi-3.5-mini-instruct-phi35_classification_lora-C4-full_context-r8: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/kamel-usp/jbcs2025_Phi-3.5-mini-instruct-phi35_classification_lora-C4-full_context-r8/resolve/main/chat_template.jinja
- Command line
-
hf download hf://kamel-usp/jbcs2025_Phi-3.5-mini-instruct-phi35_classification_lora-C4-full_context-r8/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/kamel-usp/jbcs2025_Phi-3.5-mini-instruct-phi35_classification_lora-C4-full_context-r8/resolve/main/chat_template.jinja
430 Bytes
| {% for message in messages %}{% if message['role'] == 'system' and message['content'] %}{{'<|system|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% elif message['role'] == 'user' %}{{'<|user|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% elif message['role'] == 'assistant' %}{{'<|assistant|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|> | |
| ' }}{% else %}{{ eos_token }}{% endif %} |