Skip to content

[BUG] - Depracate the usage of Nested Tensors #3727

@svekars

Description

@svekars

Add Link

intermediate_source/transformer_building_blocks.py
unstable_source/nestedtensor.py
pytorch/pytorch#171814

Describe the bug

intermediate_source/transformer_building_blocks.py

We need to depracate the usage of NestedTensors in all tutorials and replace with varlen attention.
We put a warning to not use them but we should provide what should be used instead.

Describe your environment

  • PyTorch 2.10

cc @albanD @jbschlosser

Metadata

Metadata

Assignees

No one assigned

    Labels

    TensorsIssues relating to tensors (generic issues/questions or specific tensor tutorials)bugcoreTutorials of any level of difficulty related to the core pytorch functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions