Skip to content

[BUG]: import error #3531

Closed as not planned
Closed as not planned

Description

@yingtongxiong

🐛 Describe the bug

when i run the example in your tutorials (basic/colotensor), I met some problems.
Traceback (most recent call last):
File "colossalai-study/run_dist.py", line 8, in
from colossalai.testing import spawnfrom colossalai.testing import spawn

from colossalai.testing import spawnImportErrorImportError

: : cannot import name 'spawn' from 'colossalai.testing'

How can I solve it?

Environment

No response

Activity

  1. binmakeswell commented on Apr 17, 2023

    @binmakeswell
    Member

    Hi @yingtongxiong Sorry, we are currently in high-speed updates and the document may be a bit outdated. We suggest that you use images and language under example for testing. Thanks.
    https://github.com/hpcaitech/ColossalAI/tree/main/examples

  2. JazyJiang commented on Oct 22, 2026

    @JazyJiang
    Collaborator

    Hi, thanks for reporting this, and sorry it went unanswered for so long. We're going through older issues and closing the ones that no longer apply to the current codebase. It concerns an older release, example or interface, and the components involved have changed substantially since then. We're marking it as stale and will close it in 14 days. If you still see this problem with the latest ColossalAI on PyTorch 2.x, please comment here (or open a new issue) with your environment and a minimal reproduction, and we'll take a look.

  3. JazyJiang commented on Nov 5, 2026

    @JazyJiang
    Collaborator

    Closing this issue since there has been no response in the 14 days after it was marked as stale. If you still run into this problem with the latest ColossalAI on PyTorch 2.x, please open a new issue using the bug report template, with your environment and a minimal reproduction.

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 workingstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions