Skip to content

[BUG] - Accelerating PyTorch Transformers by replacing nn.Transformer with Nested Tensors and torch.compile() #3176

Closed
@AdrianOrenstein

Description

@AdrianOrenstein

Add Link

https://pytorch.org/tutorials/intermediate/transformer_building_blocks.html

Describe the bug

Unfinished sentence in the tutorial:

"Thanks to this PR this is no longer the case. Instead, fully masked rows in scaled_dot_product_attention [missing text]. For cases where nn.MHA does not employ the “fast-path”, this will also apply."

Describe your environment

Brave Browser.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions