-
Notifications
You must be signed in to change notification settings - Fork 3k
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 deepseek on xpu #10060
base: develop
Are you sure you want to change the base?
support deepseek on xpu #10060
Conversation
Thanks for your contribution! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #10060 +/- ##
===========================================
- Coverage 50.39% 50.15% -0.24%
===========================================
Files 756 757 +1
Lines 121658 122553 +895
===========================================
+ Hits 61304 61469 +165
- Misses 60354 61084 +730 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
csrc/xpu/src/cmake_build.sh
Outdated
# export XDNN_PATH=Paddle/build/third_party/xpu/src/extern_xpu/xdnn-ubuntu_x86_64/ # <path_to_xdnn> | ||
# export XRE_PATH=Paddle/build/third_party/xpu/src/extern_xpu/xre-ubuntu_x86_64/ # <path_to_xre> | ||
# export CLANG_PATH=xtdk-ubuntu_1604_x86_64 # <path_to_xtdk> | ||
# export HOST_SYSROOT=/opt/compiler/gcc-8.2/bin/gcc # <path_to_gcc> | ||
|
||
export XDNN_PATH=/opt/output/work_dir/paddle-deepseek/xpu_libs/xhpc/xdnn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥用一些和模型类型相关的hardcode路径?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
const std::vector<int64_t>& seq_len_shape, | ||
const std::vector<int64_t>& draft_tokens_shape, | ||
const std::vector<int64_t>& seq_lens_encoder_shape) { | ||
// std::cout << "wht --- GetPaddingOffsetV2InferShape" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是可以去掉这些已经注释的调试代码?下同。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
prefix_lens_vp, // prefix_lens_vp | ||
encoder_kv_lods_vp); // encoder_kv_lods_vp | ||
|
||
// encoder 关键信息打印 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去掉已经注释了的调试代码
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
Before submitting
tests
folder. If there are codecov issues, please add tests cases first.PR types
New features
PR changes
Models | APIs
Description
Support deepseek on Kunlun XPU inference.
Support dynamic and static graphics.
Now, only MOE-ONLYINT8 quantization is supported (only MOE weights are quantized to int8, other weights are not quantized).