fix: Path conversion for shard_path
This commit is contained in:
@@ -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