LightCompress icon indicating copy to clipboard operation
LightCompress copied to clipboard

calib config bs=-1:RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 134 but got size 512 for tensor number 1 in the list

Open Worromots opened this issue 1 year ago • 0 comments

my calib dataset is c4

It seems that different samples have different lengths and cannot be directly torch.cat(samples, dim=0)。

llmc/llmc/data/dataset/base_dataset.py", line 89, in get_calib_dataset batch = torch.cat(samples, dim=0) RuntimeError: Sizes of tensors must match except in dimension 0. Expected size 134 but got size 512 for tensor number 1 in the list

Worromots avatar May 22 '24 08:05 Worromots