Mistral AI tokenizer encoding errors in multi-GPU training
Problem Description When training a Mistral‑based model on a multi‑GPU cluster using torch.distributed data‑parallelism, the tokenizer occasionally returns different token ID sequences for the same input text on different ranks. The symptom manifests as: Sudden spikes in loss or RuntimeError: CUDA illegal memory access during the forward pass. Batch failures with errors such as ValueError: … Read more