You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is from the format of inputs in error line
the format of example in inputs is something like:
example= {
"image": "123",
"problem": "Based on the image, how many times larger is the area of Indonesia compared to Thailand?",
"solution": "The area of Indonesia is 1.9 times larger than the area of Thailand.",
"prompt": [
{
"content": [
{
"type": "image",
"text": None
},
{
"type": "text",
"text": "Based on the image, how many times larger is the area of Indonesia compared to Thailand? Output the thinking process in <think> </think> and final answer (number) in <answer> </answer> tags."
}
],
"role": "user"
}
]
}
But maybe_apply_chat_template cannot handle the prompt with a list format content. The correct format of example should be:
example= {
"image": "123",
"problem": "Based on the image, how many times larger is the area of Indonesia compared to Thailand?",
"solution": "The area of Indonesia is 1.9 times larger than the area of Thailand.",
"prompt": [
{
"content": "Based on the image, how many times larger is the area of Indonesia compared to Thailand? Output the thinking process in <think> </think> and final answer (number) in <answer> </answer> tags.",
"role": "user"
}
]
}
Is this a bug in the repository code, or a problem with my reproduction?
The text was updated successfully, but these errors were encountered:
I found that the bug was resolved after I replaced the base model with Qwen2-VL. It seems the issue was related to my use of Qwen2.5-VL. I speculate that the code was not fully compatible with Qwen 2.5-VL.
Thanks for outstanding work!
However, I got the following error when I run it
The error is from the format of inputs in error line
the format of example in inputs is something like:
But
maybe_apply_chat_template
cannot handle the prompt with a list format content. The correct format of example should be:Is this a bug in the repository code, or a problem with my reproduction?
The text was updated successfully, but these errors were encountered: