The Gross–Neveu model from string theory