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

Clean up fused modules #7

Closed
casper-hansen opened this issue Aug 27, 2023 · 1 comment
Closed

Clean up fused modules #7

casper-hansen opened this issue Aug 27, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@casper-hansen
Copy link
Owner

Fused modules were moved from the original TinyChat into the core of AWQ. Work on generalizing the code better with the parameters in the fused modules.

A few things that need cleaning:

https://github.com/casper-hansen/AutoAWQ/blob/main/awq/modules/fused_attn.py#L12
https://github.com/casper-hansen/AutoAWQ/blob/main/awq/modules/fused_attn.py#L107
https://github.com/casper-hansen/AutoAWQ/blob/main/awq/modules/fused_attn.py#L139
https://github.com/casper-hansen/AutoAWQ/blob/main/awq/modules/fused_mlp.py#L79C8-L79C31
https://github.com/casper-hansen/AutoAWQ/blob/main/awq/modules/fused_norm.py#L27

Additionally, move the code for isinstance(m, LlamaMLP) into the actual model class instead.

@casper-hansen casper-hansen added the good first issue Good for newcomers label Aug 27, 2023
@casper-hansen
Copy link
Owner Author

#18 solved this cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant