Skip to content

[doc] replace the removed colossalai.get_default_parser in the tutorials - #6579

Open
VenishPaneliya wants to merge 1 commit into
hpcaitech:mainfrom
VenishPaneliya:doc-launch-tutorial
Open

VenishPaneliya wants to merge 1 commit into
hpcaitech:mainfrom
VenishPaneliya:doc-launch-tutorial

Conversation

@VenishPaneliya

Copy link
Copy Markdown

colossalai.get_default_parser no longer exists. It only lives in colossalai/legacy/initialize.py and is not re-exported from the package root, so every documented call raises AttributeError: module 'colossalai' has no attribute 'get_default_parser'. This was reported in #5475 and the docs were never updated.

The two booster feature pages matter most: those code blocks sit past the doc-test-ignore-end marker and the pages carry a real doc-test-command, so docer test assembles a script that calls a function that is gone. args is not used anywhere else on those four pages, so the three lines just come out.

In launch_colossalai.md (en and zh-Hans) the parser section is replaced with a plain argparse setup that builds the same --host/--port/--rank/--world_size/--backend arguments launch_from_torch and friends read. After this grep -rn get_default_parser docs/ is empty; the remaining uses in examples/ are already qualified as colossalai.legacy.get_default_parser() or define their own parser.

colossalai.get_default_parser no longer exists outside colossalai.legacy
and is not re-exported, so every documented call to it raises
AttributeError. The launch tutorial now builds its own argparse parser,
and the two booster feature tutorials drop the parser lines entirely
because the args they produced were never used.

The launch tutorial also still required a config file, which launch() has
not taken for several releases.
@VenishPaneliya
VenishPaneliya requested a review from a team as a code owner November 28, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant