Using Huggingface Trainer for custom models

I think HF trainer API is specifically for transformers but not for other models.