HelpingAI/Intermediate-Thinking-130k
Viewer β’ Updated β’ 135k β’ 40 β’ 46
A Thai-centric GPT-2 model with thinking and reasoning capabilities! This model can engage in conversations and solve problems while showing its step-by-step reasoning process.
<think> tagsfrom transformers import GPT2LMHeadModel, GPT2Tokenizer
model = GPT2LMHeadModel.from_pretrained("your-username/gpt-thai-think")
tokenizer = GPT2Tokenizer.from_pretrained("your-username/gpt-thai-think")
# Generate text
prompt = "ΰΈΰΈ³ΰΈͺΰΈ±ΰΉΰΈ: ΰΈͺΰΈ§ΰΈ±ΰΈͺΰΈΰΈ΅ΰΈΰΈ£ΰΈ±ΰΈ
ΰΈΰΈ³ΰΈΰΈΰΈ:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
response = tokenizer.decode(outputs[0])
# The model shows reasoning steps
prompt = "Question: What is 15% of 200?
"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=150)
response = tokenizer.decode(outputs[0])
# Response includes <think> tags with reasoning steps
Question: If a train travels 120 km in 2 hours, what is its average speed?
<think>
To find average speed, I need to divide distance by time.
Distance = 120 km, Time = 2 hours
Speed = Distance Γ· Time = 120 km Γ· 2 hours = 60 km/h
</think>
Final Answer: 60 km/h
ΰΈΰΈ³ΰΈͺΰΈ±ΰΉΰΈ: ΰΈͺΰΈ§ΰΈ±ΰΈͺΰΈΰΈ΅ΰΈΰΈ£ΰΈ±ΰΈ
ΰΈΰΈ³ΰΈΰΈΰΈ: ΰΈͺΰΈ§ΰΈ±ΰΈͺΰΈΰΈ΅ΰΈΰΈ£ΰΈ±ΰΈ ΰΈ’ΰΈ΄ΰΈΰΈΰΈ΅ΰΈΰΈ΅ΰΉΰΉΰΈΰΉΰΈΰΈΈΰΈ’ΰΈΰΈ±ΰΈΰΈΰΈ£ΰΈ±ΰΈ
<s>: Start of sequence</s>: End of sequence<pad>: Padding token<unk>: Unknown token<mask>: Mask tokenΰΈΰΈ³ΰΈͺΰΈ±ΰΉΰΈ: [instruction]
ΰΈΰΈ³ΰΈΰΈΰΈ: [response with optional <think> reasoning]
β Conversational Thai: Natural Thai conversations β Mathematical Reasoning: Step-by-step calculations β Logic Problems: Deductive reasoning β Word Problems: Problem decomposition β Instruction Following: Structured responses β Thinking Process: Visible reasoning steps
This model is open-source! Feel free to:
Apache 2.0 License - see LICENSE file for details.
Built with β€οΈ for the Thai AI community