Skip to content

Added support for GraniteForSequenceClassification#35720

Open
berserkr wants to merge 1 commit intohuggingface:mainfrom
berserkr:support_for_GraniteForSequenceClassification
Open

Added support for GraniteForSequenceClassification#35720
berserkr wants to merge 1 commit intohuggingface:mainfrom
berserkr:support_for_GraniteForSequenceClassification

Conversation

@berserkr
Copy link

This PR adds support for sequence classification for granite-series models. It is based on the Llama for Seq. Classification implementation. Has been tested with various reward model implementations.

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, but the class might need test coverage! Can you copy/adapt tests from another SequenceClassification CLM class?

@berserkr
Copy link
Author

@Rocketknight1 will take a look and add the test. Thank you!

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Granite is now a modular supported file! Thus should be done in the modular file!

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.

3 participants