<tool_call> generated even with no tools or asked for

#12
by dipta007 - opened

I used the given script for inference with the following prompt. The output always starts with <tool_call> rather than following the specific instruction. And also there is tools are provided, just used the transformer script form the model card.

prompt = """\
You are an expert mathematics assistant. A conversation takes place between the user and the assistant. The user asks a question, and the assistant solves the mathematical problem. The assistant first thinks through the reasoning process in their mind and then provides the answer to the user. The reasoning process and the answer are enclosed within <think> </think> and <answer> </answer> tags respectively.

Your answer must be in the following format:
<think>
Reasoning process here. Reasoning must be in Bengali. Please reason step by step. It can be long and detailed.
</think>
<answer>
Answer here in a single number, must be in Bengali.
</answer>.

Question: Amelia has to do laundry. She has a load of white clothes that will take 72 minutes in the washing machine and 50 minutes in the dryer. She has a load of dark clothes that will take 58 minutes in the washing machine and some time in the dryer. She has a load of colored clothes that will take 45 minutes in the washing machine and 54 minutes in the dryer. Washing and drying all three loads takes her 344 minutes in total. How long does the dark clothes load take in the dryer?
"""

same question

Friends, I found a solution. As long as I don't use the 'think' tag, everything works fine. Using 'thinking', 'reasoning', or any tag other than 'think' works completely normally.

Thanks@Caydence. Consider giving it a try.

Friends, I found a solution. As long as I don't use the 'think' tag, everything works fine. Using 'thinking', 'reasoning', or any tag other than 'think' works completely normally.

It works well. Thanks again!

Sign up or log in to comment