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

Simplifying the use of the model to perform different tasks #25

Merged
merged 14 commits into from
Jul 18, 2018

Conversation

rodgzilla
Copy link
Contributor

This patch contains the code discussed about in #24.

Its goal is to simplify the allow users to use this model for many different tasks, as presented in the research paper. For example, let's say you want to finetune the network to classify texts, you just have to create a DoubleHeadModel with a classification head and use the ClassificationLossCompute class.

The SimilarityHead has not been tested yet and the SimilarityLossCompute is missing as I don't know how this kind of task works.

@rodgzilla rodgzilla changed the title Simplifying the use of the model to different tasks Simplifying the use of the model to perform different tasks Jul 16, 2018
@thomwolf thomwolf merged commit 561d409 into huggingface:master Jul 18, 2018
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

Successfully merging this pull request may close these issues.

2 participants