Could you post a reproducible code snippet to show this behavior, as this simple example works without repeating values:
dataset = TensorDataset(torch.arange(100))
loader = DataLoader(dataset, batch_size=1, num_workers=8)

for data in loader:
    print(data)