I believe that you will need to be married in order to adjust status.  If you can prove the marriage is bona fide, you may get a divorce and ask for a waiver based on dissolution of the marriage when it comes time to remove the condition on your green card.  However, you should adjust status before you get a divorce.