# Model Checkpoint Parts | |
This checkpoint is split into 4 parts. | |
To reconstruct the model file, run: | |
```python | |
import os | |
def join_files(base_path, num_parts, output_path): | |
with open(output_path, 'wb') as outfile: | |
for i in range(num_parts): | |
part_path = f"{base_path}.part{i}" | |
with open(part_path, 'rb') as infile: | |
outfile.write(infile.read()) | |
# Usage: | |
join_files("mp_rank_00_model_states.pt", 4, "savanna_evo2_40b_base.pt") | |
``` | |