mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #736] Speed of weights loading #537
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#537
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?
Originally created by @VincentXWD on GitHub (Feb 28, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/736
Hi developers,
Thanks for contributing such a great GPU-CPU co-working inference framework. I'm trying to start a service via ktransformers by the command below:
I noticed that it needs more than 10 seconds to load one attention layer, which seems quite slow. Is it a common phenomenon? Thanks.
@ubergarm commented on GitHub (Feb 28, 2025):
Try
sudo iostatand probably the disk located at./DeepSeek-R1-GGUF/DeepSeek-R1-Q4_K_Mis slow. I use PCIe Gen 5.0 x4 lane NVMe T705 4TB SSD and it still takes a while to load the 377GiB Q4.Also it is using
mmap()under the hood so you have to considermadviseoralwaysregarding pre-loading to linux kerenel page cache etc. Otherwise you have to do some warm-up runs until all the weights are in page cache.You can check with
numastatto see how much is loading.I have some examples and discussion in the unofficial guide here: https://github.com/ubergarm/r1-ktransformers-guide in both english and chinese
NUMA is a big issue for inference engines in general and I have a whole discussion here: https://github.com/ggml-org/llama.cpp/discussions/12088
If you want advanced ways to measure issues like your disk i/o you can check out this extensive thread: https://forum.level1techs.com/t/deepseek-deep-dive-r1-at-home/225826/88
Good luck!
@ErvinXie commented on GitHub (Dec 11, 2025):
This issue has been automatically closed due to inactivity for 60 days.
If you believe this issue is still relevant, please feel free to reopen it with additional information or context.
Thank you for your contribution to KTransformers!
此 issue 因超过 60 天无活动而被自动关闭。
如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。
感谢您对 KTransformers 的贡献!