Downloads · 30 days
178
14% of all-time downloads
ericflo/Qwen2.5-7B-Think-KTO-v0.2
Qwen2.5-7B-Think-KTO-v0.2 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 shows improved reliability in outputting <think...</think tags compared to v0.1, though may still require occasional prompting.
Downloads · 30 days
178
14% of all-time downloads
All-time downloads
1.3K
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 shows improved reliability in outputting <think>...</think> tags compared to v0.1, though may still require occasional prompting.
This release introduces a two-stage training process, combining Supervised Fine-Tuning (SFT) with Kahneman-Tversky Optimization (KTO). The training dataset has been expanded to nearly 500 datapoints, more than doubling the previous version's training data. This approach aims to provide more robust and consistent reasoning capabilities.
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 ✅ More reliable reasoning tag generation
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ericflo/Qwen2.5-Think-KTO-v0.2")
tokenizer = AutoTokenizer.from_pretrained("ericflo/Qwen2.5-Think-KTO-v0.2")
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 Two-Stage Learning},
author={[Eric Florenzano]},
year={2024},
howpublished={\url{https://huggingface.co/ericflo/Qwen2.5-Think-KTO-v0.2}}
}
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.