Skip to content

[RFC] Support sharding LM heads and adopting Online Softmax #8173

Description

@jinyouzhi

Motivation

Online softmax and in-place computation could significantly save memory, especially for OPSD teacher TP sharding.

Keypoints

  • Support the sharding LM heads with gather_output=False of ColumnParallelLinear
  • Enabling parallel CE loss feature (integrating Liger kernel)
  • Profiling the GPU footprint to evaluate
  • Unify the untied and tied path for LM heads

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions