We present a search for the associated production of a standard model Higgs boson and a top quark-anti quark pair (), using LHC pp collision data collected by the CMS experiment at a center of mass energy of \sqrt{s}=13~\mathrm{TeV} in 2016. The dataset corresponds to an integrated luminosity of 12.9\,\mathrm{fb}^{-1}. The analysis uses events with two leptons of the same charge or at least three charged leptons, produced together with b jets, targeting Higgs boson decay modes to , , and and leptonic decays of at least one of the top quarks. The results are combined with the 2015 dataset and yield a signal strength of times the standard model prediction. They are used to set a confidence level upper limit on the signal production cross section of times the standard model expectation, compared to an expected upper limit of in the absence of a signal.