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

LoRA test: check that all the tensors are materialized. #1395

Merged
merged 1 commit into from
May 7, 2024

Conversation

Andrei-Aksionov
Copy link
Collaborator

Hi there 👋

As @awaelchli suggested, this PR extends the test for LoRA to make sure that all the tensors (parameters, buffers, attributes) are materialized.
With just a forward pass we depend on the config: if LoRA is applied to all matrices (Q, K and V), then we don't need zero_pad method during a forward pass and thus might not notice that lora_ind inside the method is a non-materialized tensor.

@Andrei-Aksionov Andrei-Aksionov marked this pull request as ready for review May 7, 2024 15:11
@Andrei-Aksionov Andrei-Aksionov requested a review from lantiga as a code owner May 7, 2024 15:11
@Andrei-Aksionov Andrei-Aksionov requested a review from carmocca May 7, 2024 15:12
@carmocca carmocca merged commit e126433 into Lightning-AI:main May 7, 2024
9 checks passed
@Andrei-Aksionov Andrei-Aksionov deleted the test_lora_fsdp_extend branch May 7, 2024 15:57
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