mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[FDConfig] [PD Disaggregation] [Graph Optimization] Close Cudagraph for P node when PD Disaggregation (#4632)
* Close cudagraph for P node when PD Disaggregation * fix problem
This commit is contained in:
@@ -1547,6 +1547,8 @@ class FDConfig:
|
||||
self.cache_config.max_encoder_cache = 0
|
||||
|
||||
# Adjustment GraphOptConfig
|
||||
if self.scheduler_config is not None and self.scheduler_config.splitwise_role == "prefill":
|
||||
self.graph_opt_config.use_cudagraph = self.graph_opt_config.cudagraph_only_prefill
|
||||
if self.load_config is not None and self.load_config.dynamic_load_weight is True:
|
||||
self.graph_opt_config.graph_opt_level = 0
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user