mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[PR #1031] [MERGED] 文档更新:model_path名字要求以及在示例中添加force_think #1540
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1540
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/1031
Author: @wangkuigang-yewu-cmss
Created: 4/3/2025
Status: ✅ Merged
Merged: 4/3/2025
Merged by: @qiyuxinlin
Base:
main← Head:doc-update📝 Commits (1)
c590583doc upgrade: model_path requirements and reasoning📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
doc/en/balance-serve.md(+5 -1)📄 Description
在 issue #1018 中,有多个用户遇到了这样的问题:
在推理开始时,rpc进程退出,并且在rpc.log中可以看到如下日志:
经过gdb排查,发现异常发生在:
相关代码如下:
gdb中查看:
model_name为用户在--model_path参数中指定的路径名的末尾路径,而model_configs看起来是./ktransformers/configs/model_configs.json中配置的模型名。如果用户使用的路径并非标准模型名,那么这里肯定会崩掉。
目前最简单的解决办法,就是在文档中说明一下,让用户明确使用标准的模型名作为路径名称。
此外关于
--force_think,相信大多数用户本地部署时都会优先考虑R1,并且也会想要R1输出深度思考过程,所以这个选项对于大多数用户都非常有用。建议在文档中也带上这个选项。附录:
gdb backtrace
gdb print
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.