Skip to content

[BUG]: No module named 'dropout_layer_norm' #5726

Closed

Description

@apachemycat

Is there an existing issue for this bug?

🐛 Describe the bug

ModuleNotFoundError: No module named 'dropout_layer_norm'
[2024-05-17 03:23:11,932] torch.distributed.elastic.multiprocessing.api: [ERROR] failed (exitcode: 1) local_rank: 0 (pid: 615) of binary: /usr/bin/python

dropout_layer_norm is depreated by flash_attn ,so If any other choise ?

Environment

No response

Activity

  1. duanjunwen commented on Jun 11, 2024

    @duanjunwen
    Contributor

    Hi @apachemycat , would you mind sharing the version of flash_atten in your environment? I am using flash-attn==2.5.7 , looks all good. Also, you can replace dropout_layer_norm with torch.nn.functional.layer_norm
    & dropout, although kernel acceleration may not supported now.

  2. zhurunhua commented on Jul 18, 2024

    @zhurunhua
    Contributor

    watching...

  3. JazyJiang commented on Oct 16, 2026

    @JazyJiang
    Collaborator

    Thanks for the report, and sorry for the long silence. The current main no longer references dropout_layer_norm, so this import error should not occur with an up-to-date installation. Our project requirements have also been cleaned up recently (#6456). Closing for now. If you still hit this on the latest main, please reopen with the full traceback and your torch / flash-attn / ColossalAI versions.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions