AI4Bharat / IndicTrans2

Translation models for 22 scheduled languages of India
https://ai4bharat.iitm.ac.in/indic-trans2
MIT License
214 stars 59 forks source link

Handle src==tgt inputs in triton inference server #67

Open georg3tom opened 5 months ago

georg3tom commented 5 months ago

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.