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

Tensor sizes are printed while running .generate function #211

Open
chopra-anuj opened this issue Oct 19, 2023 · 0 comments
Open

Tensor sizes are printed while running .generate function #211

chopra-anuj opened this issue Oct 19, 2023 · 0 comments

Comments

@chopra-anuj
Copy link

When I run .generate function of any of the 3b/7b/12b model, I get continuously tensor sizes printed which looks like torch.Size([1, 510])
torch.Size([1, 40, 509, 128])
torch.Size([1, 1])
torch.Size([1, 511])
torch.Size([1, 40, 510, 128])
torch.Size([1, 1])
.........

I think in code somewhere print( X.shape ) is written which is creating problem. I tried using Huggingface pipeline also but same problem.
I do not encounter this problem while using any other LLM model

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