mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1773] 微调模型时,cpu可用内存一直下降直到爆炸 #1115
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1115
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 @SamsFirth on GitHub (Dec 31, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1773
Originally assigned to: @JimmyPeilinLi on GitHub.
Reminder
System Info
kt0.4.2版本,py3.11,cpu支持amx
Reproduction
使用默认的训练配置文件进行sft,free -h输出的available内存会不断下降,直到训练异常退出
Others
No response
@KMSorSMS commented on GitHub (Jan 8, 2026):
你得内存大小是多少呢?这个好像要 2T 内存
@SamsFirth commented on GitHub (Jan 12, 2026):
有两个t,加载完模型剩大约400多g,然后训练开始,之后内存就会不断下降
@ovowei commented on GitHub (Jan 22, 2026):
请提供下更详细的配置和运行信息
@SamsFirth commented on GitHub (Jan 27, 2026):
发现需要在sft/lora.py中的training_step函数中添加每隔几步就回收一次内存的功能就可以解决