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

weight_quantize api support gpu #59090

Merged

Conversation

wwbitejotunn
Copy link
Contributor

@wwbitejotunn wwbitejotunn commented Nov 17, 2023

PR types

Function optimization

PR changes

OPs

Description

Add quanted weight gpu kernel for weight only int8 to speed up the model convert. sm70 premute kernel is contributed by @MARD1NO
Pcard-71502

Copy link

paddle-bot bot commented Nov 17, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -30,14 +30,14 @@

#pragma once

#include "paddle/phi/backends/cpu/cpu_context.h"
// #include "paddle/phi/backends/cpu/cpu_context.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

注释删下

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

yuanlehome
yuanlehome previously approved these changes Nov 21, 2023
Copy link
Contributor

@yuanlehome yuanlehome left a comment

Choose a reason for hiding this comment

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

LGTM

@yuanlehome yuanlehome merged commit 3aff2c0 into PaddlePaddle:develop Nov 24, 2023
28 checks passed
@yuanlehome yuanlehome changed the title Add quanted weight gpu kernel weight_quantize api support gpu Nov 24, 2023
SecretXV pushed a commit to SecretXV/Paddle that referenced this pull request Nov 28, 2023
* weight quant gpu wint8

* fix scale type of weight ony quant

* fix cpu quant weight

* update

* float scale for weight-only8 gpu quant

* fix infermeta

* fix include

* add sm70

* fixup and andd sm70

* code_style fix
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.

None yet

3 participants