Instructions to use lewtun/kto-aligned-model-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use lewtun/kto-aligned-model-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("trl-lib/qwen1.5-1.8b-sft") model = PeftModel.from_pretrained(base_model, "lewtun/kto-aligned-model-lora") - Notebooks
- Google Colab
- Kaggle
Ctrl+K