Views
No views yet
<think>...</think> tags.<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]1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("ericflo/Qwen2.5-Think-KTO-v0.1")
4tokenizer = AutoTokenizer.from_pretrained("ericflo/Qwen2.5-Think-KTO-v0.1")
5
6prompt = "What are the implications of Moore's Law slowing down?"
7input_ids = tokenizer(prompt, return_tensors="pt").input_ids
8output = model.generate(input_ids, max_length=512)
9response = tokenizer.decode(output[0])1@misc{qwen25-think-kto,
2 title={Qwen2.5-Think-KTO: Enhanced Reasoning Through Human-Aware Learning},
3 author={[Eric Florenzano]},
4 year={2024},
5 howpublished={\url{https://huggingface.co/ericflo/Qwen2.5-Think-KTO-v0.1}}
6}