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

[Quantization] AutoGPTQ refactor and matmul combination support #694

Merged
merged 1 commit into from
Aug 25, 2023

Commits on Aug 25, 2023

  1. [Quantization] AutoGPTQ refactor and matmul combination support

    This PR refactors the AutoGPTQ integration to better align with the
    framework design. The PR, meanwhile, supports the AutoGPTQ quantization
    in MLC LLM with matmul combination.
    
    With this PR, you will be able to compile Llama2 using the following
    command:
    ```python
    python -m mlc_llm.build --model=Llama-2-7b-chat-hf --quantization autogptq_llama_q4f16_1 --target cuda
    ```
    to use the AutoGPTQ quantization. **Note that the first run may take
    around 10 min for AutoGPTQ quantization computation, and the following
    runs will be much quicker.** The AutoGPTQ quantization requires the
    Python `auto_gptq` package to have version at least 0.2.0.
    
    Co-authored-by: Lei Wang <LeiWang1999@users.noreply.github.com>
    MasterJH5574 and LeiWang1999 committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    823d481 View commit details
    Browse the repository at this point in the history