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

Allow the model to be trained with most frameworks. #188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deroholic
Copy link
Contributor

If labels are passed to the model along with the input_ids, it will return the loss. Otherwise it functions the same as it did originally. This allows it to be used for training as-is with most frameworks.

@albertfgu albertfgu force-pushed the main branch 2 times, most recently from 6d45666 to 41d30ce Compare June 3, 2024 12:56
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