The present invention provides compounds of Formula I or II(see formula I) (see formula II)wherein R1, R1B, R2, R3, R4, R5, R6 and R7 are defined herein. The compoundsof Formula (I)or (II) and pharmaceutical compositions thereof are useful as inhibitors ofmutant b-Raf(V600E).