Imam Ja´far al-Sadiq (a.s.) trained prominent Shia and Sunni scholars
It is a mistake to assume that all those thousands of students who were taught by Imam Sadiq were Shia Muslims who believed in his being an Imam. That was not the case. There were many individuals among his students who used to go to him to benefit from his knowledge and what he knew about Islamic teachings.