Fill-mask language model #2421
-
Does anyone has an example on how to run inference a fill-mask language modeling on Scala/Java using DJL? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 16 replies
-
We don't have an end2end example, but you can find sample code in our unit test: https://github.com/deepjavalibrary/djl/blob/master/extensions/tokenizers/src/test/java/ai/djl/huggingface/tokenizers/FillMaskTranslatorTest.java#L90-L108 It's very simple if you use DJL model zoo:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I have to use this model from huggingface: https://huggingface.co/jibi2906/my-finetuned-distilbert-pt. But it makes error like this, do you know how to solve it? |
Beta Was this translation helpful? Give feedback.
No, that's the model's limitation.