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

Support imatrix-guided quantization for NPU CW #12468

Merged
merged 6 commits into from
Dec 2, 2024

Conversation

rnwang04
Copy link
Contributor

@rnwang04 rnwang04 commented Nov 29, 2024

Description

1. Why the change?

work with https://github.com/intel-analytics/llm.cpp/pull/696

2. User API changes

  • add a new parameter imatrix_file which default to None.
  • Only when user pass imatrix_file & set IPEX_LLM_NPU_QUANTIZATION_OPT=1, this opt will be used.

3. Summary of the change

  • Initial support of imatrix-guided quantizatio for NPU CW
  • Will not expose this to users, just for internal test first

4. How to test?

  • 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 marked this pull request as draft November 29, 2024 08:37
@rnwang04 rnwang04 marked this pull request as ready for review November 29, 2024 09:32
@rnwang04 rnwang04 changed the title [WIP] Support imatrix-guided quantizatio for NPU CW Support imatrix-guided quantizatio for NPU CW Dec 2, 2024
@rnwang04 rnwang04 requested a review from jason-dai December 2, 2024 02:12
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 changed the title Support imatrix-guided quantizatio for NPU CW Support imatrix-guided quantization for NPU CW Dec 2, 2024
@rnwang04 rnwang04 merged commit 4b6c316 into intel-analytics:main Dec 2, 2024
1 check passed
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