Skip to content

Add a prefixsuffixlm feature converter which accepts three inputs (inputs, targets and suffixes). Bidirectional attention is still used for inputs while unidirectional attention is for targets + suffixes. This feature converter only computes the loss over the suffixes.#429

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_506278157

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented Feb 3, 2023

Add a prefixsuffixlm feature converter which accepts three inputs (inputs, targets and suffixes). Bidirectional attention is still used for inputs while unidirectional attention is for targets + suffixes. This feature converter only computes the loss over the suffixes.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Feb 3, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@copybara-service copybara-service Bot changed the title Add a prefixsuffixlm feature converter which accepts three inputs (inputs, targets and suffixes). This feature converter only computes the loss over the suffixes. Add a prefixsuffixlm feature converter which accepts three inputs (inputs, targets and suffixes). Bidirectional attention is still used for inputs while unidirectional attention is for targets + suffixes. This feature converter only computes the loss over the suffixes. Feb 9, 2023
@copybara-service copybara-service Bot force-pushed the test_506278157 branch 2 times, most recently from 2fbe362 to cc07382 Compare February 9, 2023 12:04
…puts, targets and suffixes). Bidirectional attention is still used for inputs while unidirectional attention is for targets + suffixes. This feature converter only computes the loss over the suffixes.

PiperOrigin-RevId: 506278157
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.

0 participants