Skip to content

Commit

Permalink
fix grpo trainer (#3120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang authored Feb 14, 2025
1 parent e438a5e commit 235c117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift/trainers/rlhf_trainer/grpo_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(self,
profiling_patch = patch(
'vllm.worker.worker.Worker._assert_memory_footprint_increased_during_profiling', return_value=None)
from swift.tuners import Swift
with world_size_patch, profiling_patch, Swift.grpo_context(model, self.processor):
with world_size_patch, profiling_patch, Swift.grpo_context(model, self.template.processor):
self.engine = VllmEngine(
model.model_dir,
model.model_info.torch_dtype,
Expand Down

0 comments on commit 235c117

Please sign in to comment.