101-our-69-zephyr-7b-sft-full-lora-28k-only-chosen-penalty
DPO fine-tune based on Zephyr 7B
2 min read
This model is a fine-tuned version of alignment-handbook/zephyr-7b-sft-full designed for text generation and answering user questions. Based on zephyr-7b-sft-full, it was created by author jasonhuang3 using the TRL library and the DPO method (Direct Preference Optimization — aligning the model based on preferences without a separate reward model). It is suitable for developers and researchers experimenting with DPO alignment in the Zephyr family who want to quickly test the checkpoint via transformers.
Key features
- Fine-tuned using the DPO method based on alignment-handbook/zephyr-7b-sft-full.
- Training was performed using TRL version 0.18.0.
- Supports the standard text generation pipeline in transformers on a cuda device.
- The model card specifies exact dependency versions: Transformers 4.56.0, PyTorch 2.7.0+cu128, Datasets 4.0.0, and Tokenizers 0.22.0.
What you can do
- Run conversational text generation from a user prompt via the transformers pipeline.
- Use the model as a starting point for your own DPO experiments and behavioral comparisons with the base zephyr-7b-sft-full.
Example
from transformers import pipeline
generator = pipeline("text-generation", model="jasonhuang3/101-our-69-zephyr-7b-sft-full-lora-28k-only-chosen-penalty", device="cuda")
output = generator([{"role": "user", "content": "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])Read more
DetailsTraining method: DPO (Direct Preference Optimization), TRL 0.18.0 framework
Environment: Transformers 4.56.0, PyTorch 2.7.0+cu128, Datasets 4.0.0, Tokenizers 0.22.0
Run example: device="cuda", max_new_tokens=128
Metrics, benchmarks, and VRAM requirements are not specified in the model card










Comments