找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 194|回复: 4

一直爆显存

[复制链接]

1

主题

5

回帖

29

零食

入门显卡4G

积分
35
发表于 2025-4-24 10:09:16 | 显示全部楼层 |阅读模式
我32G的显存都不够,一直爆显存,什么设置也没有动,不知道什么问题。
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 31.29 GiB. GPU 0 has a total capacity of 32.00 GiB of which 3.74 GiB is free. Of the allocated memory 25.97 GiB is allocated by PyTorch, and 406.23 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation.  See documentation for Memory Management  (https://pytorch.org/docs/stable/ ... vironment-variables)
Unloaded DynamicSwap_LlamaModel as complete.
Unloaded CLIPTextModel as complete.
Unloaded SiglipVisionModel as complete.
Unloaded AutoencoderKLHunyuanVideo as complete.
请按任意键继续. . .
回复

使用道具 举报

11

主题

385

回帖

2876

零食

神级显卡

积分
3282

突出贡献

发表于 2025-4-27 23:08:51 | 显示全部楼层
是不是内存爆了,这玩意特别吃内存,能吃70g,我32g内存加50g虚拟内存才正常
好好学习,天天向上。
回复

使用道具 举报

0

主题

4

回帖

10

零食

入门显卡4G

积分
14
发表于 2025-6-2 16:28:33 | 显示全部楼层
同问,求解
回复

使用道具 举报

3

主题

93

回帖

339

零食

中等显卡12G

积分
435
发表于 2025-6-3 11:02:48 | 显示全部楼层
我32G的显存都不够,一直爆显存...请教什么显卡型号?
回复

使用道具 举报

0

主题

4

回帖

10

零食

入门显卡4G

积分
14
发表于 2025-6-5 11:12:33 | 显示全部楼层
好像不是显卡显存的问题,应该还是软件哪里的设置问题,不会弄啊。苦恼
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|圈圈AI吧

GMT+8, 2025-6-17 05:59 , Processed in 0.325148 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表