CoT
Collection
Chain of Thought • 13 items • Updated
• 1
This qwen3 model was trained 2x faster with Unsloth
This model is a QLoRA fine-tuned version of unsloth/qwen3-14b-unsloth-bnb-4bit, originally based on the Qwen3-14B architecture developed by the Qwen Team. The model has been fine-tuned on the Chain of Thought – Heartbreak & Breakups Dataset (MIT Licensed), consisting of 9.8k high-quality Q&A pairs focused on emotional processing, coping strategies, and relationship dynamics following breakups. The goal of this fine-tuning is to enhance:
This model is intended for:
The model aims to produce:
⚠️ Limitations
This model should not be used for crisis intervention or high-risk mental health scenarios.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
tokenizer = AutoTokenizer.from_pretrained("unsloth/qwen3-14b-unsloth-bnb-4bit")
base_model = AutoModelForCausalLM.from_pretrained(
"unsloth/qwen3-14b-unsloth-bnb-4bit",
device_map={"": 0}
)
model = PeftModel.from_pretrained(base_model,"khazarai/Med-R1-14B")
question = """
How can someone work through and move past deeply painful memories associated with trauma, understanding that "moving past" doesn't mean forgetting but rather integrating the experience in a healthy way?
"""
messages = [
{"role" : "user", "content" : question}
]
text = tokenizer.apply_chat_template(
messages,
tokenize = False,
add_generation_prompt = True,
enable_thinking = True,
)
from transformers import TextStreamer
_ = model.generate(
**tokenizer(text, return_tensors = "pt").to("cuda"),
max_new_tokens = 2048,
temperature = 0.6,
top_p = 0.95,
top_k = 20,
streamer = TextStreamer(tokenizer, skip_prompt = True),
)