The internal flow in an injector is greatly affected by cavitation formation, and this in turn impacts the spray characteristics of diesel injectors. In the current work, the performance of the Homogeneous Relaxation Model (HRM) in simulating cavitation inside a diesel injector is evaluated. This model is based on the assumption of homogeneous flow, and was originally developed for flash boiling simulations. However, the model can potentially simulate the spectrum of vaporization mechanisms ranging from cavitation to flash boiling through the use of an empirical time scale which depends on the thermodynamic conditions of the injector fuel. A lower value of this time scale represents a lower deviation from thermal equilibrium conditions, which is an acceptable assumption for small-scale cavitating flows. Another important advantage is the ability of this model to be easily coupled with real fuel models. In this work, a surrogate for diesel fuel is used in simulating planar throttle flow experiments.