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

bug report : RuntimeError: probability tensor contains either inf, nan or element < 0 #165

Open
seanxuu opened this issue Jan 18, 2024 · 0 comments

Comments

@seanxuu
Copy link

seanxuu commented Jan 18, 2024

When running infernce.py, if the input length is too long, it will report an error: RuntimeError: probability tensor contains either inf, nan or element < 0; you need to change a parameter in infernce.py at this time.
former:
torch_dtype=torch.float16
now:
torch_dtype=torch.bfloat16

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