Skip to content

fix mm tokentypeids splitting#170

Merged
tastelikefeet merged 2 commits intomodelscope:mainfrom
tastelikefeet:fix/0419-1
Apr 19, 2026
Merged

fix mm tokentypeids splitting#170
tastelikefeet merged 2 commits intomodelscope:mainfrom
tastelikefeet:fix/0419-1

Conversation

@tastelikefeet
Copy link
Copy Markdown
Collaborator

PR type

  • Bug Fix
  • New Feature
  • Document Updates
  • More Models or Datasets Support

PR information

Write the detail information belongs to this PR.

Experiment results

Paste your experiment result here(if needed).

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the to_tensor utility in src/twinkle/processor/base.py to include completion_mask and mm_token_type_ids in the tensor conversion logic. A review comment identified a potential IndexError when processing empty lists and suggested consolidating the new conditions with existing logic to improve code safety and maintainability.

Comment thread src/twinkle/processor/base.py
@tastelikefeet tastelikefeet merged commit 4b9e9b4 into modelscope:main Apr 19, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant