Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@Worromots
Copy link

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

@helloyongyang
Copy link
Collaborator

Please show me your config

@Harahan Harahan closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants