From the example walkthroughs in this repo (generate.ipynb), it is clear how to generate sequence and structure form a prompt. Code from example below:
I want to predict functional annotation given a sequence, so I replace track in the GenerationConfig method with "function" (as shown below), but it does not work:
I get the following error: ValueError: Sampling only masked tokens is undefined for function tokens.
I was wondering what I was doing wrong. Thank you so much!
Hello,
From the example walkthroughs in this repo (
generate.ipynb
), it is clear how to generate sequence and structure form a prompt. Code from example below:I want to predict functional annotation given a sequence, so I replace track in the GenerationConfig method with "function" (as shown below), but it does not work:
I get the following error:
ValueError: Sampling only masked tokens is undefined for function tokens
. I was wondering what I was doing wrong. Thank you so much!