Update README.md
Browse files`glob.glob` may return the split files in the wrong order. Adding `sorted` to ensure concatenation is in `a,b,c` order.
README.md
CHANGED
@@ -785,7 +785,7 @@ Now join the three `split` files, which can be done with the following Python co
|
|
785 |
import glob
|
786 |
|
787 |
# Get the list of all files matching the pattern
|
788 |
-
files = glob.glob('gptq_model-4bit--1g.JOINBEFOREUSE.split-*.safetensors')
|
789 |
|
790 |
# Open the output file in binary write mode
|
791 |
with open('gptq_model-4bit--1g.safetensors', 'wb') as outfile:
|
|
|
785 |
import glob
|
786 |
|
787 |
# Get the list of all files matching the pattern
|
788 |
+
files = sorted(glob.glob('gptq_model-4bit--1g.JOINBEFOREUSE.split-*.safetensors'))
|
789 |
|
790 |
# Open the output file in binary write mode
|
791 |
with open('gptq_model-4bit--1g.safetensors', 'wb') as outfile:
|