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

implemention of lqlora #8607

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

Liebele
Copy link

@Liebele Liebele commented Jun 14, 2024

PR types

PR changes

Description

Copy link

paddle-bot bot commented Jun 14, 2024

Thanks for your contribution!

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Liebele
Copy link
Author

Liebele commented Jun 15, 2024

使用paddle中LoRA支持的量化算法进行混合量化。
使用LQ-LoRA,需要先获取整数线性规划的准备数据,接着使用整数线性规划求解每个矩阵对应的量化算法,然后进行迭代初始化获取修改后的原模型及LoRA模块的参数。
在使用LQ-LoRA进行微调时,将“weight_quantize_algo”设置为“lqlora”,同时提供“qconfig_path”以及“lqlora_state_dict_path”(分别对应每个矩阵对应的量化算法、迭代初始化后的原模型及LoRA模块的参数)。

@Liebele
Copy link
Author

Liebele commented Jun 15, 2024

使用该方法在LLaMA-7B上的实验结果:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants