Views
No views yet
1### instruction:
2{Your Question}
3
4### thought:
5{The logic or reasoning the model should follow}
6
7### output:1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "razielAI/Duchifat-2-Instruct-Thinking" # Update with your exact HF path
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float32)
7
8instruction = "Who are you?"
9thought = "The user is asking for my identity. I should state I am Duchifat-2 developed by TopAI."
10
11prompt = f"### instruction:\n{instruction}\n\n### thought:\n{thought}\n\n### output:\n"
12inputs = tokenizer(prompt, return_tensors="pt")
13
14outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.1)
15print(tokenizer.decode(outputs[0], skip_special_tokens=True))Plaintext
@misc{duchifat2thinking2026,
author = {Raziel, TopAI},
title = {Duchifat-2-Thinking: A Lightweight Reasoning Model},
year = {2026},
publisher = {Hugging Face},
journal = {Hugging Face Model Hub}
}