H1B stamping and 485 pending

Hi,

I have got my H1B approved last year but my stamping is still pending. Parallelly, i have my family based 485 pending and already received EAD/AP. If I leave the country now, do i need to go for H1B stamping ? I know that I can come back on my AP document, but will my H1B be invalid if I don’t go for H1B stamping ?