The HI - H2 Phase Transition