Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于内存的占用问题 #6

Open
Krystal9999 opened this issue Jul 29, 2024 · 4 comments
Open

关于内存的占用问题 #6

Krystal9999 opened this issue Jul 29, 2024 · 4 comments

Comments

@Krystal9999
Copy link

我因为硬件问题自己无法测试,请问如果每阶段都设置2层的block,模型大概占用多大内存呢?感觉24G服务器不太够用

@Yaziwel
Copy link
Owner

Yaziwel commented Jul 29, 2024

我因为硬件问题自己无法测试,请问如果每阶段都设置2层的block,模型大概占用多大内存呢?感觉24G服务器不太够用

你可以把batch size设置成1或者2,不用改网络,24G够用

@Krystal9999
Copy link
Author

Krystal9999 commented Jul 31, 2024 via email

@Yaziwel
Copy link
Owner

Yaziwel commented Jul 31, 2024

感谢你的回复,还有个问题想问大佬,你画的那个ERF图我特别感兴趣,你是怎么做出来,这好像是超分里面的东西  _Top '刺眼 @.***  

------------------ 原始邮件 ------------------ 发件人: "Zhiwen @.>; 发送时间: 2024年7月29日(星期一) 晚上8:03 收件人: @.>; 抄送: "_Top @.>; @.>; 主题: Re: [Yaziwel/Restore-RWKV] 关于内存的占用问题 (Issue #6) 我因为硬件问题自己无法测试,请问如果每阶段都设置2层的block,模型大概占用多大内存呢?感觉24G服务器不太够用 你可以把batch size设置成1或者2,不用改网络,24G够用 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

代码在这里https://github.com/Yaziwel/Restore-RWKV/blob/main/erf_visualization.py,超分专用的是LAM吧。ERF我的理解应该都能用,可以参考https://github.com/DingXiaoH/RepLKNet-pytorch

@Krystal9999
Copy link
Author

Krystal9999 commented Aug 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants