Generate method during finetuning

I see. Do you think you could to post a full and self-contained code example reproducing the bug?