PyTorch Engine has dll file loading error from publish.djl.ai web server on Windows #2413
iamuspace
started this conversation in
Development
Replies: 2 comments 2 replies
-
pom.xml
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My env :
Windows 10, AMD cpu 64bit, Zulu 64bit JVM, Nvidia Titan X GPU, Cuda 11.7 version, maven
pytorch engine can not download djl_torch.dll file of publish.djl.ai web server.
Exception in thread "main" ai.djl.engine.EngineException: Cannot download jni files: https://publish.djl.ai/pytorch/1.13.1/jnilib/0.20.0/win-x86_64/cu117/djl_torch.dll
at ai.djl.pytorch.jni.LibUtils.downloadJniLib(LibUtils.java:515)
at ai.djl.pytorch.jni.LibUtils.findJniLibrary(LibUtils.java:252)
at ai.djl.pytorch.jni.LibUtils.loadLibrary(LibUtils.java:80)
at ai.djl.pytorch.engine.PtEngine.newInstance(PtEngine.java:54)
at ai.djl.pytorch.engine.PtEngineProvider.getEngine(PtEngineProvider.java:40)
at test.djl.pytorch.Test.main(Test.java:16)
Caused by: java.io.FileNotFoundException: https://publish.djl.ai/pytorch/1.13.1/jnilib/0.20.0/win-x86_64/cu117/djl_torch.dll
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1989)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1585)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at java.base/java.net.URL.openStream(URL.java:1162)
at ai.djl.util.Utils.openUrl(Utils.java:459)
at ai.djl.util.Utils.openUrl(Utils.java:443)
at ai.djl.pytorch.jni.LibUtils.downloadJniLib(LibUtils.java:509)
--- pom.xml ---
--- web access by my web browser -----
URL : https://publish.djl.ai/pytorch/1.13.1/jnilib/0.20.0/win-x86_64/cu117/djl_torch.dll
NoSuchKey
The specified key does not exist. publish/pytorch/1.13.1/jnilib/0.20.0/win-x86_64/cu117/djl_torch.dll JN9BSYKQ99J20WB3 vZDOP/Hd2jR6xdjbU4smGCJZ5Sf19OI2ykONUc+U7HW6VHXGWdXUzXiBUIwPPy54/fhyfyC41IFFDj9RAdvtkw==--- code ---
public class Test {
public static void main(String[] args) {
Engine engine = new PtEngineProvider().getEngine();
}
}
Beta Was this translation helpful? Give feedback.
All reactions