Failed to load the model. Python stream closed unexpectedly, exit code: 9009 #3623
Unanswered
GerardoLoffredo
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hey @GerardoLoffredo, DJL's Python engine is picky
Plan B: PyTorch engine 🏃♂️
|
Beta Was this translation helpful? Give feedback.
1 reply
-
The best way to use python engine is using DJLServing container, see: https://github.com/deepjavalibrary/djl-serving?tab=readme-ov-file#docker |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm quite new to the use of DJL.
I'm trying to load my model.py from path, following these guidelines:
https://github.com/deepjavalibrary/djl-demo/blob/master/development/python/README.md
When I run the code I get this error:
Exception in thread "main" ai.djl.engine.EngineException: Failed to loaded model.
Caused by: java.lang.IllegalThreadStateException: Python stream closed unexpectedly, exit code: 9009
I added Python in the System Environment Variables, but it still doesn't work. I'm actually using the version 28.0 of DJL.
Is it still possible to use the Python engine? Or should I consider converting the model to PyTorch and then loading it with PyTorch engine?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions