Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to define custom models #1284

Closed
thak123 opened this issue Feb 25, 2021 · 2 comments
Closed

Ability to define custom models #1284

thak123 opened this issue Feb 25, 2021 · 2 comments

Comments

@thak123
Copy link

thak123 commented Feb 25, 2021

Hi

I am planning to implement custom models on top of transformers but not using the in built classification functions.

Is this possible using the Jiant ?

@jeswan
Copy link
Collaborator

jeswan commented Feb 25, 2021

That should be possible. You can define your task-specific head by adding a new head to the registry (currently WIP but you can work off the feature branch: js/feature/easy_add_model. Task head factory commit is e004af8)

It is easiest to use models that are classes/subclasses of Transformers models. Let me know if you run into issues while implementing your model.

@thak123
Copy link
Author

thak123 commented Feb 25, 2021

Thanks for the pointer @jeswan

@jeswan jeswan closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants