The results indicated that age, AST, AST/ALT ratio, albumin, triglycerides, and platelet count were independent risk factors for advanced hepatic fibrosis in the T2DM group. Here, GPT is linked to type 2 diabetes mellitus.