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

Sample code to run MultiheadDiffAttn provided #1645

Open
VenkatSBitra opened this issue Oct 28, 2024 · 1 comment
Open

Sample code to run MultiheadDiffAttn provided #1645

VenkatSBitra opened this issue Oct 28, 2024 · 1 comment
Assignees

Comments

@VenkatSBitra
Copy link

Describe
Model I am using (UniLM, MiniLM, LayoutLM ...): UniLM DiffTransformer

I am need some sample code to see how to use MultiheadDiffAttn as I am planning to train some models using this model.

@donglixp donglixp self-assigned this Nov 18, 2024
@YTianZHU
Copy link
Contributor

Hi @VenkatSBitra
Please refer to https://github.com/microsoft/unilm/blob/master/Diff-Transformer/multihead_flashdiff_1.py for our implementation. You can directly change model code of any LLMs to turn it into DIFF arch. :)

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

No branches or pull requests

3 participants