Skip to content

Instantly share code, notes, and snippets.

@frankfliu
Created January 5, 2022 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankfliu/b96004507e793acb5ca378b5fa17295d to your computer and use it in GitHub Desktop.
Save frankfliu/b96004507e793acb5ca378b5fa17295d to your computer and use it in GitHub Desktop.
Example serving.properties file
# 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