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

Warning with torch 2.5 and newer #47

Open
JonahMMay opened this issue Nov 10, 2024 · 0 comments
Open

Warning with torch 2.5 and newer #47

JonahMMay opened this issue Nov 10, 2024 · 0 comments

Comments

@JonahMMay
Copy link

JonahMMay commented Nov 10, 2024

.venv/lib/python3.12/site-packages/torch/nn/modules/transformer.py:379: UserWarning: enable_nested_tensor is True, but self.use_nested_tensor is False because encoder_layer.self_attn.batch_first was not True(use batch_first for better inference performance)
  warnings.warn(

Can this be updated to remove the warning and give better inference performance?

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