mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[RL][Cherry-Pick] Fix the out-of-bounds issue caused by int32 in the R3 kernel (#7155)
* [RL]Perf: Optimize batch delete prefix and fused put in R3 (#6604) * Optimizate delete batch and fused put * refine code * refine code * refine code * Support suspend r3 * [RL] Fix R3 Empty bug with TP=1 (#6777) * Fix int32 overflow * refine code --------- Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
This commit is contained in:
@@ -1764,6 +1764,9 @@ class RouterConfig:
|
||||
else:
|
||||
self.metrics_port = self.api_server_port
|
||||
|
||||
def __str__(self):
|
||||
return json.dumps({key: value for key, value in self.__dict__.items()})
|
||||
|
||||
|
||||
class CommitConfig:
|
||||
"""
|
||||
@@ -1877,6 +1880,9 @@ class RoutingReplayConfig:
|
||||
"""
|
||||
return json.dumps({key: value for key, value in self.__dict__.items()})
|
||||
|
||||
def __str__(self):
|
||||
return self.to_json_string()
|
||||
|
||||
|
||||
class FDConfig:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user