File size: 554 Bytes
bc1897b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

    # 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")
    ```