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

Implementing clip #11

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

Seun-Ajayi
Copy link
Contributor

Proposed changes

Implementing clip. See CLIPTextTransformer, line 449 and 455 both require _create_4d_causal_attention_mask and _prepare_4d_attention_mask respectively . You can find the implementation of this functions and the class the depend on here on transformers - https://github.com/huggingface/transformers/blob/main/src/transformers/modeling_attn_mask_utils.py

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • New Model Architecture
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

@Seun-Ajayi Seun-Ajayi marked this pull request as draft April 27, 2024 16:05
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.

1 participant