We report three cases of encephalitis associated with anti-PD-1/PD-L1 inhibitors in patients with lung adenocarcinoma (LUAD). The gene discussed is CD274; the disease is viral encephalitis.