Skip to content

[BUG] Wrong time unit in flops profiler #2240

Closed

Description

@yzs981130

Describe the bug
The elapsed time in flops_profiler gets by _get_elapsed_msec is msec now, introducing many time unit inconsistencies. #2090 and its fix #2095, and #1934 have resolved some of the misuses.

I mainly examined the MoE part and found the remaining below.

  1. The flop profiler log print the duration as ms
    https://github.com/microsoft/DeepSpeed/blob/fda63432ba67643d2f54885e45f0b2058fa2b937/deepspeed/runtime/engine.py#L1714-L1716
    However it is captured and *1000 manually
    https://github.com/microsoft/DeepSpeed/blob/fda63432ba67643d2f54885e45f0b2058fa2b937/deepspeed/moe/sharded_moe.py#L434

  2. The time breakdown log needs ms here
    https://github.com/microsoft/DeepSpeed/blob/fda63432ba67643d2f54885e45f0b2058fa2b937/deepspeed/runtime/engine.py#L2095-L2097

Similar issues: #2090 #1934

Activity

  1. added
    bug
    on Aug 19, 2022
  2. added a commit that references this issue on Aug 19, 2022
    3875b33
  3. yzs981130 commented on Aug 19, 2022

    @yzs981130
    ContributorAuthor
  4. added a commit that references this issue on Aug 20, 2022
    535c0b6
  5. added a commit that references this issue on Aug 25, 2022
    80f94c1
  6. added a commit that references this issue on Nov 8, 2022
    77020fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions