IndicTrans2
IndicTrans2 copied to clipboard
Handle src==tgt inputs in triton inference server
The triton inference server currently considers (src, tgt) pairs where the src==tgt as valid inputs for translation. The current behaviour results in the output not aligning with the input and being translated into a different language.
Either src == tgt should not be a valid input, or the input should be returned unchanged.