Husband has borderline personality disorder

My husband has borderline PD and is abusive. These are two separate issues and neither of them cause the other. He is currently in an abuser intervention program and is working hard at making changes. He is treating me better and changing the way he views and treats me. He can’t go to therapy until he completes the program so in the meantime the BPD is untreated. It means that he has mood swings and can swing from seeing me as the best thing in his life to totally devaluing me and being sarcastic, angry, and smirking when I tell him off as if he’s enjoying it. I am pretty close to my wit’s end and though I love him, I am strongly considering leaving. At the same time, I do see hope. He is making good progress and intends to continue for the next few years to truly rehabilitate; it’s similar to an alcoholic recovering from addiction and is long-term. In a few months he can seek therapy for the BPD and maybe go on meds to control the swings. What do you think? I can’t seem to make up my mind. It just infuriates me so much when he completely disrespects me and doesn’t take anything seriously. At other times when he’s not “swinging” he can be very attentive and genuine.