The present invention provides compounds of Formula I or II:wherein R1, R1b, R2, R3, R4, R5, R6and R7are defined herein. The compounds of Formula (I) or (II) and pharmaceutical compositions thereof are useful for the treatment of B-Raf-associated diseases.本發明係提供式I或II化合物:其中R1,R1b,R2,R3,R4,R5,R6及R7均定義於本文中。式(I)或(II)化合物及其醫藥組合物可用於治療B-Raf有關聯之疾病。