Create pytorch_model.bin
Browse files- pytorch_model.bin +5 -0
pytorch_model.bin
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
|
3 |
+
# Assuming `model` is your trained model
|
4 |
+
model_save_path = "pytorch_model.bin"
|
5 |
+
torch.save(model.state_dict(), model_save_path)
|