fix the runtimeError of in-place operation when use transformers for training

#18

align the input_embeds with internvl2 original code Line 152, which may lead in a runtime error in Line 119 in hf version when using hf version code for training.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment