Create pytorch_model.bin
Browse files- pytorch_model.bin +7 -0
pytorch_model.bin
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
|
3 |
+
# Assuming your fine-tuned model is named 'model' (replace it with your model's actual name)
|
4 |
+
ret_model.pth = ...
|
5 |
+
|
6 |
+
# Save the model state dictionary
|
7 |
+
torch.save(model.state_dict(), 'pytorch_model.bin')
|