-
Notifications
You must be signed in to change notification settings - Fork 660
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
SIGSEGV calling NDList.encode() #3033
Comments
This issue is not related with The crash can be reproduced with the following code:
I think we should block NDArray operation for PyTorch String tensor to avoid crash |
Blocking it to avoid crashes sounds good. I was hoping to use the CLIP model with djl-serving and was using https://github.com/deepjavalibrary/djl-demo/blob/master/djl-serving/java-client/src/main/java/ai/djl/examples/serving/javaclient/DJLServingClientExample4.java and https://github.com/deepjavalibrary/djl/blob/master/examples/src/main/java/ai/djl/examples/inference/clip/TextTranslator.java as inspiration for this. Can you recommend the right way to make this work? Thanks in advance.. |
I assume writing a custom translator for djl-serving will be required for this? https://github.com/deepjavalibrary/djl-serving/blob/master/serving/docs/modes.md#serving-example-custom-translator. |
Description
The following unit test crashes on my Linux box with a SIGSEGV when the NDList.encode() method is called.
Expected Behavior
No SIGSEGV.
Error Message
hs_err_pid1108173.log
How to Reproduce?
Steps to reproduce
Run the above test class. There is no GPU on my machine.
What have you tried to solve it?
I tried using a specific PYTORCH version, as I read the current version has issues elsewhere, using PYTORCH_VERSION=2.0.1 but it made no difference.
The text was updated successfully, but these errors were encountered: