Skip to content

[BUG]: Cannot find module 'colossalai.kernel.cuda_native' when run sequence_parallel example #5553

@ztorchan

Description

@ztorchan

🐛 Describe the bug

I noticed that after v0.3.5 of ColossalAI, the colossalai.kernel.cuda_native module seems to have been removed.

https://github.com/hpcaitech/ColossalAI/tree/8e412a548e5366d1c42bcf386bd185091bd0c280/colossalai/kernel

However, the statement from colossalai.kernel.cuda_native import LayerNorm still exists in examples/tutorial/sequence_parallel/model/layers/bert_layer.py,

from colossalai.kernel.cuda_native import LayerNorm

which leads to errors.

ModuleNotFoundError: No module named 'colossalai.kernel.cuda_native'

Is it normal?

Environment

python 3.10.10
cuda 11.6.1
torch 1.12.1

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