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

参数问题和精度 #4

Open
Lighter-J opened this issue Feb 21, 2025 · 3 comments
Open

参数问题和精度 #4

Lighter-J opened this issue Feb 21, 2025 · 3 comments

Comments

@Lighter-J
Copy link

您好,请问在运行代码前要把use_item_cl_loss和use_sess_cl_loss改为True吗?这样的话运算量过大显存容量不够。文章里不是说SCL会降低计算成本吗?是我哪里操作不对。请赐教。

@ZhengxiangShi
Copy link
Owner

您好,感谢您的关注。

请问在运行代码前要把use_item_cl_loss和use_sess_cl_loss改为True吗?

请参照我提供的sh script来运行代码,比如 https://github.com/ZhengxiangShi/SelfContrastiveLearningRecSys/tree/main/DHCN.

这样的话运算量过大显存容量不够。文章里不是说SCL会降低计算成本吗?

可以通过修改 --sampled_item_size 的值来调节显存的使用。

@Lighter-J
Copy link
Author

是的,我是按照您提供的文件中的参数来运行的代码,且修改了sampled_item_size的值依然运行不了。

@ZhengxiangShi
Copy link
Owner

那可能是你自己的问题

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