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

Fix and rename delete_weight_dequant_linear_op_encoder/decoder pass #48631

Conversation

RichardWooSJTU
Copy link
Contributor

@RichardWooSJTU RichardWooSJTU commented Dec 1, 2022

PR types

Bug fixes

PR changes

Others

Describe

  1. [Control Flow] replace executor in while op with InterpreterCore #47573 会在while op中遍历其Input,而在Add int8 support in fused_multi_transformer_pass and fuse_multi_transformer_layer_pass #48209 新增的对GPT等Transformer模型的量化模型进行处理的时候并未在while op的输入中删除dequant_linear_op的输出,而该op在delete_weight_quant_linear_op_encoder_pass中被删除,造成while op执行阶段出错,因此在该pass中删除while op中相关Input。
  2. 为增强pass名称的自解释性,避免混淆,对以下pass进行更名:
  • delete_weight_dequant_linear_op_encoder_pass 更名为 delete_weight_dequant_linear_op_with_while_pass
  • delete_weight_dequant_linear_op_decoder_pass 更名为 delete_weight_dequant_linear_op_pass
  • 原delete_weight_dequant_linear_op_pass 更名为 delete_weight_dequant_linear_op_dequant_weight_pass

@paddle-bot
Copy link

paddle-bot bot commented Dec 1, 2022

你的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.

@RichardWooSJTU RichardWooSJTU changed the title fix and rename delete_weight_dequant_linear_op_encoder/decoderpass Fix and rename delete_weight_dequant_linear_op_encoder/decoder pass Dec 1, 2022
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

1 participant