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 in-situ conversion of GPTQ model to marlin format (naive GPTQ kernel also supported). #92

Merged
merged 27 commits into from
Oct 21, 2024

Conversation

guoqingbao
Copy link
Collaborator

For quantized 4-bit GPTQ model:

cargo run --release -- --port 2000 --weight-path /home/mistral_7b-int4/ mistral --quant marlin

It performs in-situ conversion of GPTQ model to marlin format during model loading.

Please note:

Marlin format in-situ conversion only support 4-bit GPTQ (with sym=True, groupsize=128 or -1, desc_act=False).

@guoqingbao guoqingbao merged commit 3ebf3b8 into master Oct 21, 2024
6 checks passed
guoqingbao added a commit that referenced this pull request Dec 26, 2024
commit 8059379
Author: Guoqing Bao <topon@outlook.com>
Date:   Thu Nov 21 18:07:34 2024 +0800

    Update batched results

commit 4cfe1ff
Author: Guoqing Bao <topon@outlook.com>
Date:   Thu Nov 21 17:54:12 2024 +0800

    Batch sampling for argmax strategy under no repetition penalty

commit dfce2ea
Author: Guoqing Bao <topon@outlook.com>
Date:   Thu Nov 21 15:35:22 2024 +0800

    Optimize token tensor padding & tweak weight path

commit 3ebf3b8
Author: Guoqing Bao <topon@outlook.com>
Date:   Mon Oct 21 18:24:45 2024 +0800

    Support in-situ conversion of GPTQ model to marlin format (naive GPTQ kernel also supported). (#92)

    Support in-situ conversion of GPTQ model to marlin format (naive GPTQ kernel also supported).

commit 46b10ad
Author: Guoqing Bao <topon@outlook.com>
Date:   Wed Oct 16 17:48:54 2024 +0800

    Add an example for marlin format conversion & update results (#91)

    Add an example for marlin format conversion & update results
guoqingbao added a commit that referenced this pull request Dec 26, 2024
commit 8059379
Author: Guoqing Bao <topon@outlook.com>
Date:   Thu Nov 21 18:07:34 2024 +0800

    Update batched results

commit 4cfe1ff
Author: Guoqing Bao <topon@outlook.com>
Date:   Thu Nov 21 17:54:12 2024 +0800

    Batch sampling for argmax strategy under no repetition penalty

commit dfce2ea
Author: Guoqing Bao <topon@outlook.com>
Date:   Thu Nov 21 15:35:22 2024 +0800

    Optimize token tensor padding & tweak weight path

commit 3ebf3b8
Author: Guoqing Bao <topon@outlook.com>
Date:   Mon Oct 21 18:24:45 2024 +0800

    Support in-situ conversion of GPTQ model to marlin format (naive GPTQ kernel also supported). (#92)

    Support in-situ conversion of GPTQ model to marlin format (naive GPTQ kernel also supported).

commit 46b10ad
Author: Guoqing Bao <topon@outlook.com>
Date:   Wed Oct 16 17:48:54 2024 +0800

    Add an example for marlin format conversion & update results (#91)

    Add an example for marlin format conversion & update results
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.

1 participant