Instructions to use lewtun/dpo-model-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use lewtun/dpo-model-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "lewtun/dpo-model-lora") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from lewtun/dpo-model-lora: direct link, hf CLI and curl.
- Browser
- Download file 7.03 MB
-
https://huggingface.co/lewtun/dpo-model-lora/resolve/main/tokenizer.json
- Command line
-
hf download hf://lewtun/dpo-model-lora/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/lewtun/dpo-model-lora/resolve/main/tokenizer.json
7.03 MB
File too large to display, you can check the raw version instead.