Unverified Commit d6da9322 authored by Cyrus Leung's avatar Cyrus Leung Committed by GitHub
Browse files

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


Signed-off-by: default avatarDarkLight1337 <tlleungac@connect.ust.hk>
parent 71ce4404
...@@ -703,7 +703,7 @@ class ShardedStateLoader(BaseModelLoader): ...@@ -703,7 +703,7 @@ class ShardedStateLoader(BaseModelLoader):
filepaths = [] filepaths = []
if is_s3(local_model_path): 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, filepaths = s3_glob(path=local_model_path,
allow_pattern=[file_pattern]) allow_pattern=[file_pattern])
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment