Learning How Hard To Think Input Adaptive Allocation Of Lm Computation