Comments (4)
When you usine on K8s, are you using DJLServing? We have kserve integration for DJLServing.
If you set ai.djl.onnx.disable_alternative
, you should not use use OnnxRuntime engine to do any NDArray operations for pre/post processing. See: https://docs.djl.ai/docs/hybrid_engine.html
Can you provide more detail about use case, configuration and any code that can reproduce your error?
from djl.
I found that the other way doesn't report this error, when k8s starts the service, if the network is open, it will download the following:
2024-02-20 17:50:31.784 INFO 7 --- [9:8816-thread-2] ai.djl.pytorch.jni.LibUtils : Downloading https://publish.djl.ai/pytorch/1.13.1/cpu/linux-x86_64/native/lib/libc10.so.gz ...
2024-02-20 17:50:33.111 INFO 7 --- [9:8816-thread-2] ai.djl.pytorch.jni.LibUtils : Downloading https://publish.djl.ai/pytorch/1.13.1/cpu/linux-x86_64/native/lib/libtorch_cpu.so.gz ...
2024-02-20 17:51:52.903 INFO 7 --- [9:8816-thread-2] ai.djl.pytorch.jni.LibUtils : Downloading https://publish.djl.ai/pytorch/1.13.1/cpu/linux-x86_64/native/lib/libtorch.so.gz ...
2024-02-20 17:51:53.157 INFO 7 --- [9:8816-thread-2] ai.djl.pytorch.jni.LibUtils : Downloading https://publish.djl.ai/pytorch/1.13.1/cpu/linux-x86_64/native/lib/libgomp-52f2fd74.so.1.gz ...
2024-02-20 17:51:53.871 INFO 7 --- [9:8816-thread-2] ai.djl.pytorch.jni.LibUtils : Downloading jni https://publish.djl.ai/pytorch/1.13.1/jnilib/0.23.0/linux-x86_64/cpu/libdjl_torch.so to cache ...
. But I'm in a network-free environment right now, so it will occurred this error:
java.lang.NoClassDefFoundError: Could not initialize class ai.djl.onnxruntime.engine.OrtNDManager
and I want to put these LibUtils packages into the jar package, Or do you have a better way?
When you usine on K8s, are you using DJLServing? We have kserve integration for DJLServing.
If you set
ai.djl.onnx.disable_alternative
, you should not use use OnnxRuntime engine to do any NDArray operations for pre/post processing. See: https://docs.djl.ai/docs/hybrid_engine.htmlCan you provide more detail about use case, configuration and any code that can reproduce your error?
from djl.
You need use offline PyTorch library in your project. See: https://docs.djl.ai/engines/pytorch/pytorch-engine/index.html#linux-cpu
You can also consider create a fatjar, you can follow this example: https://github.com/deepjavalibrary/djl-demo/tree/master/development/fatjar#how-to-distribute-djl-application
from djl.
ok thank you ,i will try after
from djl.
Related Issues (20)
- [FATAL] extensions/tokenizers/rust/src/lib.rs crashes the process HOT 1
- CUBLAS_STATUS_NOT_INITIALIZED HOT 10
- How to run FLOAT16 OnnxRuntime models HOT 3
- UnsatisfiedLinkError: 'boolean ai.djl.pytorch.jni.PyTorchLibrary.torchIsContiguous(long)' HOT 2
- How can I implement the Adaline perceptron in DJL
- pytorch-model-zoo: PtSsdTranslator.Builder.self() returns null
- TextEmbeddingTranslator fails with "EngineException: Expected all tensors to be on the same device"
- tensorrt 的demo 有吗 yolov8的
- resize diff between java djl and python cv2 HOT 1
- Does Lightgbm support multi-class inference? HOT 1
- ONNX Engine Options Bug, ONNX features cannot be defined,It's a parameter type design problem HOT 2
- [pytorch] UnsatisfiedLinkError on Windows11/Intel HOT 3
- Windows libraries for pytorch-native-cpu are missing for version 2.3.0 from maven central. HOT 1
- ai.djl.nn.transformer IdEmbedding has memory leak. HOT 2
- PaddlePaddle引擎使用paddleocr v4版本的模型识别图像时报错,是还不支持paddleocr的v4模型吗? HOT 2
- TimeSeries API PyTorch Engine support
- TimeSeries API Bugs (frequency, context length, FEAT_DYNAMIC_REAL) HOT 6
- CPU Version of TensorFlow Native Package Incorrectly Includes GPU Dependencies HOT 2
- Can I load a pytorch pretrained model, and use its block to replace one in my network? HOT 1
- MXNet NLP GloVe model causes error "Native resource has been released already" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djl.