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

[NPU] Compatible with other third-party models like auto-round #12620

Merged
merged 6 commits into from
Dec 26, 2024

Conversation

rnwang04
Copy link
Contributor

@rnwang04 rnwang04 commented Dec 26, 2024

Description

1. Why the change?

Port from #12581.
When we convert other third-party models to our NPU model, take auto-round for example, I will directly convert their QuantLinear to our QuantizedLinear and will not call split_linears in this progress.
So linear of model converted from auto-round will not have _dq_list suffix.

2. User API changes

No change.

3. Summary of the change

  • update our code to be compatible with other third-party models like auto-round
  • simplify code
  • fix GW sym int4 runtime error
  • code refactor

4. How to test?

  • N/A
  • Unit test: Please manually trigger the PR Validation here by inputting the PR number (e.g., 1234). And paste your action link here once it has been successfully finished.

@rnwang04 rnwang04 requested a review from jason-dai December 26, 2024 09:21
Copy link
Contributor

@jason-dai jason-dai left a comment

Choose a reason for hiding this comment

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

LGTM

@rnwang04 rnwang04 merged commit bbdbbb0 into intel-analytics:main Dec 26, 2024
1 check passed
@rnwang04 rnwang04 deleted the compatible_with_other_models branch December 26, 2024 09:25
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