Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
verl
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhangXiaoyun
verl
Commits
8eb22b50
Unverified
Commit
8eb22b50
authored
Feb 24, 2025
by
BearBiscuit
Committed by
GitHub
Feb 24, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[docs] modify the comments (#363)
parent
d36422be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
verl/single_controller/ray/base.py
+2
-2
No files found.
verl/single_controller/ray/base.py
View file @
8eb22b50
...
@@ -333,8 +333,8 @@ class RayWorkerGroup(WorkerGroup):
...
@@ -333,8 +333,8 @@ class RayWorkerGroup(WorkerGroup):
return
ray
.
get
(
self
.
execute_all_async
(
method_name
,
*
args
,
**
kwargs
))
return
ray
.
get
(
self
.
execute_all_async
(
method_name
,
*
args
,
**
kwargs
))
def
execute_all_async
(
self
,
method_name
:
str
,
*
args
,
**
kwargs
):
def
execute_all_async
(
self
,
method_name
:
str
,
*
args
,
**
kwargs
):
#
这里我们假设,如果 args 和 kwargs 里面所有的参数都是 list,且所有的 list 长度都与 len(self._workers) 一致的话,我们会把
#
Here, we assume that if all arguments in args and kwargs are lists, and their lengths match len(self._workers),
#
list 中的每一个分别发到对应的 worker 上去
#
we'll distribute each element in these lists to the corresponding worker
# print(f"execute_all_async: method {method_name}({args}, {kwargs})")
# print(f"execute_all_async: method {method_name}({args}, {kwargs})")
length
=
len
(
self
.
_workers
)
length
=
len
(
self
.
_workers
)
if
all
(
isinstance
(
arg
,
list
)
for
arg
in
args
)
and
all
(
isinstance
(
kwarg
,
list
)
for
kwarg
in
kwargs
.
values
()):
if
all
(
isinstance
(
arg
,
list
)
for
arg
in
args
)
and
all
(
isinstance
(
kwarg
,
list
)
for
kwarg
in
kwargs
.
values
()):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment