[XPU] refine memory release for sleep mode (#61158)

Signed-off-by: Yan Ma <yan.ma@intel.com>
This commit is contained in:
Yan Ma
2026-10-12 16:59:38 +08:00
committed by GitHub
parent 99b44c7a42
commit e05201aa2e
2 changed files with 12 additions and 21 deletions
@@ -211,12 +211,7 @@ class ShardedStateLoader(BaseModelLoader):
# TODO: support un-sharded checkpoints too
raise ValueError(
f"Could not find checkpoint files "
f"'{
os.path.join(
local_model_path,
rendered_pattern,
)
}', "
f"'{os.path.join(local_model_path, rendered_pattern)}', "
f"only pre-sharded checkpoints are currently supported!"
)
state_dict = self._filter_subtensors(model.state_dict())