Downloads · 30 days
26
46% of all-time downloads
iben/Abuja-01
Abuja-01 is a machine learning model from iben. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
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).
Downloads · 30 days
26
46% of all-time downloads
All-time downloads
56
Public
Parameters
494M
5.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt4 GB · 66%
From the Hugging Face model README
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
<script src="https://gist.github.com/ibeninc/8ddc165576dee140cb118265b34335c5.js"></script>This model was trained using ORPO (Odds Ratio Preference Optimization), a method that doesn't require a reference model. The training configuration included: