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
from transformers import AutoProcessor
processor = AutoProcessor.from_pretrained("Qwen2.5-VL-7B-Instruct")
transformers.__version__: '4.49.0.dev0'
I have copied the exact code mentioned below. The command prompt_without_id == prompt_with_id gives True. There is no effect of add_vision_id = True, argument.
conversation = [
{
"role": "user",
"content": [{"type": "image"}, {"type": "text", "text": "Hello, how are you?"}],
},
{
"role": "assistant",
"content": "I'm doing well, thank you for asking. How can I assist you today?",
},
{
"role": "user",
"content": [
{"type": "text", "text": "Can you describe these images and video?"},
{"type": "image"},
{"type": "image"},
{"type": "video"},
{"type": "text", "text": "These are from my vacation."},
],
},
{
"role": "assistant",
"content": "I'd be happy to describe the images and video for you. Could you please provide more context about your vacation?",
},
{
"role": "user",
"content": "It was a trip to the mountains. Can you see the details in the images and video?",
},
]
# default:
prompt_without_id = processor.apply_chat_template(
conversation, add_generation_prompt=True
)
# add ids
prompt_with_id = processor.apply_chat_template(
conversation, add_generation_prompt=True, add_vision_id=True
)
The text was updated successfully, but these errors were encountered:
transformers.__version__
: '4.49.0.dev0'I have copied the exact code mentioned below. The command
prompt_without_id == prompt_with_id
givesTrue
. There is no effect ofadd_vision_id = True
, argument.The text was updated successfully, but these errors were encountered: