Skip to content

loss NAN when load original zimage weights #21

@pyx-ustc

Description

@pyx-ustc

While reproducing TwinFlow training on Z-Image, we found that when the transformer loads the original weights , the loss becomes NaN. After debugging, we traced the issue to the forward function in transformer_z_image.py where the NaNs are introduced by the variables at lines 95–96: t_emb = t_emb + \ t_emb_2 * delta_t_abs.unsqueeze(1)

Image

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