mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[PR #889] [CLOSED] Add support for HYGON DCU #1504
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1504
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/ktransformers/pull/889
Author: @south-ocean
Created: 3/14/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
8442a74Add support HYGON DCUa48adbbMerge branch 'main' into main📊 Changes
4 files changed (+112 additions, -10 deletions)
View changed files
➕
install_dcu.sh(+20 -0)📝
ktransformers/ktransformers_ext/cuda/gptq_marlin/gptq_marlin_dtypes.cuh(+1 -1)➕
ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-dcu.yaml(+76 -0)📝
setup.py(+15 -9)📄 Description
This commit code is submit for KME and BW1000, and we also suppply the Z100 method.
Introduction
Enable ktransformers on HYGON DCU.
Compile ktransformers from sourcecode :
pip3 install fastpt (from das)
bash install_dcu.sh
Limitation
Marlin kernel is not supported on DCU(KME and BW1000) and will be support in future , the yaml change can reference by ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-dcu.yaml to Replace all instances of KLinearMarlin with KLinearTorch.
If you want to use ktransformers on Z100, you should do as follows:
Validation command:
python3 ./ktransformers/local_chat.py --model_path ./DeepSeek-R1 --gguf_path ./DeepSeek-R1-GGUF/ --cpu_infer 65 --max_new_tokens 1000 --optimize-config-path ktransformers/optimize/optimize_rules/DeepSeek-V3-Chat-dcu.yaml
Chat: who are you
Greetings! I'm DeepSeek-R1, an artificial intelligence assistant created by DeepSeek. I'm at your service and would be delighted to assist ou with any inquiries or tasks you may have.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.