From 00d69846608b428f59bb7ebd3d16f7b99a893259 Mon Sep 17 00:00:00 2001 From: Hongsheng Liu Date: Sun, 6 Sep 2026 16:12:19 +0800 Subject: [PATCH] [Bugfix] Skip HWR store-size scans when no limit is configured Signed-off-by: Hongsheng Liu --- vllm_omni/host_weight_runtime/filesystem/store.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vllm_omni/host_weight_runtime/filesystem/store.py b/vllm_omni/host_weight_runtime/filesystem/store.py index 0f01e36dac5..2b58b77e874 100644 --- a/vllm_omni/host_weight_runtime/filesystem/store.py +++ b/vllm_omni/host_weight_runtime/filesystem/store.py @@ -1247,8 +1247,10 @@ def _check_capacity(self, projected_artifact_bytes: int, additional_bytes: int) retryable=True, ) ) - store_bytes = self._tree_bytes(self.root) - if policy.max_store_bytes is not None and store_bytes + additional_bytes > policy.max_store_bytes: + if ( + policy.max_store_bytes is not None + and self._tree_bytes(self.root) + additional_bytes > policy.max_store_bytes + ): raise HostWeightError( _failure( ResolutionStage.CAPACITY,