I’m not sure if your use case has specific requirements, but the common approach would be to use a Dataset, wrap it in a DataLoader and process each batch using the model.
The dataloading tutorial 15 might be a good starter.