trl-lib/ultrafeedback_binarized
Viewer โข Updated โข 63.1k โข 3.1k โข 29
This model is a fine-tuned version of Qwen/Qwen2-0.5B-Instruct. It has been trained using TRL with ORPO (Odds Ratio Preference Optimization).
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
import logging
logging.basicConfig(level=logging.INFO)
def load_model():
"""Load the model and tokenizer."""
logger.info("Loading model...")
model = AutoModelForCausalLM.from_pretrained("iben/Abuja-01", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("iben/Abuja-01", trust_remote_code=True)
return model, tokenizer
View the full code on GitHub Gist
This model was trained using ORPO (Odds Ratio Preference Optimization), a method that doesn't require a reference model. The training configuration included: