-
Notifications
You must be signed in to change notification settings - Fork 48
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
[Bug] Set resource limit throws error #190
Comments
got same error |
Hi @cceyda , thanks for bringing this up! Hidet uses recursion to traverse the its IR, thus we need a large stack size to process large computation graph and tensor program. This error seems indicate that your operating system has set the hard limit for stack size to a concret value instead of infinity ( I have submitted #195 to deal with this case. Now, hidet will not force to set the limit if the hard limit is less than the recommanded size, but emit a warning. |
Indeed |
Hi @cceyda, the nightly build version of hidet should have this PR in it. Could you have a try? $ pip install --pre --extra-index-url https://download.hidet.org/whl hidet |
Just tested, it is working. Thank you ~ |
Describe the bug
This is more of a python error honestly.
It is because below doesn't work on some cases.(I am root)
But I couldn't see a recommended python version & other people might also run into it.
this happens during
import hidet
Setting resource limit throws
hidet/python/hidet/utils/stack_limit.py
Line 19 in af3d412
ValueError: not allowed to raise maximum limit
To Reproduce
pip install hidet
import hidet
Expected behavior
maybe better to try catch & warn.
Enviroment
Using the latest aws container with
amazonaws.com/pytorch-training:2.0.0-gpu-py310
Additional context
The text was updated successfully, but these errors were encountered: