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

apply sdpa for mpt and internlm #676

Merged
merged 12 commits into from
Apr 30, 2024
Merged

Conversation

eaidova
Copy link
Collaborator

@eaidova eaidova commented Apr 22, 2024

What does this PR do?

optimize mpt and internlm models with scaled dot product attention
fixed export baichuan-13b model

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@eaidova
Copy link
Collaborator Author

eaidova commented Apr 23, 2024

@echarlaix could you please take a look?

@AlexKoff88
Copy link
Collaborator

Can we have a test for each model architecture that is updated in this PR?

@eaidova
Copy link
Collaborator Author

eaidova commented Apr 24, 2024

Can we have a test for each model architecture that is updated in this PR?

this is update for models that are already in testing, I added only baichuan based on different code version in tests, mpt and internlm are remain without changes

@eaidova eaidova force-pushed the ea/mpt_sdpa branch 2 times, most recently from cd9633c to ad62a15 Compare April 24, 2024 16:37
@eaidova eaidova requested review from AlexKoff88 and echarlaix April 24, 2024 16:37
tests/openvino/utils_tests.py Outdated Show resolved Hide resolved
@echarlaix echarlaix merged commit e1b6a59 into huggingface:main Apr 30, 2024
11 checks passed
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.

4 participants