In this paper, we study the size of the level sets of all Lyapunov exponents. For typical cocycles, we establish a variational relation between the topological entropy of the level sets of Lyapunov exponents and the topological pressure of the generalized singular value function.