InternLM-XComposer icon indicating copy to clipboard operation
InternLM-XComposer copied to clipboard

interleav_wrap has no padding bug

Open liuheng0111 opened this issue 1 year ago • 4 comments

image There is no padding when wrap_embeds = torch.cat(wrap_embeds_list) in interleav_wrap function, Is this a bug in it?

liuheng0111 avatar Mar 05 '24 11:03 liuheng0111

Hi,have you solved this question? I met the same question.

TClan8023 avatar Mar 07 '24 11:03 TClan8023

The default batch size is 1 thus no padding.

yuhangzang avatar Mar 08 '24 08:03 yuhangzang

The default batch size is 1 thus no padding.

Hi, if I want to train or inference with a larger batch size, how do I modify the code?

Starfulllll avatar Mar 11 '24 03:03 Starfulllll

默认批量大小为 1,因此没有填充。

你好,如果我想用更大的批量进行训练或推理,我该如何修改代码?

你好,请问你现在解决padding的问题了吗?padding的数值应该是多少呢?

decreasbetter avatar May 21 '24 09:05 decreasbetter