diff --git a/fastdeploy/engine/sched/resource_manager_v1.py b/fastdeploy/engine/sched/resource_manager_v1.py index 1b49dfcec..f0c0a52f1 100644 --- a/fastdeploy/engine/sched/resource_manager_v1.py +++ b/fastdeploy/engine/sched/resource_manager_v1.py @@ -329,7 +329,7 @@ class ResourceManagerV1(ResourceManager): token_st += h * w // 4 inputs["mm_positions"] = new_mm_positions inputs["mm_hashes"] = new_mm_hashes - else: + elif inputs.get("mm_positions", None) is None or inputs.get("mm_hashes", None) is None: inputs["mm_positions"] = [] inputs["mm_hashes"] = []