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 Prefix-Tuning for T5 models where d_kv != d_model / num_heads #621

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

calpt
Copy link
Member

@calpt calpt commented Dec 18, 2023

Fixes #485.

Allows passing head dim (n_embd_per_head) explicitly to prefix tuning to accomodate models where head dim is not equal to hidden dim / n_heads.

@calpt calpt marked this pull request as ready for review December 18, 2023 23:05
Copy link
Member

@hSterz hSterz left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@calpt calpt merged commit 7e3ff86 into adapter-hub:main Jan 5, 2024
5 checks passed
@calpt calpt deleted the fix/t5-3b branch January 5, 2024 18:20
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.

Prefix Tuning does not work with T5-3B
2 participants