pass l2_penalty to models