Expose CFG-parallel Transfer2.5 inference#233
Open
Glitchfix wants to merge 1 commit into
Open
Conversation
- Added a base-model setup flag for the existing CFG-parallel path so conditional and unconditional branches can run through context-parallel inference. - Validated the required full-world even context-parallel topology before model loading to fail fast instead of hanging distributed sends. - Documented the benchmark command and guarded the config surface so unrelated multiview setup classes stay unchanged. Signed-off-by: Shivanjan Chakravorty <shivanjanc@nvidia.com>
53b7d04 to
c8e146f
Compare
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.
Summary
WORLD_SIZEbefore model loading.Addresses #195.
Validation
PYENV_VERSION=3.12.9 PYTHONPATH=packages/cosmos-cuda:packages/cosmos-oss python -m pytest -q --noconftest -o addopts="" tests/config_test.pyPYENV_VERSION=3.12.9 python -m ruff format --check cosmos_transfer2/config.py cosmos_transfer2/inference.py cosmos_transfer2/_src/transfer2/inference/inference_pipeline.py tests/config_test.pyPYENV_VERSION=3.12.9 python -m ruff check cosmos_transfer2/config.py cosmos_transfer2/inference.py cosmos_transfer2/_src/transfer2/inference/inference_pipeline.py tests/config_test.pyPYENV_VERSION=3.12.9 python -m py_compile cosmos_transfer2/config.py cosmos_transfer2/inference.py cosmos_transfer2/_src/transfer2/inference/inference_pipeline.py tests/config_test.pygit diff --checkuvx pre-commit run --files cosmos_transfer2/config.py cosmos_transfer2/inference.py cosmos_transfer2/_src/transfer2/inference/inference_pipeline.py docs/inference.md tests/config_test.pyNotes
transformer_engine(libcudnn_graph.so.9).