Week 2 Lab2 PEFT Train Runtime error:element 0 of tensors does not require grad and does not have a grad_fn

Hi, code in the notebook hasn’t been changed from given but still outputs error. Checked stackoverflow and huggingface forum, some suggests to add required_gd=True, but I don’t see where to add them. Some suggest to change packages version when installing, not sure about this impact too.

Hello! Can you close and rerun the whole Lab, these are already solved, if the error comes again then we can raise an issue for the QA team!