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

GemmaMLP: add missing approximation for LoRA and AdapterV2 variants #1178

Conversation

Andrei-Aksionov
Copy link
Collaborator

Hi there 👋

In #1004 I added GeLU approximation only to the base implementation and totally forgot about LoRA and AdapterV2 variants.

In added tests there is a pytest.mark.xfail because I couldn't fine the reason, at least for now.
When I moved all the tests from tests/test_model.py into LoRA and AdapterV2 tests (and replaced base GPT with the corresponding variant) all the tests passed, except for Gemma.

Later I'll come back to the test, most likely after #1031.

@carmocca carmocca merged commit 025a668 into Lightning-AI:main Mar 25, 2024
8 checks passed
@carmocca
Copy link
Contributor

Thank you!

@Andrei-Aksionov Andrei-Aksionov deleted the fix_gemma_mlp_approximation_for_lora branch March 25, 2024 10:40
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.

2 participants