Spaces:
Runtime error
Runtime error
File size: 432 Bytes
e8bdafd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent))
from finetune.models.utils import get_model_cls
from finetune.schemas import Args
import torch
torch.backends.cuda.matmul.allow_tf32 = True
def main():
args = Args.parse_args()
trainer_cls = get_model_cls(args.model_name, args.training_type)
trainer = trainer_cls(args)
trainer.fit()
if __name__ == "__main__":
main()
|