Can't run quenstion-answer LLM finetuning demo in google colab
I am trying to get familiar with the fine-tuning example from the link below. I clicked open in colab with pytorch.huggingface.coQuestion answeringWe’re on a journey to advance and democratize artificial intelligence through open source and open science.However, when executing the training argument line, I received the ImportError as below. I tried pip installimage1351×544 26.9 KBI didn’t do any additional coding.Please let me know if you have any idea to solve this issue. Thank you very much.
2023-10-26T05:43:50Z
This is a problem I faced while doing many other demo notebooks as well.So the solution I found is to run this at the very start of your notebook:!pip install transformers[torch]
!pip install accelerate -U
import os
os._exit(0)Then when the runtime restarts delete this cell and run the code again. Atleast, this error should go away.
2023-11-01T19:19:37Z
Thank you so much. This helps me resolve the problem.