At the university where I did my MS, the university owned the IP.
Patents were a standard affair: the university owned and paid for the patent, the researcher(s) (including the PI and grad students) got inventorship. In the eventuality of a licensing deal, university would get a 50% cut, the inventors would get the remaining 50%.
It was a significant revenue stream for the university.