Skip to content

Potential float mismatch between training inputs and model params #69

Description

@kbcoulter

Possible dtype mismatch. Model parameters are bfloat16 but training inputs are float32.

I believe that the .float() linked below casts to float32 and breaks anytime model params were created with --bfloat16.

x_tensor = x_tensor.to(device).float()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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