The traceback is telling you

Trying to set num_epochs in the hyperparameter search but there is no corresponding field in TrainingArguments

So you problably should set some default value there, which will then be overwritten by ray during search.