[Bugfix] Fix f-string for Python 3.9-3.11 (#16962)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung 2025-04-22 12:45:55 +08:00 committed by GitHub
parent 71ce44047f
commit d6da9322c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -703,7 +703,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: