[BUG] Fix file parsing for load_format runai_streamer_sharded (#26324)

Signed-off-by: ahao-anyscale <ahao@anyscale.com>
This commit is contained in:
ahao-anyscale
2025-10-06 20:23:07 -07:00
committed by GitHub
parent c6873c4e6d
commit 4dbdf4a294

View File

@ -121,7 +121,7 @@ class ShardedStateLoader(BaseModelLoader):
filepaths = []
if is_s3(local_model_path):
file_pattern = f"*{self.pattern.format(rank=rank, part=' * ')}"
file_pattern = f"*{self.pattern.format(rank=rank, part='*')}"
filepaths = s3_glob(path=local_model_path, allow_pattern=[file_pattern])
else:
filepaths = glob.glob(pattern)