You can file I-140 now, or file it later, up to you.Your H1 status is irrevelent (but you need to have a legal status, any status is fine)