Update pytorch_model.bin
Browse files- pytorch_model.bin +11 -0
pytorch_model.bin
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import GPT2LMHeadModel
|
| 2 |
+
|
| 3 |
+
# Create model with random weights
|
| 4 |
+
model = GPT2LMHeadModel.from_pretrained("gpt2")
|
| 5 |
+
|
| 6 |
+
# Save the model weights
|
| 7 |
+
model.save_pretrained("LopezLLM")
|
| 8 |
+
|
| 9 |
+
# Verify the saved files
|
| 10 |
+
import os
|
| 11 |
+
print("Saved files:", os.listdir("LopezLLM"))
|