You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
#6
Closed
Worromots opened this issue
May 22, 2024
· 1 comment
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: