A compound of the formula II or formula III: wherein each R 1 and R 2 is independently H, deuterium, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, mono- or bicyclic heteroaryl; or R 1 and R 2 taken together with the carbon atom to which they are attached combine to form a C 3 -C 6 cycloalkyl; each R 3 and R 3' is independently H, deuterium, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, mono- or bicyclic heteroaryl; or R 3 and R 3' taken together with the carbon atom to which they are attached combine to form a C 3 -C 6 cycloalkyl; each R 4 and R 5 is independently hydrogen, deuterium, halogen, -OR c , -OC(O)R c , -OC(O)NR c R d , -OC(=N)NR c R d , -OS(O)R c , -OS(O) 2 R c , -OS(O)NR c R d , -OS(O) 2 NR c R d , -SR c , -S(O)R c , -S(O) 2 R c , -S(O)NR c R d , -S(O) 2 NR c R d , -NR c R d , -NR c C(O)R d , -NR c C(O)OR d , -NR c C(O)NR c R d , -NR c C(=N)NR c R d , -NR c S(O)R d , -NR c S(O) 2 R d , -NR c S(O)NR c R d , -NR c S(O) 2 NR c R d , -C(O)R c , -C(O)OR c , -C(O)NR c R d , -C(=N)NR c R d , -PR c R d , -P(O)R c R d , -P(O) 2 R c R d , -P(O)NR c R d , -P(O) 2 NR c R d , -P(O)OR c , -P(O) 2 OR c , -CN, -NO 2 , C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, or mono- or bicyclic heteroaryl; R 6 is H; each R 7 is independently hydrogen or deuterium; and each R a , R b , R c , and R d is independently selected from the group consisting of H, deuterium, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, and 5- to 7- membered heteroaryl; or a pharmaceutically acceptable salt thereof. each R 1 and R 2 is independently H, deuterium, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, mono- or bicyclic heteroaryl; or R 1 and R 2 taken together with the carbon atom to which they are attached combine to form a C 3 -C 6 cycloalkyl; each R 3 and R 3' is independently H, deuterium, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, mono- or bicyclic heteroaryl; or R 3 and R 3' taken together with the carbon atom to which they are attached combine to form a C 3 -C 6 cycloalkyl; each R 4 and R 5 is independently hydrogen, deuterium, halogen, -OR c , -OC(O)R c , -OC(O)NR c R d , -OC(=N)NR c R d , -OS(O)R c , -OS(O) 2 R c , -OS(O)NR c R d , -OS(O) 2 NR c R d , -SR c , -S(O)R c , -S(O) 2 R c , -S(O)NR c R d , -S(O) 2 NR c R d , -NR c R d , -NR c C(O)R d , -NR c C(O)OR d , -NR c C(O)NR c R d , -NR c C(=N)NR c R d , -NR c S(O)R d , -NR c S(O) 2 R d , -NR c S(O)NR c R d , -NR c S(O) 2 NR c R d , -C(O)R c , -C(O)OR c , -C(O)NR c R d , -C(=N)NR c R d , -PR c R d , -P(O)R c R d , -P(O) 2 R c R d , -P(O)NR c R d , -P(O) 2 NR c R d , -P(O)OR c , -P(O) 2 OR c , -CN, -NO 2 , C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, or mono- or bicyclic heteroaryl; R 6 is H; each R 7 is independently hydrogen or deuterium; and each R a , R b , R c , and R d is independently selected from the group consisting of H, deuterium, C 1 -C 6 alkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 6 cycloalkyl, 3- to 7-membered heterocycloalkyl, C 6 -C 10 aryl, and 5- to 7- membered heteroaryl; <EOS>