-
Notifications
You must be signed in to change notification settings - Fork 588
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
Adjust reward model's score module and pooler module order for reducing computation #1956
Conversation
|
||
def load_weights(self, weights: Iterable[Tuple[str, torch.Tensor]]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you also simplify the weight loader of LlamaForSequenceClassification
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the lint error? |
@aqweteddy Thanks for the contribution. It is merged. |
Motivation
Modifications
pooler
andscore
modules inclass LlamaForSequenceClassification
andclass Gemma2ForSequenceClassification
to reduce computation.Checklist