Created
January 5, 2022 19:50
-
-
Save frankfliu/b96004507e793acb5ca378b5fa17295d to your computer and use it in GitHub Desktop.
Example serving.properties file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# serving.properties can be used to define model's metadata, all the arguments will be | |
# passed to TranslatorFactory to create proper Translator | |
# defines model's application | |
application=nlp/question_answer | |
# defines the model's engine, can be overrid by Criteria.optEngine() | |
engine=PyTorch | |
# defines TranslatorFactory, can be overrid by Criteria.optTranslator() or Criteria.optTranslatorFactory() | |
translatorFactory=ai.djl.pytorch.zoo.nlp.qa.PtBertQATranslatorFactory | |
# Add Translator specific arguments here to customize pre-processing and post-processing | |
tokenizer=distilbert | |
toLowerCase=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment