There is a LDA example in the doc you should check out: http://docs.pymc.io/notebooks/lda-advi-aevb.html