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
File size: 430 Bytes
fe7899c | 1 2 3 4 5 6 7 8 | {% 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 %} |