Skip to content

Commit 20e9ffb

Browse files
authored
Merge pull request #65 from ISEEKYAN/gyhe/fix
fix raise error
2 parents 715ba9d + 2e4ff37 commit 20e9ffb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mbridge/core/bridge.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def _save_weights_fast(
267267
) -> None:
268268
if len(glob(os.path.join(weights_path, "*.safetensors"))) > 0:
269269
raise ValueError(f"The path:{weights_path} should not has safetensors files")
270+
torch.distributed.barrier()
270271

271272
def encode_filename(mcore_weight_name, *values):
272273
return mcore_weight_name + '--' + '--'.join(

0 commit comments

Comments
 (0)