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
8bf9b95a
Unverified
Commit
8bf9b95a
authored
Jan 27, 2025
by
Guangming Sheng
Committed by
GitHub
Jan 27, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[misc] fix: only return old_log_prob and temp to fix union problem in old_log_prob (#137)
- As titled
parent
a63f4a0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
verl/workers/fsdp_workers.py
+4
-4
No files found.
verl/workers/fsdp_workers.py
View file @
8bf9b95a
...
@@ -468,11 +468,11 @@ class ActorRolloutRefWorker(Worker):
...
@@ -468,11 +468,11 @@ class ActorRolloutRefWorker(Worker):
# perform recompute log_prob
# perform recompute log_prob
with
self
.
ulysses_sharding_manager
:
with
self
.
ulysses_sharding_manager
:
data
=
self
.
ulysses_sharding_manager
.
preprocess_data
(
data
)
data
=
self
.
ulysses_sharding_manager
.
preprocess_data
(
data
)
old_log_probs
=
self
.
actor
.
compute_log_prob
(
data
=
data
)
output
=
self
.
actor
.
compute_log_prob
(
data
=
data
)
data
.
batch
[
'old_log_probs'
]
=
old_log_probs
output
=
DataProto
.
from_dict
(
tensors
=
{
'old_log_probs'
:
output
},
data
=
self
.
ulysses_sharding_manager
.
postprocess_data
(
data
)
meta_info
=
{
'temperature'
:
self
.
config
.
rollout
.
temperature
})
output
=
self
.
ulysses_sharding_manager
.
postprocess_data
(
output
)
output
=
data
.
select
(
batch_keys
=
[
'old_log_probs'
])
output
=
output
.
to
(
'cpu'
)
output
=
output
.
to
(
'cpu'
)
# https://pytorch.org/docs/stable/notes/fsdp.html#fsdp-notes
# https://pytorch.org/docs/stable/notes/fsdp.html#fsdp-notes
...
...
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