Home > AI Solutions > Artificial Intelligence > White Papers > An AI Language Translation Project ─ AI Translations: Machine and Creature Languages > Overview
If the input text is too large for the configuration, PyTorch issues error messages. For example, try to invoke the translation with a larger letter (named mytext_1463k) to Batman in German.
The following figure shows the longer letter to Batman, which is approximately 1.4 MB.
Figure 21. Longer letter size
The following figure shows the command to translate the longer letter:
Figure 22. Running the script on a longer letter
However, the torch.cuda.OutOfMemoryError: CUDA out of memory error message indicates that the GPU does not having enough memory to process all this data at once, as shown in the following figure:
Figure 23. Error messages after running the script on a longer letter