Skip to content

Explicit casting instead of autocasting #35

@lminer

Description

@lminer

torch.compile doesn't play nicely with amp autocasting and occasionally there are issues when exporting to onnx or other formats. Would explicit fasting to float and back be preferrable. This appears to be the torchtune approach: https://pytorch.org/torchtune/stable/_modules/torchtune/modules/position_embeddings.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions