[Diffusion] Simplify DLO host plan setup
Signed-off-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
6bcd350301
commit
58eebee14b
7 files changed
+77
-37
No files matched your search
@@ -86,7 +86,7 @@ def get_offload_backend(
|
||||
# Extract and validate configuration
|
||||
config = OffloadConfig.from_od_config(od_config)
|
||||
|
||||
plan_requires_backend = host_weight_plan is not None and not host_weight_plan.post_load_complete
|
||||
plan_requires_backend = host_weight_plan is not None and host_weight_plan.requires_backend
|
||||
if host_weight_plan is not None and config.strategy != OffloadStrategy.DISTRIBUTED_LAYER_WISE:
|
||||
if plan_requires_backend:
|
||||
raise RuntimeError(
|
||||
|
||||
Reference in new issue
Block a user