Upload trainer code