The ai.djl.Model.getBlock() returns null OR - NullPointerException ai.djl.inference.Predictor.predictInternal() #3533
JeeDevUser
started this conversation in
General
Replies: 1 comment 3 replies
-
DJL can only load torchscript (or onnx, tensorflow saved-model bundle) format, you need to use This is a text generation model, it's quite complicated. We cannot use djl-convert to automatically convert to DJL format. You can take a look this example to run it in java: https://github.com/deepjavalibrary/djl/blob/master/examples/src/main/java/ai/djl/examples/inference/nlp/TextGeneration.java You might want to take a look:
|
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to do text summarization by using Pegasus-xsum
Scenario:
https://huggingface.co/google/pegasus-xsum/tree/main
String modelPath = "d:\\...\\pegasus-xsum\\";
THE PROBLEM: the last sysout prints null.
-Because of that, I am getting the
What I am missed?
Beta Was this translation helpful? Give feedback.
All reactions