Assertionerror
Hey @renqianluo , I was still facing the same issue.
Originally posted by @parthplc in https://github.com/microsoft/BioGPT/issues/10#issuecomment-1385790515
Same here. I installed all dependencies as specified in the README but couldn't make it work. I investigated a little and it seems like the task name "language_modeling_prompt" is not part of the TASK_REGISTRY variable in fairseq/tasks/init.py resulting in an AssertionError.
I figured out the solution to this and #10. To run the fine-tuned models, import TransformerLanguageModelPrompt from the src.transformer_lm_prompt script instead of using TransformerLanguageModel from fairseq.models.transformer_lm.
If you run the scripts, the src is passed to the program via the --user-dir parameter, which contains the language_modeling_prompt task. If you use it in our own code, please from src.transfromer_lm_prompt import TransformerLanguageModelPrompt