mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-18 16:07:17 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
32b2148670
commit
08a1244ef1
@ -530,4 +530,4 @@ class GRPOConsumer(BaseConsumer):
|
|||||||
model = self.policy_model.unwrap()
|
model = self.policy_model.unwrap()
|
||||||
state_dict = model.state_dict()
|
state_dict = model.state_dict()
|
||||||
state_dict["consumer_global_step"] = torch.tensor([self.global_step], device=self.device)
|
state_dict["consumer_global_step"] = torch.tensor([self.global_step], device=self.device)
|
||||||
return state_dict
|
return state_dict
|
||||||
|
@ -273,7 +273,7 @@ class Qwen3PipelineForwards:
|
|||||||
hidden_states: Optional[torch.FloatTensor] = None,
|
hidden_states: Optional[torch.FloatTensor] = None,
|
||||||
stage_index: Optional[List[int]] = None,
|
stage_index: Optional[List[int]] = None,
|
||||||
shard_config: ShardConfig = None,
|
shard_config: ShardConfig = None,
|
||||||
**kwargs
|
**kwargs,
|
||||||
):
|
):
|
||||||
r"""
|
r"""
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
Reference in New Issue
Block a user