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

fix: use weights from base_layer #2141

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Jun 28, 2024

This PR fixes a bug in the rocm path for llama. This bug was introduced in the lora adapter pr #2010 and attempts to incorrectly read .linear.weight from the gate_up_proj.

This throws because gate_up_proj is now of type TensorParallelMultiAdapterLinear which wraps the type it used to be TensorParallelColumnLinear. In order to get the raw weight we need to access it via the base_layer

Copy link
Contributor

@fxmarty fxmarty left a comment

Choose a reason for hiding this comment

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

Thanks there is the same in flash_mistral_modeling.py.

To be fair it is not at all your fault, having this controlflow for rocm here is bad anyway & we still don't have the hosted rocm CI to catch that

@Narsil Narsil merged commit 25f57e2 into main Jul 1, 2024
9 checks passed
@Narsil Narsil deleted the fix-rocm-wrapped-adapter-weights branch July 1, 2024 10:58
glegendre01 pushed a commit that referenced this pull request Jul 2, 2024
ErikKaum pushed a commit that referenced this pull request Jul 26, 2024
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