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

batch size 未定义 #51

Open
yxk9810 opened this issue Dec 5, 2024 · 2 comments
Open

batch size 未定义 #51

yxk9810 opened this issue Dec 5, 2024 · 2 comments

Comments

@yxk9810
Copy link

yxk9810 commented Dec 5, 2024

colab 上执行memorylist 报错如下:

frames /usr/local/lib/python3.10/dist-packages/memorag/memorag_lite.py in adapt_batch_size(self) 168 batch_size = bs 169 break --> 170 return batch_size 171 172 def memorize( UnboundLocalError: local variable 'batch_size' referenced before assignment

貌似batch size 未定义

@qhjqhj00
Copy link
Owner

qhjqhj00 commented Dec 5, 2024

您是在没有gpu的环境运行吗?
如果是CPU的话,这里有点问题,我尽快修复一下

@yxk9810
Copy link
Author

yxk9810 commented Dec 16, 2024

gpu环境

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