[FDConfig]Remove splitwise_role and engine_worker_queue_port in FDConfig (#4147)
Some checks failed
CE Compile Job / ce_job_pre_check (push) Has been cancelled
CE Compile Job / print_ce_job_pre_check_outputs (push) Has been cancelled
CE Compile Job / FD-Clone-Linux (push) Has been cancelled
CE Compile Job / Show Code Archive Output (push) Has been cancelled
CE Compile Job / BUILD_SM8090 (push) Has been cancelled
CE Compile Job / BUILD_SM8689 (push) Has been cancelled
CE Compile Job / CE_UPLOAD (push) Has been cancelled
Deploy GitHub Pages / deploy (push) Has been cancelled

* remove splitwise_role and engine_worker_queue_port

* fix xpu

* fix xpu

* fix xpu

* fix unittest

* resolve conflct
This commit is contained in:
YuanRisheng
2025-09-19 17:01:52 +08:00
committed by GitHub
parent ee9d8a840a
commit 24180fba0a
23 changed files with 129 additions and 89 deletions

View File

@@ -15,6 +15,7 @@
"""
import unittest
from unittest.mock import Mock
import numpy as np
import paddle
@@ -91,11 +92,13 @@ class TestGraphOptBackend(unittest.TestCase):
baseline_cache_config = CacheConfig({})
baseline_parallel_config = ParallelConfig(args={})
model_config = Mock()
self.baseline_fd_config = FDConfig(
graph_opt_config=baseline_graph_opt_config,
scheduler_config=baseline_scheduler_config,
cache_config=baseline_cache_config,
parallel_config=baseline_parallel_config,
model_config=model_config,
test_mode=True,
)
@@ -137,6 +140,7 @@ class TestGraphOptBackend(unittest.TestCase):
# Setup cache config
cache_config = CacheConfig({})
parallel_config = ParallelConfig(args={})
model_config = Mock()
# Create FD config
return FDConfig(
@@ -144,6 +148,7 @@ class TestGraphOptBackend(unittest.TestCase):
scheduler_config=scheduler_config,
cache_config=cache_config,
parallel_config=parallel_config,
model_config=model_config,
test_mode=True,
)