Spaces:
Running
Running
File size: 442 Bytes
7d6b4cd 03f2ff2 7d6b4cd 03f2ff2 7d6b4cd 03f2ff2 7d6b4cd 03f2ff2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# init_save.py
import os
import torch
from evo_model import EvoTransformerForClassification, EvoTransformerConfig
# ✅ Ensure the directory exists
os.makedirs("trained_model", exist_ok=True)
# Create config and model instance
config = EvoTransformerConfig()
model = EvoTransformerForClassification(config)
# Save initial model and config
model.save_pretrained("trained_model")
print("✅ Initial EvoTransformer saved to trained_model/")
|