In run/.py, changing the line from transformers import Trainer to from src.transformers import Trainer solved the problem.