The large deviation principle and some models of an interacting boson gas