fix: Path conversion for shard_path
This commit is contained in:
1 parent
3498a40390
commit
d2dde1079f
1 file changed
+1
-1
@@ -31,7 +31,7 @@ def convert_shards(model_path):
|
||||
print(f" Skipping non-tensor: {key} ({type(value)})")
|
||||
|
||||
# Save as safetensors
|
||||
new_path = output_path / shard_path.name
|
||||
new_path = output_path / Path(shard_path).name
|
||||
save_file(tensors, new_path)
|
||||
print(f" ✓ Saved {len(tensors)} tensors")
|
||||
|
||||
|
||||
Reference in new issue
Block a user