[RL] support update_weights_from_distributed with different group and multiple weights (#7292)
This commit is contained in:
@@ -752,9 +752,13 @@ class UpdateWeightFromDiskReqOutput:
|
||||
|
||||
@dataclass
|
||||
class UpdateWeightsFromDistributedReqInput:
|
||||
name: str
|
||||
dtype: str
|
||||
shape: List[int]
|
||||
names: List[str]
|
||||
dtypes: List[str]
|
||||
shapes: List[List[int]]
|
||||
# The group name
|
||||
group_name: str = "weight_update_group"
|
||||
# Whether to flush the cache after updating weights
|
||||
flush_cache: bool = True
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in New Issue
Block a user