Skip to content

[BUG] some triton kernels are unable to handle tensors whose shapes aren't divisible by 16, 32, or 64. #19

@MaxwellDing

Description

@MaxwellDing

I encountered NaNs when training wan-2.1, NaN tensor in shape (1536, 1560) . Upon investigation, I found that some triton kernels in coat don't use boundary checks for load and store operations. This leads to memory corruption, which in turn causes NaN outputs.

kernels: transpose, division, division_transpose...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions