The official implementation of "Patch-Prompt Aligned Bayesian Prompt Tuning for Vision-Language Models (UAI 2024)"