In this article, we develop a framework to study the large deviation principle for matrix models and their quantiz