Most studies have found that vitamin B12 in tempeh is produced by contaminating bacteria specifically, Klebsiella sp. and Citrobacter freundii, during fungal fermentation https://www.researchgate.net/publication/342202967_Vitamin_B12_production_in_soybean_fermentation_for_tempeh