Open eix128 opened 3 months ago
@eix128
PyTorch 2.4.0 requires DJL 0.30.0 (which is not released yet, you can try 0.30.0-SNAPSHOT version if you want to). See: https://docs.djl.ai/master/engines/pytorch/pytorch-engine/index.html#supported-pytorch-versions
@eix128
We strongly recommend you to use BOM to ensure you are using correct version for each module. See: https://docs.djl.ai/master/bom/index.html
Well this makes code more error prone. maybe it will be better to make your DJL pack as single dependency.
when will you release 0.30 ? where can i get it ?
@eix128 We cannot package PyTorch dependency in single dependency:
When 0.3.0 will be released? See: https://docs.djl.ai/master/index.html#release-notes How to get nightly release: See: https://docs.djl.ai/master/docs/get.html#nightly-snapshots
Description
I've tried simple example from DJL Library
Expected Behavior
I wanted simple hello world max result from array example
Error Message
Exception in thread "main" ai.djl.engine.EngineException: Cannot download jni files: https://publish.djl.ai/pytorch/2.4.0/jnilib/0.29.0/linux-x86_64/cu124/libdjl_torch.so at ai.djl.pytorch.jni.LibUtils.downloadJniLib(LibUtils.java:542) at ai.djl.pytorch.jni.LibUtils.findJniLibrary(LibUtils.java:280) at ai.djl.pytorch.jni.LibUtils.loadLibrary(LibUtils.java:84) at ai.djl.pytorch.engine.PtEngine.newInstance(PtEngine.java:53) at ai.djl.pytorch.engine.PtEngineProvider.getEngine(PtEngineProvider.java:41) at ai.djl.engine.Engine.getEngine(Engine.java:190) at ai.djl.ndarray.NDManager.newBaseManager(NDManager.java:151) at main.Main.main(Main.java:48) Caused by: java.io.FileNotFoundException: https://publish.djl.ai/pytorch/2.4.0/jnilib/0.29.0/linux-x86_64/cu124/libdjl_torch.so at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1898) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1500) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) at ai.djl.util.Utils.openUrl(Utils.java:519) at ai.djl.util.Utils.openUrl(Utils.java:498) at ai.djl.util.Utils.openUrl(Utils.java:487) at ai.djl.pytorch.jni.LibUtils.downloadJniLib(LibUtils.java:536) ... 7 more
How to Reproduce?
My maven deps:
Steps to reproduce
(Paste the commands you ran that produced the error.) java main.Main
What have you tried to solve it?
i have tried to find "libdjl_torch.so" but where to get it.
Environment Info
./gradlew debugEnv
for maven ?My full output:
Process finished with exit code 1
I am using Zorin OS 17.1 which is based on ubuntu 23.04 also kadirbasol@kadirbasol-HP-Z8-G5-Workstation-Desktop-PC:~/Apps/idea-IU-242.20224.387/bin$ nvidia-smi Thu Aug 15 11:54:03 2024
+-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 550.107.02 Driver Version: 550.107.02 CUDA Version: 12.4 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA RTX A5000 Off | 00000000:52:00.0 On | Off | | 30% 36C P8 28W / 230W | 553MiB / 24564MiB | 13% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 2494 G /usr/lib/xorg/Xorg 162MiB | | 0 N/A N/A 2646 G /usr/bin/gnome-shell 216MiB | | 0 N/A N/A 61524 G ...b9d6b37082f5442bb4491d1ea68c4c6e1f7 103MiB | +-----------------------------------------------------------------------------------------+