The present invention provides compounds of Formula I or II:wherein R1, R1b, R2, R3, R4, R5, R6 and R7 are defined herein. The compounds of Formula (I) or (II) and pharmaceutical compositions thereof are useful for the treatment of B-Raf-associated diseases.