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

[tooling] Vit comparison bench #117

Merged
merged 2 commits into from
Nov 22, 2021
Merged

[tooling] Vit comparison bench #117

merged 2 commits into from
Nov 22, 2021

Conversation

blefaudeux
Copy link
Contributor

What does this PR do?

Closes #108
Gives a way to compare end to end with an optimized PyTorch implementation
Interesting takeaways already

Before submitting

  • Did you have fun?
    • Make sure you had fun coding 🙃
  • Did you read the contributor guideline?
  • Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
    • N/A
  • Did you make sure to update the docs?
    • N/A
  • Did you write any new necessary tests?
    • N/A
  • Did you update the changelog? (if needed)
    • N/A

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 19, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #117 (9499a7a) into main (2d67cf2) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #117   +/-   ##
=======================================
  Coverage   87.22%   87.22%           
=======================================
  Files          49       49           
  Lines        2490     2490           
=======================================
  Hits         2172     2172           
  Misses        318      318           
Flag Coverage Δ
Python 87.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d67cf2...9499a7a. Read the comment docs.

Copy link
Contributor

@dianaml0 dianaml0 left a comment

Choose a reason for hiding this comment

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

Really awesome to have!

@blefaudeux blefaudeux merged commit 2eb8b65 into main Nov 22, 2021
xwhan pushed a commit to xwhan/xformers that referenced this pull request Feb 8, 2022
* handle input masking in the xformer blocks + unit test
* rand != randn.. thanks Diana !
xwhan pushed a commit to xwhan/xformers that referenced this pull request Feb 8, 2022
…, not attentions (facebookresearch#119)

* follow up from facebookresearch#117, macro blocks mask inputs, not attentions
* matching unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmark with Timm
4 participants