mirror of
https://github.com/deepseek-ai/DeepSeek-Coder.git
synced 2026-11-05 00:57:19 +00:00
[GH-ISSUE #133] 模型推理完成后怎么一直占用显存呢? #115
Labels
No labels
documentation
ENV
pull-request
research question
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-Coder#115
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 @chris-rong on GitHub (Mar 5, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-Coder/issues/133
加载模型只占用14G显存,为什么推理完成后显存一直飙到27G,且一直不释放。使用torch.cuda.empty_cache()也没用。
使用的模型是deepseek-coder-6.7b-instruct
@guoday commented on GitHub (Mar 12, 2024):
这个跟模型无关,主要还是代码问题。不太确定你用的是什么代码
@Tendo33 commented on GitHub (May 21, 2024):
可能得原因有哪些呢?存中间结果的话为什么不能立即释放呢