Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mbridge/core/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def _save_weights_fast(
) -> None:
if len(glob(os.path.join(weights_path, "*.safetensors"))) > 0:
raise ValueError(f"The path:{weights_path} should not has safetensors files")
torch.distributed.barrier()

def encode_filename(mcore_weight_name, *values):
return mcore_weight_name + '--' + '--'.join(
Expand Down