How to Solve NameError: name 'TrainingArguments' is not defined -- transformers
Solution: Import the 'TrainingArguments' module
To Solve the error, add the following line to the top of your code.
from transformers import TrainingArguments
For more information:
Python transformers TrainingArguments