Skip to content

Question about loss weighting and reduction #17

@zjr2000

Description

@zjr2000

unscaled_loss = torch.nn.functional.cross_entropy(

Thanks for your great job! I have a question about the loss weighing and reduction.

LLaDA and SDAR use weigted loss, they multiple the loss by 1/p_mask, but here you just use a uniform loss across all masked positions.

Do you know their difference? Which one is more stable? Looking forward to your reply!

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