Open josephykwang opened 1 year ago
You need to provide a translator in the criteria. This may depend on the specific model you are using. You can try using our MxBertQATranslator
, PtBertQATranslator
, or hf tokenizer QuestionAnswerTranslator
as a reference
Description
following https://github.com/deepjavalibrary/djl/blob/master/extensions/tokenizers/README.md
for Use DJL HuggingFace model converter (experimental)
also tried https://huggingface.co/deepset/roberta-base-squad2. hit with the same issue
Expected Behavior
able to load the model and the following code should run.
Error Message
(Paste the complete error message, including stack trace.)
How to Reproduce?
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
run the test
What have you tried to solve it?
tried different model. tried unzip and used bert-base-cased-squad2.pt for path