Downloads · 30 days
236
15% of all-time downloads
ericflo/Qwen2.5-7B-Think-KTO-v0.1
Qwen2.5-7B-Think-KTO-v0.1 is a text generation model from ericflo. 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.
NOTE: This model is currently undertrained and needs some coaxing to output <think...</think tags.
Downloads · 30 days
236
15% of all-time downloads
All-time downloads
1.6K
Public
Parameters
7.6B
55 GB on disk
Likes
0
Public
Click a slice to open those files.
.gguf39.7 GB · 72%
From the Hugging Face model README
NOTE: This model is currently undertrained and needs some coaxing to output <think>...</think> tags.
This initial release enhances the base Qwen2.5-7B model's reasoning capabilities using Kahneman-Tversky Optimization (KTO). The model is trained using binary feedback signals, indicating whether outputs are desirable or undesirable for given inputs.
The model generates responses using a simple thought-then-answer format:
<think>
Let me approach this step by step...
First, we need to consider X...
Then, looking at Y...
Finally, Z leads us to...
</think>
[final answer based on thought process]
✅ Tasks requiring natural thought processes ✅ Scenarios where binary feedback is available ✅ Problems benefiting from human-like reasoning ✅ Applications needing clear thought-to-answer progression
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ericflo/Qwen2.5-Think-KTO-v0.1")
tokenizer = AutoTokenizer.from_pretrained("ericflo/Qwen2.5-Think-KTO-v0.1")
prompt = "What are the implications of Moore's Law slowing down?"
input_ids = tokenizer(prompt, return_tensors="pt").input_ids
output = model.generate(input_ids, max_length=512)
response = tokenizer.decode(output[0])
@misc{qwen25-think-kto,
title={Qwen2.5-Think-KTO: Enhanced Reasoning Through Human-Aware Learning},
author={[Eric Florenzano]},
year={2024},
howpublished={\url{https://huggingface.co/ericflo/Qwen2.5-Think-KTO-v0.1}}
}
This model builds on the Qwen2.5-7B base model and implements the KTO approach developed by Ethayarajh et al. Special thanks to the authors of the KTO paper and the broader AI research community for their contributions to model alignment techniques.