How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="yunconglong/7Bx4_DPO_2e")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("yunconglong/7Bx4_DPO_2e")
model = AutoModelForCausalLM.from_pretrained("yunconglong/7Bx4_DPO_2e", device_map="auto")
Quick Links

DPO Trainer TRL supports the DPO Trainer for training language models from preference data, as described in the paper Direct Preference Optimization: Your Language Model is Secretly a Reward Model by Rafailov et al., 2023.


"num_experts_per_tok": 2


Downloads last month
48
Safetensors
Model size
24B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for yunconglong/7Bx4_DPO_2e

Quantizations
1 model

Space using yunconglong/7Bx4_DPO_2e 1