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
656accb0
Unverified
Commit
656accb0
authored
Feb 25, 2025
by
湛露先生
Committed by
GitHub
Feb 24, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rollout: Fix navive_rollout class names. (#361)
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
parent
8eb22b50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
verl/workers/reward_model/megatron/reward_model.py
+2
-7
verl/workers/rollout/naive/naive_rollout.py
+1
-1
No files found.
verl/workers/reward_model/megatron/reward_model.py
View file @
656accb0
...
...
@@ -16,20 +16,15 @@ Megatron Reward Model.
"""
from
tensordict
import
TensorDict
from
functools
import
partial
from
verl
import
DataProto
from
verl.utils.torch_functional
import
logprobs_from_logits
import
torch
import
torch
import
torch.distributed
from
verl.utils.torch_functional
import
get_eos_mask
,
pad_sequence_to_length
from
verl.utils.torch_functional
import
pad_sequence_to_length
from
verl.utils.megatron.pipeline_parallel
import
(
compute_transformers_input_shapes
,
make_batch_generator
)
from
verl
import
DataProto
from
verl.utils.torch_functional
import
logprobs_from_logits
,
broadcast_dict_tensor
,
split_dict_tensor_into_batches
from
verl.utils.torch_dtypes
import
PrecisionType
from
verl.utils.torch_functional
import
broadcast_dict_tensor
,
split_dict_tensor_into_batches
from
verl.workers.reward_model.base
import
BasePPORewardModel
from
verl.utils.megatron
import
sequence_parallel
as
sp_utils
from
megatron.core
import
parallel_state
as
mpu
from
megatron.core.pipeline_parallel
import
get_forward_backward_func
...
...
verl/workers/rollout/naive/naive_rollout.py
View file @
656accb0
...
...
@@ -30,7 +30,7 @@ from verl import DataProto
from
verl.utils.torch_functional
import
logprobs_from_logits
from
..base
import
BaseRollout
__all__
=
[
'Na
t
iveRollout'
]
__all__
=
[
'NaiveRollout'
]
class
NaiveRollout
(
BaseRollout
):
...
...
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