-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[doc] [1/N] Adding doc strings and doc pages for public methods in single_controller
#1396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5e7f5e7
adding doc string and docs for single controller
hongpeng-guo 968c800
add doc string for public methods for single controller
hongpeng-guo 2413c80
fix lint
hongpeng-guo 752a5be
handle comments
hongpeng-guo 7aa7b01
merge with main
hongpeng-guo a05690c
update doc
hongpeng-guo c5f616f
fix some docs errors
hongpeng-guo da4837a
add doc test pipeline
hongpeng-guo 1b9cf91
update pipeline
hongpeng-guo 0de7ee2
update pipeline
hongpeng-guo 042ef6f
update pipeline
hongpeng-guo f10305c
update pipeline
hongpeng-guo d9cc14e
update pipeline
hongpeng-guo 17dabae
update pipeline
hongpeng-guo 8752526
remove the deply module
hongpeng-guo e04f4ee
remove redundant apis of single controller
hongpeng-guo 4f878e3
Merge branch 'main' into hpguo/doc
hongpeng-guo 110c8f2
fix merge errror
hongpeng-guo 632189b
fix some doc strings
hongpeng-guo 66ceeec
Merge remote-tracking branch 'origin' into hpguo/doc
hongpeng-guo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: doc_test | ||
|
|
||
| on: | ||
| # Trigger the workflow on push or pull request, | ||
| # but only for the main branch | ||
| push: | ||
| branches: | ||
| - main | ||
| - v0.* | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - v0.* | ||
| paths: | ||
| - "**/*.py" | ||
| - "docs/**" | ||
| - .github/workflows/doc.yml | ||
|
|
||
| # Cancel jobs on the same ref if a new one is triggered | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
|
||
| # Declare permissions just read content. | ||
| permissions: | ||
| contents: read # for checkout | ||
| pages: write # for deploy-pages | ||
| id-token: write # for deploy-pages | ||
|
|
||
| jobs: | ||
| doc_test: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 # Increase this timeout value as needed | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10"] | ||
| steps: | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install the current repository | ||
| run: | | ||
| pip install -e .[test] | ||
| pip install -r docs/requirements-docs.txt | ||
|
|
||
| - name: Run doc make html | ||
| run: | | ||
| cd docs | ||
| make clean | ||
| make html |
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| Single Controller interface | ||
| ============================ | ||
|
|
||
| The Single Controller provides a unified interface for managing distributed workers | ||
| using Ray or other backends and executing functions across them. | ||
| It simplifies the process of dispatching tasks and collecting results, particularly | ||
| when dealing with data parallelism or model parallelism. | ||
|
|
||
|
|
||
| Core APIs | ||
| ~~~~~~~~~~~~~~~~~ | ||
|
|
||
| .. autoclass:: verl.single_controller.Worker | ||
| :members: __init__, __new__, get_master_addr_port, get_cuda_visible_devices, world_size, rank | ||
|
|
||
| .. autoclass:: verl.single_controller.WorkerGroup | ||
| :members: __init__, world_size | ||
|
|
||
| .. autoclass:: verl.single_controller.ClassWithInitArgs | ||
| :members: __init__, __call__ | ||
|
|
||
| .. autoclass:: verl.single_controller.ResourcePool | ||
| :members: __init__, world_size, local_world_size_list, local_rank_list | ||
|
|
||
| .. automodule:: verl.single_controller.ray | ||
hongpeng-guo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| :members: RayWorkerGroup, create_colocated_worker_cls | ||
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.