Skip to content

Ray CPU OOM with Megatron backend on long sequences and large node count #3650

@jiaqiw09

Description

@jiaqiw09

When computing log probabilities in the Megatron backend, values are cast to float32, which increases CPU usage in ray.get. Would it be possible to retain the original bfloat16 dtype, or is float32 required to avoid precision loss?

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