PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
21.66k stars 5.44k forks source link

[XPU] fix bugs in processing of attention_mask and fix_seed_offset on XPU #64003

Closed runzhech closed 1 week ago

runzhech commented 2 weeks ago

PR Category

Others

PR Types

Bug fixes

Description

Fix segmentfault caused by setting fix_seed_offset on XPU. Before retriving seed_offset, memcpy it from xpu to cpu. Cast attention_mask to fp32 if necessary.

paddle-bot[bot] commented 2 weeks ago

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