-
Notifications
You must be signed in to change notification settings - Fork 27k
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
[Feature Request] LLaMA task implementation for TokenClassification #26521
Comments
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
I've just written tentative
|
Feature request
Hi,
I was trying to compare LLaMA 2 to the Roberta based model I used in a (soon to be published) study.
For Roberta, I implemented a version of token classification that outputs the one hot encodings.
However, it doesn't work with LLaMA because of optimisations done elsewhere in the code.
This works
But this doesn't
Motivation
It would be nice to have access to larger models for this task.
In the code I've put an example of what I would like to have.
LlamaForTokenClassification.zip
Your contribution
There's my attampt at doing it :)
When I run it using the default Trainer, I get an error about CUDA
The issue shows a mismatch in size, but I don't see where the issue occurs.
Using the SFTTrainer, I get a NotImplemented exception.
The text was updated successfully, but these errors were encountered: