(b) When the cylinder rolls up the incline, its angular velocity $\omega$ is clockwise and decreasing
This require an anticlockwise angular acceleration $\alpha$, which is provided by the force of friction $(F)$ acting up the incline
When the cylinder rolls down the incline, its angular velocity $\omega$ is anticlockwise and increasing. This requires an anticlockwise angular acceleration $\alpha$, which is provided by the force of friction $(F)$ acting up the incline