A LoRA fine-tuned version of Qwen-8B trained for tool-integrated reasoning on the AIMO3 competition dataset (generated by GPT-OSS-120B). The LoRA adapters have been merged into the base model and saved in SafeTensors format for straightforward deployment.
1prompt ="Solve this problem: What is 2 + 2?"23formatted_prompt =f"user\n{prompt}\nassistant\n"45inputs = tokenizer(formatted_prompt, return_tensors="pt").to(model.device)6outputs = model.generate(7**inputs,8 max_new_tokens=512,9 temperature=0.7,10 top_p=0.9,11 do_sample=True12)1314response = tokenizer.decode(outputs[0], skip_special_tokens=False)15print(response)
Batch Inference
python
1prompts =[2"Solve: 15 + 27 = ?",3"What is the derivative of x^2?",4"Calculate the area of a circle with radius 5"5]67formatted_prompts =[8f"user\n{p}\nassistant\n"9for p in prompts
10]1112inputs = tokenizer(formatted_prompts, return_tensors="pt", padding=True).to(model.device)13outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)1415for response in tokenizer.batch_decode(outputs, skip_special_tokens=False):16print(response)17print("-"*80)