Part 2 of the trial will consist of two independent arms: arm A for HER2 positive mBC and arm B for NSCLC with documented HER2 mutation will be investigated to further evaluate safety and the preliminary effectiveness and clinical benefits of pyrotinib as a single agent.