Doc and config changes from 2.7 branch#4023
Merged
chesterxgchen merged 9 commits intoNVIDIA:mainfrom Jan 23, 2026
Merged
Conversation
Contributor
Greptile OverviewGreptile SummaryThis PR cherry-picks changes from the 2.7 branch, primarily enhancing the Recipe API with configuration methods and script validation capabilities. Key Changes:
Review Findings:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Recipe
participant FedJob
participant ExecEnv
participant Utils
User->>Recipe: add_server_config(config)
Recipe->>Recipe: validate isinstance(config, dict)
alt Invalid type
Recipe-->>User: raise TypeError
end
Recipe->>FedJob: to_server(config)
User->>Recipe: add_client_config(config, clients)
Recipe->>Recipe: validate isinstance(config, dict)
alt Invalid type
Recipe-->>User: raise TypeError
end
alt clients is None
Recipe->>FedJob: to_clients(config)
else specific clients
loop for each client
Recipe->>FedJob: to(config, client)
end
end
User->>Recipe: execute(env)
Recipe->>ExecEnv: deploy(job)
ExecEnv->>Utils: _collect_non_local_scripts(job)
Utils->>Utils: check job._deploy_map for absolute paths
Utils-->>ExecEnv: return non_local_scripts[]
alt SimEnv/PocEnv
alt non_local_scripts not empty
ExecEnv-->>User: raise ValueError("scripts must exist locally")
end
else ProdEnv
loop for each non_local_script
ExecEnv->>ExecEnv: logger.warning("assuming pre-installed")
end
end
ExecEnv->>ExecEnv: proceed with deployment
ExecEnv-->>User: return job_id
|
Collaborator
Author
|
/build |
…NVIDIA#4017) 1. release notes 2. add available_recipes.rst 3. simplify user_guide -- move some of the user guides to programming_guide.rst A few sentences describing the changes proposed in this pull request. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Quick tests passed locally by running `./runtest.sh`. - [ ] In-line docstrings updated. - [ ] Documentation updated.
1. add swarm learning configuration 2. add tensor_downloader.rst 3. add update reference for tensor_downloader.rst Fixes # . ### Description A few sentences describing the changes proposed in this pull request. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Quick tests passed locally by running `./runtest.sh`. - [ ] In-line docstrings updated. - [ ] Documentation updated.
…functions 2. This allows one to specify the top level configs which previous unable to do 3. Update the swarm learning docs to leverage the new API 4. add tests
If file not exists with abs path, we will print warning for production, raise error for sim and poc
3e53cfc to
b4f902d
Compare
Collaborator
Author
|
/Build |
Collaborator
|
/build |
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.
Cherry picks
689315c - simplify the tests and doc string
2f4f2ae - fix a few mistakes
32d4880 - Expand recipe spec to add_server_config() and add_client_config() functions...
3abd08a - [2.7] Update product feature docs [skip ci] (#4018)
A few sentences describing the changes proposed in this pull request.
Types of changes
./runtest.sh.