[GH-ISSUE #509] 在单张A100复现成功,但是gguf权重加载非常缓慢,有人遇到吗? #364

Closed
opened 2026-10-29 14:38:32 +00:00 by bsakaguchi · 10 comments
Owner

Originally created by @jerryrual on GitHub (Feb 19, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/509

attention一层加载大约要花10S

Originally created by @jerryrual on GitHub (Feb 19, 2025). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/509 attention一层加载大约要花10S
Author
Owner

@3wweiweiwu commented on GitHub (Feb 19, 2025):

我也遇到同样的问题,我的环境是在云上,2XA10,第一次读取要一个小时,之后只要不重启,就快很多,只要2分钟。但是我在用ollama的时候也有类似问题,所以不确定是不是运营商那的限制。

<!-- gh-comment-id:2668711559 --> @3wweiweiwu commented on GitHub (Feb 19, 2025): 我也遇到同样的问题,我的环境是在云上,2XA10,第一次读取要一个小时,之后只要不重启,就快很多,只要2分钟。但是我在用ollama的时候也有类似问题,所以不确定是不是运营商那的限制。
Author
Owner

@edisonchan commented on GitHub (Feb 20, 2025):

检查一下是不是每次都重新下载模型。。

<!-- gh-comment-id:2670178401 --> @edisonchan commented on GitHub (Feb 20, 2025): 检查一下是不是每次都重新下载模型。。
Author
Owner

@codedoves commented on GitHub (Feb 20, 2025):

我也有同样的问题,r1Q3的模型加载完需要30min

<!-- gh-comment-id:2670184445 --> @codedoves commented on GitHub (Feb 20, 2025): 我也有同样的问题,r1Q3的模型加载完需要30min
Author
Owner

@3wweiweiwu commented on GitHub (Feb 20, 2025):

检查一下是不是每次都重新下载模型。。

应该不是重新下载模型,我的gguf都是本地的,而且是在是读gpu的时候特别慢。而且就算是下载模型,一个小时也不够吧。

<!-- gh-comment-id:2670231316 --> @3wweiweiwu commented on GitHub (Feb 20, 2025): > 检查一下是不是每次都重新下载模型。。 应该不是重新下载模型,我的gguf都是本地的,而且是在是读gpu的时候特别慢。而且就算是下载模型,一个小时也不够吧。
Author
Owner

@johnray22 commented on GitHub (Feb 20, 2025):

模型要从硬盘加载到内存中,如果是SSD就快一些,一般2000M/S。机械盘就慢了,拉满也就200M

<!-- gh-comment-id:2670295866 --> @johnray22 commented on GitHub (Feb 20, 2025): 模型要从硬盘加载到内存中,如果是SSD就快一些,一般2000M/S。机械盘就慢了,拉满也就200M
Author
Owner

@johnray22 commented on GitHub (Feb 20, 2025):

可以设置某个参数将模型常驻内存

<!-- gh-comment-id:2670296132 --> @johnray22 commented on GitHub (Feb 20, 2025): 可以设置某个参数将模型常驻内存
Author
Owner

@jzw02 commented on GitHub (Feb 20, 2025):

我也遇到了这样的情况,load blk非常慢,并且chat的时候也很慢

<!-- gh-comment-id:2670301127 --> @jzw02 commented on GitHub (Feb 20, 2025): 我也遇到了这样的情况,load blk非常慢,并且chat的时候也很慢
Author
Owner

@codedoves commented on GitHub (Feb 20, 2025):

**你用的是sdd还是机械硬盘?我也是单张A100,使用机械也是很慢,后来换成ssd会好很多

<!-- gh-comment-id:2670332722 --> @codedoves commented on GitHub (Feb 20, 2025): **你用的是sdd还是机械硬盘?我也是单张A100,使用机械也是很慢,后来换成ssd会好很多
Author
Owner

@neichuanzhang commented on GitHub (Feb 20, 2025):

用htop看一下加载模型的进程,如果进程是D状态,看下iostat -x 1看看是不是磁盘的iowait太高了。

如果是一般是磁盘的性能问题

<!-- gh-comment-id:2670370789 --> @neichuanzhang commented on GitHub (Feb 20, 2025): 用htop看一下加载模型的进程,如果进程是D状态,看下iostat -x 1看看是不是磁盘的iowait太高了。 如果是一般是磁盘的性能问题
Author
Owner

@Wilbur0626 commented on GitHub (Feb 20, 2025):

我这里是磁盘的问题,需要把其他读写操作关掉

<!-- gh-comment-id:2670396018 --> @Wilbur0626 commented on GitHub (Feb 20, 2025): 我这里是磁盘的问题,需要把其他读写操作关掉
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#364
No description provided.