Repository navigation
[doc] replace the removed colossalai.get_default_parser in the tutorials - #6579
Open
VenishPaneliya wants to merge 1 commit into
Open
VenishPaneliya wants to merge 1 commit into
VenishPaneliya wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
colossalai.get_default_parserno longer exists. It only lives incolossalai/legacy/initialize.pyand is not re-exported from the package root, so every documented call raisesAttributeError: 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-endmarker and the pages carry a realdoc-test-command, sodocer testassembles a script that calls a function that is gone.argsis 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 plainargparsesetup that builds the same--host/--port/--rank/--world_size/--backendargumentslaunch_from_torchand friends read. After thisgrep -rn get_default_parser docs/is empty; the remaining uses inexamples/are already qualified ascolossalai.legacy.get_default_parser()or define their own parser.