UMass graduated its largest class in history this spring, with nearly 18,000 students earning degrees.