Cannot allocate Memory Error

Can I use pm.Minibatch even with MCMC sampling? If yes can you please provide some example on it.