Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

[Text Generation] Causal Mask Feature Branch#1126

Merged
bfineran merged 12 commits into
mainfrom
feature/damian/causal_mask_fb
Jul 27, 2023
Merged

[Text Generation] Causal Mask Feature Branch#1126
bfineran merged 12 commits into
mainfrom
feature/damian/causal_mask_fb

Conversation

@dbogunowicz

@dbogunowicz dbogunowicz commented Jul 19, 2023

Copy link
Copy Markdown
Contributor

This is the feature branch that will aggregate a series of PRs that share a common goal: enable causal mask support in the text generation pipeline for all models that require it.

This PR alone introduces a function that computes a causal mask from the inputs to the model.

Includes

Testing

Refer to the PRs above

@dbogunowicz dbogunowicz requested review from bfineran and markurtz July 19, 2023 11:55
dbogunowicz and others added 5 commits July 20, 2023 08:08
* initial commit

* clean up the PR

* working implementation

* Ben's review comments
* initial commit

* clean up the PR

* working implementation

* initial implementation, hacky lets clean it up

* ready for review

* few tiny quality improvements

* simplify the logic for computing num of unmasked bits for creating attention_mask for the multitoken prefill
bfineran
bfineran previously approved these changes Jul 25, 2023
bfineran
bfineran previously approved these changes Jul 27, 2023
@bfineran bfineran merged commit c988fe7 into main Jul 27, 2023
@bfineran bfineran deleted the feature/damian/causal_mask_fb branch July 27, 2023 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants