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

Generation error #33

Open
MaxwellJryao opened this issue Sep 8, 2024 · 0 comments
Open

Generation error #33

MaxwellJryao opened this issue Sep 8, 2024 · 0 comments

Comments

@MaxwellJryao
Copy link

There's an error while I ran the generation code. For example, xlora_model.generate(torch.randint(100, 1000, (1, 8)).to('cuda'), max_new_tokens=1) throws:
RuntimeError: The expanded size of the tensor (16) must match the existing size (8) at non-singleton dimension 3. Target sizes: [1, 12, 8, 16]. Tensor sizes: [1, 1, 8, 8]
How could I resolve this?

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

1 participant