About the methods of loading model #1374
Unanswered
freesia-sherry
asked this question in
Q&A
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Since we have not expose the API at DJL api level yet, you have to use PyTorch specific code: https://github.com/deepjavalibrary/djl/blob/master/engines/pytorch/pytorch-engine/src/test/java/ai/djl/pytorch/integration/PtModelTest.java#L45-L52
|
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
-
Currently, I find that the methods of loading model can only based on model's path. Such as below:
But I wonder that whether any methods to load model by streaming. For instance, the boosting model LightGBM can be converted to PMML format file, then be saved into Redis. In that case, java can get model from Redis and run it directly. So if any similar methods in DJL? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions