pranavajay commited on
Commit
53e0cf3
·
verified ·
1 Parent(s): 0f3c0d3

Create fix.py

Browse files
Files changed (1) hide show
  1. fix.py +9 -0
fix.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from safetensors.torch import load_file
2
+
3
+ # Step 1: Load the safetensors file
4
+ checkpoint_path = 'flowgram.safetensors' # Replace with your actual file path
5
+ checkpoint = load_file(checkpoint_path)
6
+
7
+ # Step 2: Print the size (shape) of each tensor
8
+ for tensor_name, tensor in checkpoint.items():
9
+ print(f"Tensor Name: {tensor_name}, Size: {tensor.shape}")