I am trying to get access to the LOO and WAIC metrics for model selection as in the documentation. In my problem, the sampling consumes about 500 MB during the sampling process which seems quite reasonable to me.
However, once i call pymc.compute_log_likelihood(trace), the RAM usage jumps to over 21 GB! This is not scalable for me since I want to run this on a cluster.
Is there a less RAM-expensive way to compute this, or some other way to get access to LOO and WAIC without having such RAM consumption?