model = AutoModelForCausalLM.from_pretrained( "Michael-Kozu/Deimos-A4", torch_dtype="auto", device_map="auto" ) tok = AutoTokenizer.from_pretrained("Michael-Kozu/Deimos-A4")
msgs = [{"role": "user", "content": "A train leaves at 3pm at 60mph. Another leaves at 4pm at 80mph. When does the second catch the first?" }] inputs = tok.apply_chat_template( msgs, tokenize=True, return_tensors="pt", add_generation_prompt=True ).to(model.device)
Locked recommended config (math/reasoning):
out = model.generate(inputs, max_new_tokens=8192, do_sample=False, # greedy (temperature=0) repetition_penalty=1.10) print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))
The second train catches the first at 6pm.
Step 1: Set up the scenario
- Train 1 departs at 3:00 PM at 60 mph
- Train 2 departs at 4:00 PM at 80 mph (1 hour later)
Step 2: Calculate the head start distance ...