Skip to content

Add CLIP BetterTransformer#534

Merged
fxmarty merged 15 commits into
huggingface:mainfrom
fxmarty:add-clip-bettertransformer
Dec 8, 2022
Merged

Add CLIP BetterTransformer#534
fxmarty merged 15 commits into
huggingface:mainfrom
fxmarty:add-clip-bettertransformer

Conversation

@fxmarty

@fxmarty fxmarty commented Dec 2, 2022

Copy link
Copy Markdown
Contributor

The support is only for the vision model, as the text model uses causal attention that is likely not supported by PyTorch Better Transformer.

@HuggingFaceDocBuilderDev

HuggingFaceDocBuilderDev commented Dec 2, 2022

Copy link
Copy Markdown

The documentation is not available anymore as the PR was closed or merged.

Comment thread optimum/bettertransformer/transformation.py Outdated
@fxmarty
fxmarty requested a review from younesbelkada December 6, 2022 14:24
@fxmarty
fxmarty marked this pull request as ready for review December 6, 2022 14:24

@younesbelkada younesbelkada left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for working on this and adding CLIP support for BetterTransformer
I left a single comment, otherwise everything looks great
As you have touched one of the core transform function I would prefer to run the slow tests on GPU before merging. Let me run them tomorrow if that works for you.

Comment thread optimum/bettertransformer/models/encoder_models.py Outdated
@fxmarty

fxmarty commented Dec 8, 2022

Copy link
Copy Markdown
Contributor Author

Tests pass locally on GPU, so I'll merge. I don't think there is any workflow for GPU tests?

@fxmarty
fxmarty merged commit 1588a2e into huggingface:main Dec 8, 2022
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.

3 participants