How to get a Dataloader from a Trainer?

Hello, does anyone know how to get a train Dataloader from a Trainer? I need it to compute some metrics during training process on a training dataset but I don’t want to initialize Dataloader twice due to memory limits.

Or does transformers Trainer us it’s own data storage structures? It would be great to hear some advices!

Well, I found it. I`m using on_evaluate() callback and train_dataloader parameter is contained in the **kwargs argument of this function.