TorchScript format problem: ai.djl.engine.EngineException: forward() is missing value for argument 'attention_mask' #3538
JeeDevUser
started this conversation in
General
Replies: 1 comment 1 reply
-
Can you provide your script that trace the model? The model takes multiple inputs, but your |
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
-
Scenario:
HuggingFaceTokenizer tokenizer = HuggingFaceTokenizer.newInstance(Paths.get('/pathToTheLocation/with_tokenizer_json_etc'));
-loaded the model as follows:
-Translator creation:
All this causes the following error:
Beta Was this translation helpful? Give feedback.
All reactions