Petition is always filed by the US employer with USCIS in the US. If you are currently in H4 status with a valid visa and have a spouse working in the US on H1B, you can travel to the US on H4 and have your employer file the H1B petition with a change of status that will go into effect on 1st October 2022.