Skip to content

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