Design an efficient data loader for Mistral AI that handles variable-length sequences using dynamic batching to minimize padding tokens.