Loading training data in batches using DataLoader()

I have trying to load batches of my tokenized dataset ‘combined_encoding’ using the following code:

train_dataloader = DataLoader(
combined_encoding, shuffle=True, collate_fn=default_data_collator, batch_size=batch_size, pin_memory=True
)

But it is giving me empty batches. What could be the problem with the DataLoader()?