-
Notifications
You must be signed in to change notification settings - Fork 653
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
显存不够 #514
Comments
你好,建议增加 |
你已经进行了4bits量化,建议减小输入长度 max_length=1024, max_new_tokens=512 |
我们训练集中文本长度偏短,因此建议实际使用中不要使用过长的文本进行抽取。 |
没办法啊,都是一篇一篇文档过来。我是做了下测试。后面如果真的需要用,那可能真的需要学习了。 |
您可以暂时对文档进行划窗口来进行抽取,跑多次抽取模型 |
那上下文变化,准确度应该会下降。然后能不能直接读pdf之类,我现在是通过程序读取的pdf,转为了string |
当前阶段的模型可能还无法很好的处理文档级的抽取,我们将在下一个版本的模型中加强这方面的能力。 |
期待中 |
@whwususu 请问你是怎么解决的?我也是报这个错,减小了输入输出长度也还是报错。 |
显卡是3090,报显存不够, 那么export PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:设置为多少比较合适,改了几个数值,依旧报显存不够。谢谢!
The text was updated successfully, but these errors were encountered: