Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang committed Feb 25, 2025
1 parent fbc4b1b commit 8c42110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift/llm/template/template/qwen.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def replace_tag(self, media_type: Literal['image', 'video', 'audio'], index: int
from qwen_vl_utils import fetch_image, fetch_video
assert media_type in {'image', 'video'}
if media_type == 'image':
# inputs.images[index] = fetch_image({'image': inputs.images[index]})
inputs.images[index] = fetch_image({'image': inputs.images[index]})
if self.mode == 'lmdeploy':
return ['<|vision_start|>', [-100], '<|vision_end|>']
else:
Expand Down

0 comments on commit 8c42110

Please sign in to comment.