cpt core 4
Browse files
scripts/convert_pth_to_safetensors.py
CHANGED
@@ -4,8 +4,8 @@ import torch
|
|
4 |
from safetensors.torch import save_file
|
5 |
|
6 |
|
7 |
-
checkpoint_dir = '../out/
|
8 |
-
output_dir = '../out/
|
9 |
|
10 |
state_dict = torch.load(os.path.join(checkpoint_dir, 'model.pth'))
|
11 |
save_file(state_dict, os.path.join(output_dir, 'model.safetensors'))
|
|
|
4 |
from safetensors.torch import save_file
|
5 |
|
6 |
|
7 |
+
checkpoint_dir = '../out/cpt-core-pre-4'
|
8 |
+
output_dir = '../out/cpt-core-pre-4'
|
9 |
|
10 |
state_dict = torch.load(os.path.join(checkpoint_dir, 'model.pth'))
|
11 |
save_file(state_dict, os.path.join(output_dir, 'model.safetensors'))
|