How to compare models of evolution to make assumptions about selection?
The answer to this question depends strongly on how you are formulating the different models. Are you for example computing this from dN/dS from a sequence alignment? Or based on explicit phylogenetic models? Those can have quite different formulations. The model names you are using out sound like they might come from PAML, but it's not clear. There are some exercises for this specific case elsewhere.

I am assuming that what you are really asking is how many degrees of freedom to use when e.g. computing a p value.

For this question, you have to think about the LRT a little. What it is really asking is "do I explain the data better by adding parameters to a model (while accounting for the fact that likelihood will by definition increase with more parameters)?"

So what you need to first establish is what the parameters of your models are. Assuming that the models are "nested", you can just use the difference in the number of parameters as the degrees of freedom. "nested" in this context means that the base model (e.g. H0, probably M0 for you) doesn't have parameters that are missing for the alternative model (which is assumed to have more parameters).

More flexible than the LRT are things like the AIC, which gets rid of Chi square and just computes a value from likelihood and model parameter number. This works well in practice and is nice because it's more flexible and a little less convoluted model comparison technique than the LRT. You can additionally use the AIC to compare non-nested models, which doesn't really work for the LRT.

I hope that this helps.