fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

How to get the perplexity of a single sentence for the custom fairseq pretrained language model?

Open robotsp opened this issue 1 year ago • 0 comments

❓ Questions and Help

Before asking:

  1. search the issues.
  2. search the docs.

What is your question?

Code

What have you tried?

What's your environment?

  • fairseq Version (e.g., 1.0 or main):
  • PyTorch Version (e.g., 1.0)
  • OS (e.g., Linux):
  • How you installed fairseq (pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • Any other relevant information:

robotsp avatar Oct 13 '22 09:10 robotsp