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

Revert "Small fixes for torchao quant" #2493

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

merrymercy
Copy link
Contributor

@merrymercy merrymercy commented Dec 16, 2024

Reverts #2476 because it only works for torch native llama

@merrymercy merrymercy merged commit ba36b55 into main Dec 16, 2024
1 of 15 checks passed
@merrymercy merrymercy deleted the revert-2476-some-fixes branch December 16, 2024 23:04

if filter_fn is None:

def filter_fn(module, fqn):
return _is_linear(module) and "proj" in fqn
return "proj" in fqn
Copy link
Contributor

Choose a reason for hiding this comment

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

@merrymercy this change? or the reordering of apply_torchao_config_to_model only works for torch native llama?

Copy link
Contributor Author

@merrymercy merrymercy Dec 17, 2024

Choose a reason for hiding this comment

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

I think it is this change. I reverted the whole change to make the CI passes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I picked the correct change in this PR #2495.
Please follow up with the correct fix for _is_linear.

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.

2 participants