Views
No views yet
trlm-stage-2-sft-final-2 is the Stage 2 post-training model for the Tiny Reasoning Language Model (trlm) project.<think>...</think>).<think> chain-of-thought representations.<think> traces<think> tokens in simple tasks<think> annotations| Source Dataset | Entries | Percentage % |
|---|---|---|
| Llama_Nemotron_Post_Training_Dataset_reasoning_r1 | 40,200 | 51.5% |
| OpenThoughts3_1.2M | 20,000 | 25.6% |
| multi_turn_reasoning_if_think | 10,000 | 12.8% |
| aya_dataset_Qwen3_32B_think | 5,000 | 6.4% |
| smoltalk_everyday_convs_reasoning_Qwen3_32B_think | 2,000 | 2.6% |
| s1k_1.1_think | 800 | 1.0% |
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_name = "Shekswess/trlm-stage-2-sft-final-2"
4
5# Load tokenizer & model
6tokenizer = AutoTokenizer.from_pretrained(model_name)
7model = AutoModelForCausalLM.from_pretrained(model_name)
8
9# Example inference with reasoning
10messages = [
11 {"role": "user", "content": "If a train travels 60 km in 1 hour and another 90 km in 1.5 hours, what is the average speed?"}
12]
13
14# Apply chat template
15text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
16inputs = tokenizer([text], return_tensors="pt")
17
18outputs = model.generate(**inputs, max_new_tokens=256)
19print(tokenizer.decode(outputs[0], skip_special_tokens=True))