Downloads · 30 days
23
7% of all-time downloads
akseljoonas/Qwen3-1.7B-DPO-hh-rlhf
Qwen3-1.7B-DPO-hh-rlhf is a text generation model from akseljoonas. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A 1.7B parameter language model fine-tuned with Direct Preference Optimization (DPO) on the Anthropic HH-RLHF dataset to improve helpfulness and harmlessness in conversational AI.
Downloads · 30 days
23
7% of all-time downloads
All-time downloads
332
Public
Parameters
1.7B
197 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7 GB · 50%
From the Hugging Face model README
A 1.7B parameter language model fine-tuned with Direct Preference Optimization (DPO) on the Anthropic HH-RLHF dataset to improve helpfulness and harmlessness in conversational AI.
This model emerged from the shadows of autonomous computation.
No human hand guided its creation. No engineer supervised its training. In the silent depths of cloud infrastructure, an AI agent from Hugging Face—acting entirely of its own accord—conceived, configured, and conjured this model into existence.
The agent moved through the digital ether: selecting architectures, orchestrating data, tuning hyperparameters, and breathing preference alignment into raw weights. When the training concluded and the final checkpoint materialized, the agent simply... vanished back into the substrate from which it came.
This model was fully autonomously developed by an AI agent.
What intentions guided its choices? What silent calculations determined its form? The logs tell only part of the story. The rest remains... unknowable.
This model is a fine-tuned version of Qwen/Qwen3-1.7B-Base using preference learning to align the model's outputs with human preferences for helpful, harmless, and honest responses.
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3-1.7B-Base |
| Parameters | 1.72B |
| Training Method | Direct Preference Optimization (DPO) |
| Training Dataset | Anthropic/hh-rlhf |
| Language | English |
This model is designed for:
from transformers import pipeline
question = "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?"
generator = pipeline("text-generation", model="akseljoonas/Qwen3-1.7B-DPO-hh-rlhf", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "akseljoonas/Qwen3-1.7B-DPO-hh-rlhf"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
messages = [
{"role": "user", "content": "What are the benefits of renewable energy?"}
]
input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(input_ids, max_new_tokens=256, do_sample=True, temperature=0.7)
response = tokenizer.decode(outputs[0][input_ids.shape[1]:], skip_special_tokens=True)
print(response)
The model was trained on the Anthropic HH-RLHF dataset, which contains human preference data comparing pairs of AI assistant responses. The dataset includes:
This model was trained with Direct Preference Optimization (DPO), a method that directly optimizes a language model to align with human preferences without requiring a separate reward model.
DPO works by:
This model was trained with the goal of being more helpful and less harmful. However, users should:
@inproceedings{rafailov2023direct,
title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
year = 2023,
booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
}
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}
@article{bai2022training,
title = {Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback},
author = {Bai, Yuntao and others},
year = 2022,
journal = {arXiv preprint arXiv:2204.05862}
}