InternLM / InternLM/xtuner

Potential boundary error in utils.py

Open
#562 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
5.2k
Forks
448
Avg merge
3d 15h
Merged PRs (30d)
26

Description

Hi there, in the file [utils.py](https://github.com/InternLM/xtuner/blob/main/xtuner/model/utils.py), there might be an error involving accessing beyond the boundary on line 208 for the operation `cur_inputs_embeds_no_im[i]`, when the IMAGE_TOKEN_INDEX is located at the end of the `input_ids`. Please consider to solve it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.